org.openspml.v2.util.xml
Class BasicOCEAndMarshallable
java.lang.Object
org.openspml.v2.util.xml.BasicMarshallableElement
org.openspml.v2.util.xml.BasicMarshallable
org.openspml.v2.util.xml.BasicOCEAndMarshallable
- All Implemented Interfaces:
- Marshallable, MarshallableElement, OpenContentElement
- Direct Known Subclasses:
- OperationalNameValuePair
- public abstract class BasicOCEAndMarshallable
- extends BasicMarshallable
- implements OpenContentElement
Starter class.
- Author:
- Kent Spaulding
Method Summary |
OpenContentElement |
fromXML(java.lang.Object xmlRep)
We know how to handle Strings that are passed in. |
java.lang.String |
toXML()
Would usually call toXml(int) with 0 indent. |
java.lang.String |
toXML(int indent)
Convert this object to an XML string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mMarshaller
protected final XMLMarshaller mMarshaller
mUnmarshaller
protected final XMLUnmarshaller mUnmarshaller
BasicOCEAndMarshallable
protected BasicOCEAndMarshallable()
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
- We know how to handle Strings that are passed in.
Other types will return a null.
Override this if you want to support more types for xmlRep.
- Parameters:
xmlRep
-
- Returns:
- an object, in this case, an adapter.
- Throws:
Spml2Exception
Copyright © Sun Microsystems, Inc. All Rights Reserved.