fipaos.parser.datamapping.xml
Class XMLBinding


public class XMLBinding
implements DataMapper


Field Summary
 final static StringENHDRA_PACKAGE_HEADER_END
           
 final static StringENHDRA_PACKAGE_HEADER_START
           
 final static StringXML_HEADER_END
           
 final static StringXML_HEADER_START
           

Method Summary
 static ObjectcloneDataboundObject(Object obj)
          Create a completely distinct clone of a data bound object by
marshalling it to a String and then unmarshalling it back into
a new databound object.
 static Stringmarshall(Object obj, boolean strip_enhydra_tags)
          Marshalls a Data-Binding compatible object into an XML instance document
 Stringmarshall(Object obj)
          Marshalls a Data-Binding compatible object into an XML instance document
 Objectunmarshall(String xml)
          Unmarshalls a string back into a Data-Binding object
 static Objectunmarshall(String xml, String default_package)
          Unmarshalls a string back into a Data-Binding object, and inserts Enhydra specific tags
back into XML if necessary
 static StringzeusMarshall(Object obj)
          Marshall the given Object using the Zeus marshaller
 static ObjectzeusUnmarshall(String xml, String def_package)
          Unmarshall the given XML using the Zeus marshaller

Field Detail

ENHDRA_PACKAGE_HEADER_END

public final static String ENHDRA_PACKAGE_HEADER_END

ENHDRA_PACKAGE_HEADER_START

public final static String ENHDRA_PACKAGE_HEADER_START

XML_HEADER_END

public final static String XML_HEADER_END

XML_HEADER_START

public final static String XML_HEADER_START
Method Detail

cloneDataboundObject

public static Object cloneDataboundObject(Object obj)
throws fipaos.parser.ParserException
Create a completely distinct clone of a data bound object by
marshalling it to a String and then unmarshalling it back into
a new databound object.
Parameters:
obj. - The object to clone.
Returns: Object. An exact copy of obj.

marshall

public static String marshall(Object obj, boolean strip_enhydra_tags)
throws fipaos.parser.ParserException
Marshalls a Data-Binding compatible object into an XML instance document
Parameters:
obj - The Object to be marshalled
strip_enhydra_tags - Indicates if Enhydra specific tags should be removed
Returns: A String containing the XML instance document

marshall

public String marshall(Object obj)
throws fipaos.parser.ParserException
Marshalls a Data-Binding compatible object into an XML instance document
Parameters:
obj - The Object to be marshalled
Returns: A String containing the XML instance document

unmarshall

public Object unmarshall(String xml)
throws fipaos.parser.ParserException
Unmarshalls a string back into a Data-Binding object
Parameters:
xml - The String to be unmarshalled
Returns: The reconstructed object

unmarshall

public static Object unmarshall(String xml, String default_package)
throws fipaos.parser.ParserException
Unmarshalls a string back into a Data-Binding object, and inserts Enhydra specific tags
back into XML if necessary
Parameters:
xml - The String to be unmarshalled
default_package - Default package to find objects to create to represent the XML content
Returns: The reconstructed object

zeusMarshall

public static String zeusMarshall(Object obj)
throws fipaos.parser.ParserException
Marshall the given Object using the Zeus marshaller
Parameters:
obj - Object to marshall
Returns: The XML document representing the Object

zeusUnmarshall

public static Object zeusUnmarshall(String xml, String def_package)
throws fipaos.parser.ParserException
Unmarshall the given XML using the Zeus marshaller
Parameters:
xml - XML document to unmarshall
def_package - Default package to look for classes to unmarshall the XML into
Returns: An object representing the XML

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.util.List

Properties of this DataMapper implementation

to Class fipaos.parser.datamapping.xml.XMLBinding

Singleton instance of XMLBinding in VM