|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.resilientedge.util.xmlmapping.XmlMapping
The public for marshalling JavaBeans to and from XML.
| Constructor Summary | |
XmlMapping()
|
|
| Method Summary | |
static XmlMapping |
getInstance()
Factory method that returns the default concrete XmlMapping impl. |
static XmlMapping |
getInstance(java.lang.String[] files)
Factory method that creates a concrete XmlMapping impl. |
protected void |
log(java.lang.String message)
Method Description |
abstract java.lang.String |
marshal(java.lang.Object objectToMarshal)
Marshals the object to XML using the implementation's appropriate mapping logic |
static void |
setMappingClass(java.lang.Class mappingClass)
Set the class that provides xml mapping |
static void |
setMappingFileName(java.lang.String mappingFileName)
Set the class that provides xml mapping |
abstract java.lang.Object |
unmarshal(java.lang.String xml)
Unmarshals the object from XML using the implementation's appropriate mapping logic |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlMapping()
| Method Detail |
public abstract java.lang.String marshal(java.lang.Object objectToMarshal)
throws XmlMappingException
objectToMarshal - the object to marshal to XMLXmlMappingException - Exception Description
public abstract java.lang.Object unmarshal(java.lang.String xml)
throws XmlMappingException
xml - the string containing the full XML
document to parseXmlMappingException - Exception Descriptionpublic static void setMappingClass(java.lang.Class mappingClass)
mappingClass - The new MappingClass valuepublic static void setMappingFileName(java.lang.String mappingFileName)
mappingFileName - The new MappingFileName value
public static XmlMapping getInstance()
throws XmlMappingException
XmlMappingException - Exception Description
public static XmlMapping getInstance(java.lang.String[] files)
throws XmlMappingException
files - the list of mapping files to be used by
the implementationXmlMappingException - thrown if an error occurred within the
implementationprotected void log(java.lang.String message)
message - Parameter Description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||