|
|||||||||||
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.ReferenceType
base type for citing arbitrary links between vamsas objects Optional human readable description of the relationship
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 | |
ReferenceType()
|
Method Summary | |
void |
addRefs(int index,
java.lang.Object vRefs)
|
void |
addRefs(java.lang.Object vRefs)
|
java.util.Enumeration |
enumerateRefs()
Method enumerateRefs. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
java.lang.String |
getContent()
Returns the value of field 'content'. |
java.lang.String |
getId()
Returns the value of field 'id'. |
java.lang.Object[] |
getRefs()
Method getRefs.Returns the contents of the collection in an Array. |
java.lang.Object |
getRefs(int index)
Method getRefs. |
java.util.Vector |
getRefsAsReference()
Method getRefsAsReference.Returns a reference to '_refs'. |
int |
getRefsCount()
Method getRefsCount. |
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 |
removeAllRefs()
|
boolean |
removeRefs(java.lang.Object vRefs)
Method removeRefs. |
java.lang.Object |
removeRefsAt(int index)
Method removeRefsAt. |
void |
setContent(java.lang.String content)
Sets the value of field 'content'. |
void |
setId(java.lang.String id)
Sets the value of field 'id'. |
void |
setRefs(int index,
java.lang.Object vRefs)
|
void |
setRefs(java.lang.Object[] vRefsArray)
|
void |
setRefs(java.util.Vector vRefsList)
Sets the value of '_refs' by copying the given Vector. |
void |
setRefsAsReference(java.util.Vector refsVector)
Deprecated. |
static ReferenceType |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
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 ReferenceType()
Method Detail |
public void addRefs(java.lang.Object vRefs) throws java.lang.IndexOutOfBoundsException
vRefs
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addRefs(int index, java.lang.Object vRefs) throws java.lang.IndexOutOfBoundsException
index
- vRefs
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.util.Enumeration enumerateRefs()
public boolean equals(java.lang.Object obj)
obj
-
public java.lang.String getContent()
public java.lang.String getId()
public java.lang.Object getRefs(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.lang.Object[] getRefs()
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 getRefsAsReference()
public int getRefsCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode
in class Vobject
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
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
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 removeAllRefs()
public boolean removeRefs(java.lang.Object vRefs)
vRefs
-
public java.lang.Object removeRefsAt(int index)
index
-
public void setContent(java.lang.String content)
content
- the value of field 'content'.public void setId(java.lang.String id)
id
- the value of field 'id'.public void setRefs(int index, java.lang.Object vRefs) throws java.lang.IndexOutOfBoundsException
index
- vRefs
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setRefs(java.lang.Object[] vRefsArray)
vRefsArray
- public void setRefs(java.util.Vector vRefsList)
vRefsList
- the Vector to copy.public void setRefsAsReference(java.util.Vector refsVector)
refsVector
- the Vector to set.public static ReferenceType 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
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 |