[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[CASHeW-s-editor-patches] CASheW-s 4: Add custom serialization
From: |
Andrew John Hughes |
Subject: |
[CASHeW-s-editor-patches] CASheW-s 4: Add custom serialization |
Date: |
Fri, 6 May 2005 11:26:30 +0100 |
User-agent: |
Mutt/1.5.9i |
This patch allows CustomXmlizable classes to customise their
serialization, as well as adding more accessors/mutators
to the model classes.
Changelog:
2005-05-05 Andrew John Hughes <address@hidden>
* src/nongnu/cashews/language/process/AtomicProcess.java:
(setGrounding(nongnu.cashews.language.grounding.Grounding)):
New method.
* src/nongnu/cashews/language/process/CompositeProcess.java:
Removed Xmlizable implementation.
* src/nongnu/cashews/language/process/MultiPerform.java:
(MultiPerform()): New constructor.
(add(nongnu.cashews.language.process.MultiPerformElement)):
New method.
(toString()): New method.
* src/nongnu/cashews/language/process/Performance.java:
(Performance()): New private constructor.
(setProcess(nongnu.cashews.language.process.Process)): New method.
(addValueData(nongnu.cashews.language.process.ValueData)): New method.
(addValueCollector(nongnu.cashews.language.process.ValueCollector)):
New method.
(getProcess()): New method.
(getValueDatas()): Creates a clone.
(getValueCollectors()): Likewise.
(toString()): New method.
(getElementName()): New method.
* src/nongnu/cashews/language/process/Process.java:
(clone()): New method.
* src/nongnu/cashews/xml/CustomXmlizable.java:
New interface for custom serialization to XML.
(getElementName()): New method.
* src/nongnu/cashews/xml/Serializer.java:
(serialize(Xmlizable, org.w3c.dom.Node, org.w3c.dom.Document)):
Added custom serialization.
(main(String[])): Added more of the example process.
* src/nongnu/cashews/xml/Xmlizable.java:
Change comments to represent new role.
--
Andrew :-)
Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
No software patents in Europe -- http://nosoftwarepatents.com
"Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn."
-- Richard Stallman
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
public class gcj extends Freedom implements Java { ... }
cashews-04.diff
Description: Text document
signature.asc
Description: Digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [CASHeW-s-editor-patches] CASheW-s 4: Add custom serialization,
Andrew John Hughes <=