org.openspml.v2.util.xml
Class BasicOCEAndMarshallable

java.lang.Object
  extended byorg.openspml.v2.util.xml.BasicMarshallableElement
      extended byorg.openspml.v2.util.xml.BasicMarshallable
          extended byorg.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

Field Summary
protected  XMLMarshaller mMarshaller
           
protected  XMLUnmarshaller mUnmarshaller
           
 
Fields inherited from interface org.openspml.v2.msg.OpenContentElement
code_id
 
Fields inherited from interface org.openspml.v2.msg.Marshallable
code_id
 
Constructor Summary
protected BasicOCEAndMarshallable()
           
 
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 org.openspml.v2.util.xml.BasicMarshallable
toXML
 
Methods inherited from class org.openspml.v2.util.xml.BasicMarshallableElement
getNamespacesInfo, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openspml.v2.msg.MarshallableElement
getNamespacesInfo, isValid
 

Field Detail

mMarshaller

protected final XMLMarshaller mMarshaller

mUnmarshaller

protected final XMLUnmarshaller mUnmarshaller
Constructor Detail

BasicOCEAndMarshallable

protected BasicOCEAndMarshallable()
Method Detail

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.