|
|||||||||||
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.RangeType
Specify an ordered set of positions and/or regions on the principle dimension of some associated vamsas object Keeping to jaxb-1.0 specification for the moment - this choice should become a substitution group when we use jaxb-2.0 capable bindings
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 | |
RangeType()
|
Method Summary | |
void |
addPos(int index,
Pos vPos)
|
void |
addPos(Pos vPos)
|
void |
addSeg(int index,
Seg vSeg)
|
void |
addSeg(Seg vSeg)
|
java.util.Enumeration |
enumeratePos()
Method enumeratePos. |
java.util.Enumeration |
enumerateSeg()
Method enumerateSeg. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
java.lang.Object |
getChoiceValue()
Returns the value of field 'choiceValue'. |
Pos[] |
getPos()
Method getPos.Returns the contents of the collection in an Array. |
Pos |
getPos(int index)
Method getPos. |
java.util.Vector |
getPosAsReference()
Method getPosAsReference.Returns a reference to '_posList'. |
int |
getPosCount()
Method getPosCount. |
Seg[] |
getSeg()
Method getSeg.Returns the contents of the collection in an Array. |
Seg |
getSeg(int index)
Method getSeg. |
java.util.Vector |
getSegAsReference()
Method getSegAsReference.Returns a reference to '_segList'. |
int |
getSegCount()
Method getSegCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
void |
removeAllPos()
|
void |
removeAllSeg()
|
boolean |
removePos(Pos vPos)
Method removePos. |
Pos |
removePosAt(int index)
Method removePosAt. |
boolean |
removeSeg(Seg vSeg)
Method removeSeg. |
Seg |
removeSegAt(int index)
Method removeSegAt. |
void |
setPos(int index,
Pos vPos)
|
void |
setPos(Pos[] vPosArray)
|
void |
setPos(java.util.Vector vPosList)
Sets the value of '_posList' by copying the given Vector. |
void |
setPosAsReference(java.util.Vector posVector)
Deprecated. |
void |
setSeg(int index,
Seg vSeg)
|
void |
setSeg(Seg[] vSegArray)
|
void |
setSeg(java.util.Vector vSegList)
Sets the value of '_segList' by copying the given Vector. |
void |
setSegAsReference(java.util.Vector segVector)
Deprecated. |
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 RangeType()
Method Detail |
public void addPos(Pos vPos) throws java.lang.IndexOutOfBoundsException
vPos
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addPos(int index, Pos vPos) throws java.lang.IndexOutOfBoundsException
index
- vPos
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addSeg(Seg vSeg) throws java.lang.IndexOutOfBoundsException
vSeg
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addSeg(int index, Seg vSeg) throws java.lang.IndexOutOfBoundsException
index
- vSeg
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic java.util.Enumeration enumeratePos()
public java.util.Enumeration enumerateSeg()
public boolean equals(java.lang.Object obj)
obj
-
public java.lang.Object getChoiceValue()
public Pos getPos(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Pos[] getPos()
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 getPosAsReference()
public int getPosCount()
public Seg getSeg(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Seg[] getSeg()
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 getSegAsReference()
public int getSegCount()
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 removeAllPos()
public void removeAllSeg()
public boolean removePos(Pos vPos)
vPos
-
public Pos removePosAt(int index)
index
-
public boolean removeSeg(Seg vSeg)
vSeg
-
public Seg removeSegAt(int index)
index
-
public void setPos(int index, Pos vPos) throws java.lang.IndexOutOfBoundsException
index
- vPos
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setPos(Pos[] vPosArray)
vPosArray
- public void setPos(java.util.Vector vPosList)
vPosList
- the Vector to copy.public void setPosAsReference(java.util.Vector posVector)
posVector
- the Vector to set.public void setSeg(int index, Seg vSeg) throws java.lang.IndexOutOfBoundsException
index
- vSeg
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setSeg(Seg[] vSegArray)
vSegArray
- public void setSeg(java.util.Vector vSegList)
vSegList
- the Vector to copy.public void setSegAsReference(java.util.Vector segVector)
segVector
- the Vector to set.public 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 |