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

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

[CASHeW-s-editor-patches] Completed serialization of CompositeProcess


From: Andrew John Hughes
Subject: [CASHeW-s-editor-patches] Completed serialization of CompositeProcess
Date: Sat, 7 May 2005 22:09:10 +0100
User-agent: Mutt/1.5.9i

I'm committing the attached patch which finishes the serialization
of CompositeProcess (minus a few minor niggles).  All java.io.Serializable
classes are now available for XML serialization, although the lack of
full schema type support means that some primitive types (e.g. long) will
result in infinite loops.  Namespaces are also now supported.

Changelog:

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

        * src/nongnu/cashews/language/grounding/MessagePart.java:
        (MessagePart(String)): New constructor.
        (MessagePart(java.net.URI)): New constructor.
        (setURI(String)): New method.
        (setURI(java.net.URI)): New method.
        (setName(String,String)): New method.
        (setName(String,String,String)): New method.
        (setName(javax.xml.namespace.QName)): New method.
        (setType(String,String)): New method.
        (setType(String,String,String)): New method.
        (setType(javax.xml.namespace.QName)): New method.
        (toString()): New method.
        (getElementName()): New method.
        (getDeclaredNamespaces()): New method.
        * src/nongnu/cashews/language/grounding/SoapMessage.java:
        (SoapMessage()): New constructor (private).
        (SoapMessage(String,String)): New constructor.
        (SoapMessage(String,String,String)): New constructor.
        (SoapMessage(javax.xml.namespace.QName)): New constructor.
        (setName(String,String)): New method.
        (setName(String,String,String)): New method.
        (setName(javax.xml.namespace.QName)): New method.
        (addPart(nongnu.cashews.language.grounding.MessagePart)): New method.
        (getName()): New method.
        (toString()); New method.
        * src/nongnu/cashews/language/grounding/SoapOperation.java:
        (SoapOperation(String)): New constructor.
        (SoapOperation(String,String)): New constructor.
        (setEndpoint(String)): New method.
        (setEndpoint(java.net.URI)): New method.
        (setNamespace(String)): New method.
        (setNamespace(java.net.URI)): New method.
        (setInputMessage(nongnu.cashews.language.grounding.SoapMessage)):
        New method.
        (setOutputMessage(nongnu.cashews.language.grounding.SoapMessage)):
        New method.
        (toString()): New method.
        (getElementName()): New method.
        (getDeclaredNamespaces()): New method.
        * src/nongnu/cashews/language/process/CProcess.java:
        Extends java.io.Serializable.
        * src/nongnu/cashews/language/process/CompositeProcess.java:
        (addConsumer(nongnu.cashews.language.process.Consume)): New method.
        (addProducer(nongnu.cashews.language.process.Produce)): New method.
        * src/nongnu/cashews/language/process/Consume.java:
        (Consume(String,String,String,int)): New constructor.
        (Consume(URI,URI,URI,int)): New constructor.
        (setFromInput(String)): New method.
        (setFromInput(java.net.URI)): New method.
        (setToPerformance(String)): New method.
        (setToPerformance(java.net.URI)): New method.
        (setToInput(String)): New method.
        (setToInput(java.net.URI)): New method.
        (setToIndex(int)): New method.
        (toString()): New method.
        * src/nongnu/cashews/language/process/MultiPerform.java:
        Removed implementation of Xmlizable (interface now extends
        Serializable)
        * src/nongnu/cashews/language/process/Performance.java:
        (getDeclaredNamespaces()): New method.
        * src/nongnu/cashews/language/process/Process.java:
        Xmlizable changed to Serializable.
        * src/nongnu/cashews/language/process/Produce.java:
        (Produce(String,String,String)): New constructor.
        (Produce(URI,URI,URI)): New constructor.
        (setFromPerformance(String)): New method.
        (setFromPerformance(java.net.URI)): New method.
        (setToOutput(String)): New method.
        (setToOutput(java.net.URI)): New method.
        (setFromOutput(String)): New method.
        (setFromOutput(java.net.URI)): New method.
        (toString()): New method.       #
        * src/nongnu/cashews/xml/CustomXmlizable.java:
        Renamed to Xmlizable.
        * src/nongnu/cashews/xml/Serializer.java:
        (DECLARED_NAMESPACES): New constant.
        (serialize(Xmlizable, org.w3c.dom.Node, org.w3c.dom.Document)):
        Added namespaces and moved schema typing in from separate method.
        (addNamespaceDeclarations(javax.xml.namespace.QName[],
        org.w3c.dom.Element): New method.
        (main(String[])): Example completed.
        * src/nongnu/cashews/xml/Xmlizable.java:
        (getElementName()): Moved from CustomXmlizable.
        (getDeclaredNamespaces()): New method.
        * src/nongnu/cashews/xml/schema/TypeMapper.java:
        Added support for xsd:int and xsd:QName.
        * src/nongnu/cashews/xml/schema/datatypes/Int.java:
        New class.
        (translateValue(org.w3c.dom.Document, Integer): New method.
        * src/nongnu/cashews/xml/schema/datatypes/XsdQName.java:
        New class.
        (translateValue(org.w3c.dom.Document, javax.xml.namespace.QName):
        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-05.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

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