org.oasis.ebxml.registry.bindings.rim
Class ClassificationNodeType

java.lang.Object
  extended byorg.oasis.ebxml.registry.bindings.rim.RegistryObjectType
      extended byorg.oasis.ebxml.registry.bindings.rim.ClassificationNodeType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassificationNode

public abstract class ClassificationNodeType
extends RegistryObjectType
implements java.io.Serializable

ClassificationNode is the mapping of the same named interface in ebRIM. It extends RegistryObject. ClassificationNode is used to submit a Classification tree to the Registry. The parent attribute is the id to the parent node. code is an optional code value for a ClassificationNode often defined by an external taxonomy (e.g. NAICS)

See Also:
Serialized Form

Constructor Summary
ClassificationNodeType()
           
 
Method Summary
 void addClassificationNode(ClassificationNode vClassificationNode)
           
 void addClassificationNode(int index, ClassificationNode vClassificationNode)
           
 void clearClassificationNode()
           
 java.util.Enumeration enumerateClassificationNode()
           
 ClassificationNode[] getClassificationNode()
           
 ClassificationNode getClassificationNode(int index)
           
 int getClassificationNodeCount()
           
 java.lang.String getCode()
          Returns the value of field 'code'.
 java.lang.Object getParent()
          Returns the value of field 'parent'.
 java.lang.String getPath()
          Returns the value of field 'path'.
 boolean isValid()
           
abstract  void marshal(org.xml.sax.DocumentHandler handler)
           
abstract  void marshal(java.io.Writer out)
           
 boolean removeClassificationNode(ClassificationNode vClassificationNode)
           
 void setClassificationNode(ClassificationNode[] classificationNodeArray)
           
 void setClassificationNode(int index, ClassificationNode vClassificationNode)
           
 void setCode(java.lang.String code)
          Sets the value of field 'code'.
 void setParent(java.lang.Object parent)
          Sets the value of field 'parent'.
 void setPath(java.lang.String path)
          Sets the value of field 'path'.
 void validate()
           
 
Methods inherited from class org.oasis.ebxml.registry.bindings.rim.RegistryObjectType
addClassification, addClassification, addExternalIdentifier, addExternalIdentifier, addSlot, addSlot, clearClassification, clearExternalIdentifier, clearSlot, enumerateClassification, enumerateExternalIdentifier, enumerateSlot, getAccessControlPolicy, getClassification, getClassification, getClassificationCount, getDescription, getExternalIdentifier, getExternalIdentifier, getExternalIdentifierCount, getId, getName, getObjectType, getSlot, getSlot, getSlotCount, removeClassification, removeExternalIdentifier, removeSlot, setAccessControlPolicy, setClassification, setClassification, setDescription, setExternalIdentifier, setExternalIdentifier, setId, setName, setObjectType, setSlot, setSlot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassificationNodeType

public ClassificationNodeType()
Method Detail

addClassificationNode

public void addClassificationNode(ClassificationNode vClassificationNode)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
vClassificationNode -
Throws:
java.lang.IndexOutOfBoundsException

addClassificationNode

public void addClassificationNode(int index,
                                  ClassificationNode vClassificationNode)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vClassificationNode -
Throws:
java.lang.IndexOutOfBoundsException

clearClassificationNode

public void clearClassificationNode()

enumerateClassificationNode

public java.util.Enumeration enumerateClassificationNode()

getClassificationNode

public ClassificationNode getClassificationNode(int index)
                                         throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getClassificationNode

public ClassificationNode[] getClassificationNode()

getClassificationNodeCount

public int getClassificationNodeCount()

getCode

public java.lang.String getCode()
Returns the value of field 'code'.

Returns:
the value of field 'code'.

getParent

public java.lang.Object getParent()
Returns the value of field 'parent'.

Returns:
the value of field 'parent'.

getPath

public java.lang.String getPath()
Returns the value of field 'path'.

Returns:
the value of field 'path'.

isValid

public boolean isValid()
Overrides:
isValid in class RegistryObjectType

marshal

public abstract void marshal(java.io.Writer out)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Specified by:
marshal in class RegistryObjectType
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public abstract void marshal(org.xml.sax.DocumentHandler handler)
                      throws org.exolab.castor.xml.MarshalException,
                             org.exolab.castor.xml.ValidationException
Specified by:
marshal in class RegistryObjectType
Parameters:
handler -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeClassificationNode

public boolean removeClassificationNode(ClassificationNode vClassificationNode)
Parameters:
vClassificationNode -

setClassificationNode

public void setClassificationNode(int index,
                                  ClassificationNode vClassificationNode)
                           throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vClassificationNode -
Throws:
java.lang.IndexOutOfBoundsException

setClassificationNode

public void setClassificationNode(ClassificationNode[] classificationNodeArray)
Parameters:
classificationNodeArray -

setCode

public void setCode(java.lang.String code)
Sets the value of field 'code'.

Parameters:
code - the value of field 'code'.

setParent

public void setParent(java.lang.Object parent)
Sets the value of field 'parent'.

Parameters:
parent - the value of field 'parent'.

setPath

public void setPath(java.lang.String path)
Sets the value of field 'path'.

Parameters:
path - the value of field 'path'.

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Overrides:
validate in class RegistryObjectType
Throws:
org.exolab.castor.xml.ValidationException