org.openspml.v2.util.xml
Class BasicMarshallableElement
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicMarshallableElement
protected BasicMarshallableElement()
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.