|
|||||||||||
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.AnnotationElement
Class AnnotationElement.
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 | |
AnnotationElement()
|
Method Summary | |
void |
addGlyph(Glyph vGlyph)
|
void |
addGlyph(int index,
Glyph vGlyph)
|
void |
addValue(float vValue)
|
void |
addValue(int index,
float vValue)
|
void |
deleteAfter()
|
void |
deletePosition()
|
java.util.Enumeration |
enumerateGlyph()
Method enumerateGlyph. |
java.util.Enumeration |
enumerateValue()
Method enumerateValue. |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
boolean |
getAfter()
Returns the value of field 'after'. |
java.lang.String |
getDescription()
Returns the value of field 'description'. |
Glyph[] |
getGlyph()
Method getGlyph.Returns the contents of the collection in an Array. |
Glyph |
getGlyph(int index)
Method getGlyph. |
java.util.Vector |
getGlyphAsReference()
Method getGlyphAsReference.Returns a reference to '_glyphList'. |
int |
getGlyphCount()
Method getGlyphCount. |
java.lang.String |
getId()
Returns the value of field 'id'. |
long |
getPosition()
Returns the value of field 'position'. |
float[] |
getValue()
Method getValue.Returns the contents of the collection in an Array. |
float |
getValue(int index)
Method getValue. |
java.util.Vector |
getValueAsReference()
Method getValueAsReference.Returns a reference to '_valueList'. |
int |
getValueCount()
Method getValueCount. |
boolean |
hasAfter()
Method hasAfter. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
hasPosition()
Method hasPosition. |
boolean |
isAfter()
Returns the value of field 'after'. |
boolean |
isValid()
Method isValid. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllGlyph()
|
void |
removeAllValue()
|
boolean |
removeGlyph(Glyph vGlyph)
Method removeGlyph. |
Glyph |
removeGlyphAt(int index)
Method removeGlyphAt. |
boolean |
removeValue(float vValue)
Method removeValue. |
float |
removeValueAt(int index)
Method removeValueAt. |
void |
setAfter(boolean after)
Sets the value of field 'after'. |
void |
setDescription(java.lang.String description)
Sets the value of field 'description'. |
void |
setGlyph(Glyph[] vGlyphArray)
|
void |
setGlyph(int index,
Glyph vGlyph)
|
void |
setGlyph(java.util.Vector vGlyphList)
Sets the value of '_glyphList' by copying the given Vector. |
void |
setGlyphAsReference(java.util.Vector glyphVector)
Deprecated. |
void |
setId(java.lang.String id)
Sets the value of field 'id'. |
void |
setPosition(long position)
Sets the value of field 'position'. |
void |
setValue(float[] vValueArray)
|
void |
setValue(int index,
float vValue)
|
void |
setValue(java.util.Vector vValueList)
Sets the value of '_valueList' by copying the given Vector. |
void |
setValueAsReference(java.util.Vector valueVector)
Deprecated. |
static AnnotationElement |
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 AnnotationElement()
Method Detail |
public void addGlyph(Glyph vGlyph) throws java.lang.IndexOutOfBoundsException
vGlyph
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addGlyph(int index, Glyph vGlyph) throws java.lang.IndexOutOfBoundsException
index
- vGlyph
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addValue(float vValue) throws java.lang.IndexOutOfBoundsException
vValue
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addValue(int index, float vValue) throws java.lang.IndexOutOfBoundsException
index
- vValue
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void deleteAfter()
public void deletePosition()
public java.util.Enumeration enumerateGlyph()
public java.util.Enumeration enumerateValue()
public boolean equals(java.lang.Object obj)
obj
-
public boolean getAfter()
public java.lang.String getDescription()
public Glyph getGlyph(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Glyph[] getGlyph()
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 getGlyphAsReference()
public int getGlyphCount()
public java.lang.String getId()
public long getPosition()
public float getValue(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic float[] getValue()
public java.util.Vector getValueAsReference()
public int getValueCount()
public boolean hasAfter()
public boolean hasPosition()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode
in class Vobject
public boolean isAfter()
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 removeAllGlyph()
public void removeAllValue()
public boolean removeGlyph(Glyph vGlyph)
vGlyph
-
public Glyph removeGlyphAt(int index)
index
-
public boolean removeValue(float vValue)
vValue
-
public float removeValueAt(int index)
index
-
public void setAfter(boolean after)
after
- the value of field 'after'.public void setDescription(java.lang.String description)
description
- the value of field 'description'.public void setGlyph(int index, Glyph vGlyph) throws java.lang.IndexOutOfBoundsException
index
- vGlyph
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setGlyph(Glyph[] vGlyphArray)
vGlyphArray
- public void setGlyph(java.util.Vector vGlyphList)
vGlyphList
- the Vector to copy.public void setGlyphAsReference(java.util.Vector glyphVector)
glyphVector
- the Vector to set.public void setId(java.lang.String id)
id
- the value of field 'id'.public void setPosition(long position)
position
- the value of field 'position'.public void setValue(int index, float vValue) throws java.lang.IndexOutOfBoundsException
index
- vValue
-
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setValue(float[] vValueArray)
vValueArray
- public void setValue(java.util.Vector vValueList)
vValueList
- the Vector to copy.public void setValueAsReference(java.util.Vector valueVector)
valueVector
- the Vector to set.public static AnnotationElement 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 |