|
|||||||||||
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.SequenceType
uk.ac.vamsas.objects.core.Sequence
Class Sequence.
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 | |
Sequence()
|
Method Summary | |
void |
addDbRef(DbRef vDbRef)
|
void |
addDbRef(int index,
DbRef vDbRef)
|
void |
addVxref(int index,
Vxref vVxref)
|
void |
addVxref(Vxref vVxref)
|
java.util.Enumeration |
enumerateDbRef()
Method enumerateDbRef. |
java.util.Enumeration |
enumerateVxref()
Method enumerateVxref. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
DbRef[] |
getDbRef()
Method getDbRef.Returns the contents of the collection in an Array. |
DbRef |
getDbRef(int index)
Method getDbRef. |
java.util.Vector |
getDbRefAsReference()
Method getDbRefAsReference.Returns a reference to '_dbRefList'. |
int |
getDbRefCount()
Method getDbRefCount. |
java.lang.String |
getDictionary()
Returns the value of field 'dictionary'. |
java.lang.String |
getId()
Returns the value of field 'id'. |
Vxref[] |
getVxref()
Method getVxref.Returns the contents of the collection in an Array. |
Vxref |
getVxref(int index)
Method getVxref. |
java.util.Vector |
getVxrefAsReference()
Method getVxrefAsReference.Returns a reference to '_vxrefList'. |
int |
getVxrefCount()
Method getVxrefCount. |
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 |
removeAllDbRef()
|
void |
removeAllVxref()
|
boolean |
removeDbRef(DbRef vDbRef)
Method removeDbRef. |
DbRef |
removeDbRefAt(int index)
Method removeDbRefAt. |
boolean |
removeVxref(Vxref vVxref)
Method removeVxref. |
Vxref |
removeVxrefAt(int index)
Method removeVxrefAt. |
void |
setDbRef(DbRef[] vDbRefArray)
|
void |
setDbRef(int index,
DbRef vDbRef)
|
void |
setDbRef(java.util.Vector vDbRefList)
Sets the value of '_dbRefList' by copying the given Vector. |
void |
setDbRefAsReference(java.util.Vector dbRefVector)
Deprecated. |
void |
setDictionary(java.lang.String dictionary)
Sets the value of field 'dictionary'. |
void |
setId(java.lang.String id)
Sets the value of field 'id'. |
void |
setVxref(int index,
Vxref vVxref)
|
void |
setVxref(java.util.Vector vVxrefList)
Sets the value of '_vxrefList' by copying the given Vector. |
void |
setVxref(Vxref[] vVxrefArray)
|
void |
setVxrefAsReference(java.util.Vector vxrefVector)
Deprecated. |
static SequenceType |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class uk.ac.vamsas.objects.core.SequenceType |
addProperty, addProperty, deleteEnd, deleteStart, enumerateProperty, getDescription, getEnd, getName, getProperty, getProperty, getPropertyAsReference, getPropertyCount, getSequence, getStart, hasEnd, hasStart, removeAllProperty, removeProperty, removePropertyAt, setDescription, setEnd, setName, setProperty, setProperty, setProperty, setPropertyAsReference, setSequence, setStart |
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 Sequence()
Method Detail |
public void addDbRef(DbRef vDbRef) throws java.lang.IndexOutOfBoundsException
vDbRef
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addDbRef(int index, DbRef vDbRef) throws java.lang.IndexOutOfBoundsException
index
- vDbRef
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addVxref(Vxref vVxref) throws java.lang.IndexOutOfBoundsException
vVxref
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addVxref(int index, Vxref vVxref) throws java.lang.IndexOutOfBoundsException
index
- vVxref
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.util.Enumeration enumerateDbRef()
public java.util.Enumeration enumerateVxref()
public boolean equals(java.lang.Object obj)
equals
in class SequenceType
obj
-
public DbRef getDbRef(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic DbRef[] getDbRef()
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 getDbRefAsReference()
public int getDbRefCount()
public java.lang.String getDictionary()
public java.lang.String getId()
public Vxref getVxref(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Vxref[] getVxref()
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 getVxrefAsReference()
public int getVxrefCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode
in class SequenceType
public boolean isValid()
isValid
in class SequenceType
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class SequenceType
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 SequenceType
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 removeAllDbRef()
public void removeAllVxref()
public boolean removeDbRef(DbRef vDbRef)
vDbRef
-
public DbRef removeDbRefAt(int index)
index
-
public boolean removeVxref(Vxref vVxref)
vVxref
-
public Vxref removeVxrefAt(int index)
index
-
public void setDbRef(int index, DbRef vDbRef) throws java.lang.IndexOutOfBoundsException
index
- vDbRef
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setDbRef(DbRef[] vDbRefArray)
vDbRefArray
- public void setDbRef(java.util.Vector vDbRefList)
vDbRefList
- the Vector to copy.public void setDbRefAsReference(java.util.Vector dbRefVector)
dbRefVector
- the Vector to set.public void setDictionary(java.lang.String dictionary)
dictionary
- the value of field 'dictionary'.public void setId(java.lang.String id)
id
- the value of field 'id'.public void setVxref(int index, Vxref vVxref) throws java.lang.IndexOutOfBoundsException
index
- vVxref
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setVxref(Vxref[] vVxrefArray)
vVxrefArray
- public void setVxref(java.util.Vector vVxrefList)
vVxrefList
- the Vector to copy.public void setVxrefAsReference(java.util.Vector vxrefVector)
vxrefVector
- the Vector to set.public static SequenceType 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 SequenceType
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 |