cashew-s-editor-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CASHeW-s-editor-patches] Addition of serialPersistentFields support


From: Andrew John Hughes
Subject: [CASHeW-s-editor-patches] Addition of serialPersistentFields support
Date: Sun, 8 May 2005 13:03:13 +0100
User-agent: Mutt/1.5.9i

I'm committing the attached patch to make our serialization
mechanism respect serialPersistentFields, which allows
more customisation.

Changelog:

2005-05-08  Andrew John Hughes  <address@hidden>

        * src/nongnu/cashews/commons/PairList.java:
        New class.
        (PairList()): New constructor.
        (PairList(PairList<A,B>)): New constructor.
        (contains(A,B)): New method.
        (add(A,B)): New method.
        (add(int,A,B)): New method.
        (addFirst(A,B)): New method.
        (addLast(A,B)): New method.
        (indexOf(A,B)): New method.
        (lastIndexOf(A,B)): New method.
        (offer(A,B)): New method.
        (remove(A,B)): New method.
        (set(int,A,B)): New method.
        * src/nongnu/cashews/language/grounding/SoapOperation.java:
        (serialPersistentFields): New field.
        * src/nongnu/cashews/language/process/AtomicProcess.java:
        (serialPersistentFields): New field.
        * src/nongnu/cashews/services/TypeChecker.java:
        Reformatted.
        * src/nongnu/cashews/xml/Serializer.java:
        (serialize(java.io.Serializable, org.w3c.dom.Element,
        org.w3c.dom.Document)): New method which calls the one below. 
        (serialize(java.io.Serializable, org.w3c.dom.Element,
        org.w3c.dom.Document,boolean)): Changed from original
        serialize method. Uses a PairList and observes serialPersistentFields.
        * src/nongnu/cashews/xml/XmlField.java,
        New class.
        (fieldElement): New field.
        (classElement); New field.
        (XmlField(String,Class<?>)): New constructor.
        (XmlField(String,Class<?>,boolean)): New constructor.
        (XmlField(String,Class<?>,boolean,boolean,boolean)): New constructor.
        (XmlField(java.io.ObjectStreamField)): New constructor.
        (setFieldElement(boolean)): New method.
        (setClassElement(boolean)): New method.
        (isFieldNameSerialized()): New method.
        (isClassNameSerialized()): New method.
        (toString()): New method.

-- 
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 { ... }

Attachment: cashews-06.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]