org.openspml.v2.examples.nvpstore.csvdb.def
Class NVPObjectStoreDef

java.lang.Object
  extended byorg.openspml.v2.examples.nvpstore.csvdb.def.NVPObjectStoreDef
All Implemented Interfaces:
Marshallable, MarshallableElement

public class NVPObjectStoreDef
extends java.lang.Object
implements Marshallable


Constructor Summary
protected NVPObjectStoreDef()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getElementName()
          This should return the name of the element to be placed in the XML
 java.lang.String getNameOfTypeNVP()
          If an object is to be considered valid, it will have an attribute with this name whose value is the name of the ObjectDef that defines the attributes in the object.
 java.lang.String getNameOfUidNVP()
           
 PrefixAndNamespaceTuple[] getNamespacesInfo()
          We need to know the namespace of the class to include.
 NVPObjectDef getNVPObjectDef(java.lang.String s)
           
 NVPObjectDef[] getNVPObjectDefs()
           
 java.lang.String getStoreName()
           
 int hashCode()
           
 boolean isValid()
          Is this ready to go or are there syntax errors, like missing required fields?
 java.lang.String toXML(XMLMarshaller xmlMarshaller)
          Visitor pattern - dispatch this type to the visitor (m) please.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NVPObjectStoreDef

protected NVPObjectStoreDef()
Method Detail

getNameOfTypeNVP

public java.lang.String getNameOfTypeNVP()
If an object is to be considered valid, it will have an attribute with this name whose value is the name of the ObjectDef that defines the attributes in the object.

Returns:
The name of the TypeAttr. (one of the attrs is defined to hold type info)

getNameOfUidNVP

public java.lang.String getNameOfUidNVP()

getNVPObjectDefs

public NVPObjectDef[] getNVPObjectDefs()

getNVPObjectDef

public NVPObjectDef getNVPObjectDef(java.lang.String s)

getStoreName

public java.lang.String getStoreName()

toXML

public java.lang.String toXML(XMLMarshaller xmlMarshaller)
                       throws Spml2Exception
Description copied from interface: Marshallable
Visitor pattern - dispatch this type to the visitor (m) please.

Specified by:
toXML in interface Marshallable
Parameters:
xmlMarshaller -
Returns:
xml
Throws:
Spml2Exception

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 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 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?

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()


Copyright © Sun Microsystems, Inc. All Rights Reserved.