|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.Vobject
uk.ac.vamsas.objects.core.NodeType
uk.ac.vamsas.objects.core.Treenode
node identity and mapping data between tree representations and vamsas document objects
Field Summary |
Fields inherited from class uk.ac.vamsas.client.Vobject |
__added_since_last_read, __last_hash, __stored_in_document, __updated_since_last_read, __visited, __vorba, registerable, V_parent, vorbaId |
Constructor Summary | |
Treenode()
|
Method Summary | |
void |
addTreeId(int index,
java.lang.Object vTreeId)
|
void |
addTreeId(java.lang.Object vTreeId)
|
java.util.Enumeration |
enumerateTreeId()
Method enumerateTreeId. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
java.lang.String |
getNodespec()
Returns the value of field 'nodespec'. |
java.lang.Object[] |
getTreeId()
Method getTreeId.Returns the contents of the collection in an Array. |
java.lang.Object |
getTreeId(int index)
Method getTreeId. |
java.util.Vector |
getTreeIdAsReference()
Method getTreeIdAsReference.Returns a reference to '_treeId'. |
int |
getTreeIdCount()
Method getTreeIdCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllTreeId()
|
boolean |
removeTreeId(java.lang.Object vTreeId)
Method removeTreeId. |
java.lang.Object |
removeTreeIdAt(int index)
Method removeTreeIdAt. |
void |
setNodespec(java.lang.String nodespec)
Sets the value of field 'nodespec'. |
void |
setTreeId(int index,
java.lang.Object vTreeId)
|
void |
setTreeId(java.lang.Object[] vTreeIdArray)
|
void |
setTreeId(java.util.Vector vTreeIdList)
Sets the value of '_treeId' by copying the given Vector. |
void |
setTreeIdAsReference(java.util.Vector treeIdVector)
Deprecated. |
static NodeType |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class uk.ac.vamsas.objects.core.NodeType |
addProperty, addProperty, addVref, addVref, enumerateProperty, enumerateVref, getDescription, getId, getModifiable, getName, getProperty, getProperty, getPropertyAsReference, getPropertyCount, getVref, getVref, getVrefAsReference, getVrefCount, removeAllProperty, removeAllVref, removeProperty, removePropertyAt, removeVref, removeVrefAt, setDescription, setId, setModifiable, setName, setProperty, setProperty, setProperty, setPropertyAsReference, setVref, setVref, setVref, setVrefAsReference |
Methods inherited from class uk.ac.vamsas.client.Vobject |
__callHash, __ensure_instance_ids, __ensure_instance_ids, __getInstanceIdField, __getLHash, __setFinalHash, __setInitHash, doHash, finalize, get__last_hash, getV_parent, getVorbaId, is__stored_in_document, isNewInDocument, isRegisterable, isRegistered, isUpdated, merge, set__added_since_last_read, set__stored_in_document, set__updated_since_last_read, setInstanceIdField, setRegisterable, setV_parent, setVorbaId |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Treenode()
Method Detail |
public void addTreeId(java.lang.Object vTreeId) throws java.lang.IndexOutOfBoundsException
vTreeId
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addTreeId(int index, java.lang.Object vTreeId) throws java.lang.IndexOutOfBoundsException
index
- vTreeId
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.util.Enumeration enumerateTreeId()
public boolean equals(java.lang.Object obj)
equals
in class NodeType
obj
-
public java.lang.String getNodespec()
public java.lang.Object getTreeId(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.lang.Object[] getTreeId()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.Vector getTreeIdAsReference()
public int getTreeIdCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode
in class NodeType
public boolean isValid()
isValid
in class NodeType
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class NodeType
out
-
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class NodeType
handler
-
java.io.IOException
- if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshalingpublic void removeAllTreeId()
public boolean removeTreeId(java.lang.Object vTreeId)
vTreeId
-
public java.lang.Object removeTreeIdAt(int index)
index
-
public void setNodespec(java.lang.String nodespec)
nodespec
- the value of field 'nodespec'.public void setTreeId(int index, java.lang.Object vTreeId) throws java.lang.IndexOutOfBoundsException
index
- vTreeId
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setTreeId(java.lang.Object[] vTreeIdArray)
vTreeIdArray
- public void setTreeId(java.util.Vector vTreeIdList)
vTreeIdList
- the Vector to copy.public void setTreeIdAsReference(java.util.Vector treeIdVector)
treeIdVector
- the Vector to set.public static NodeType unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is null or if any SAXException is thrown during
marshaling
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
validate
in class NodeType
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schema
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |