org.openspml.v2.msg
Class OCEtoMarshallableAdapter
java.lang.Object
org.openspml.v2.msg.OCEtoMarshallableAdapter
- All Implemented Interfaces:
- OpenContentElement, OpenContentElementAdapter
- public class OCEtoMarshallableAdapter
- extends java.lang.Object
- implements OpenContentElementAdapter
This class is placed around "open content" when we encounter XML
during unmarshalling that we don't recognize.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCEtoMarshallableAdapter
public OCEtoMarshallableAdapter(Marshallable m)
throws Spml2Exception
getMarshallable
public Marshallable getMarshallable()
getAdaptedObject
public java.lang.Object getAdaptedObject()
- Specified by:
getAdaptedObject
in interface OpenContentElementAdapter
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
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
fromXML
public OpenContentElement fromXML(java.lang.Object xmlRep)
throws Spml2Exception
- Throws:
Spml2Exception
Copyright © Sun Microsystems, Inc. All Rights Reserved.