org.openspml.v2.examples.nvpstore.csvdb.def
Class NVPDef
java.lang.Object
org.openspml.v2.examples.nvpstore.csvdb.def.NVPDef
- All Implemented Interfaces:
- MarshallableElement
- public class NVPDef
- extends java.lang.Object
- implements MarshallableElement
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NVPDef
protected NVPDef()
NVPDef
public NVPDef(java.lang.String name,
NVPDataType type,
boolean req)
NVPDef
public NVPDef(java.lang.String name)
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.