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

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

public class NVPDef
extends java.lang.Object
implements MarshallableElement


Constructor Summary
protected NVPDef()
           
  NVPDef(java.lang.String name)
           
  NVPDef(java.lang.String name, NVPDataType type, boolean req)
           
 
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 getName()
           
 PrefixAndNamespaceTuple[] getNamespacesInfo()
          We need to know the namespace of the class to include.
 NVPDataType getType()
           
 int hashCode()
           
 boolean isMultiValued()
           
 boolean isRequired()
           
 boolean isValid()
          Is this ready to go or are there syntax errors, like missing required fields?
 void setRequired(boolean req)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NVPDef

protected NVPDef()

NVPDef

public NVPDef(java.lang.String name,
              NVPDataType type,
              boolean req)

NVPDef

public NVPDef(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

isMultiValued

public boolean isMultiValued()

getType

public NVPDataType getType()

isRequired

public boolean isRequired()

setRequired

public void setRequired(boolean req)

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.