org.openspml.v2.util.xml
Class BasicMarshallableElement

java.lang.Object
  extended byorg.openspml.v2.util.xml.BasicMarshallableElement
All Implemented Interfaces:
MarshallableElement
Direct Known Subclasses:
BasicMarshallable, Extensible

public abstract class BasicMarshallableElement
extends java.lang.Object
implements MarshallableElement

A starter class for the MarshallableElements

Author:
Kent Spaulding

Field Summary
 
Fields inherited from interface org.openspml.v2.msg.MarshallableElement
code_id
 
Constructor Summary
protected BasicMarshallableElement()
           
 
Method Summary
 java.lang.String getElementName()
          This should return the name of the element to be placed in the XML
static java.lang.String getElementName(MarshallableElement me)
           
abstract  PrefixAndNamespaceTuple[] getNamespacesInfo()
          We need to know the namespace of the class to include.
abstract  boolean isValid()
          Is this ready to go or are there syntax errors, like missing required fields?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMarshallableElement

protected BasicMarshallableElement()
Method Detail

getElementName

public static java.lang.String getElementName(MarshallableElement me)

getElementName

public java.lang.String getElementName()
Description copied from interface: MarshallableElement
This should return the name of the element to be placed in the XML

Specified by:
getElementName in interface MarshallableElement
Returns:
just the string (no prefix) representing the elementName

getNamespacesInfo

public abstract PrefixAndNamespaceTuple[] getNamespacesInfo()
Description copied from interface: MarshallableElement
We need to know the namespace of the class to include.

Specified by:
getNamespacesInfo in interface MarshallableElement
Returns:
set of tuples defining the namespaces to use.

isValid

public abstract boolean isValid()
Description copied from interface: MarshallableElement
Is this ready to go or are there syntax errors, like missing required fields?

Specified by:
isValid in interface MarshallableElement
Returns:
is this valid? do the values of the fields make legal sense?


Copyright © Sun Microsystems, Inc. All Rights Reserved.