org.openspml.v2.msg
Class OCEtoXMLStringAdapter
java.lang.Object
org.openspml.v2.msg.OCEtoXMLStringAdapter
- All Implemented Interfaces:
- OpenContentElement, OpenContentElementAdapter
- public class OCEtoXMLStringAdapter
- extends java.lang.Object
- implements OpenContentElementAdapter
We are unmarshalling XML to objects and cannot convert
an Element to objects, we'll assume it is openContent and
put it into an adapter the maintains it in String form.
That should allow the client to do whatever additional parsing
is necessary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCEtoXMLStringAdapter
public OCEtoXMLStringAdapter(java.lang.String xml)
throws Spml2Exception
getXMLString
public java.lang.String getXMLString()
getAdaptedObject
public java.lang.Object getAdaptedObject()
- Specified by:
getAdaptedObject
in interface OpenContentElementAdapter
toXML
public java.lang.String toXML(int indent)
throws Spml2Exception
- Description copied from interface:
OpenContentElement
- Convert this object to an XML string.
- Specified by:
toXML
in interface OpenContentElement
- Parameters:
indent
- how much indent to start with.
- Returns:
- indented xml fragment
- Throws:
Spml2Exception
toXML
public java.lang.String toXML()
throws Spml2Exception
- Description copied from interface:
OpenContentElement
- Would usually call toXml(int) with 0 indent.
- Specified by:
toXML
in interface OpenContentElement
- Returns:
- xml fragment
- Throws:
Spml2Exception
fromXML
public OpenContentElement fromXML(java.lang.Object xmlRep)
throws Spml2Exception
- Throws:
Spml2Exception
Copyright © Sun Microsystems, Inc. All Rights Reserved.