uk.ac.vamsas.objects.core
Class Local
java.lang.Object
uk.ac.vamsas.client.Vobject
uk.ac.vamsas.objects.core.RangeType
uk.ac.vamsas.objects.core.MapRangeType
uk.ac.vamsas.objects.core.Local
- All Implemented Interfaces:
- java.io.Serializable
- public class Local
- extends MapRangeType
- implements java.io.Serializable
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
Constructor Summary |
Local()
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method. |
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)
|
static RangeType |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class uk.ac.vamsas.objects.core.RangeType |
addPos, addPos, addSeg, addSeg, enumeratePos, enumerateSeg, getChoiceValue, getPos, getPos, getPosAsReference, getPosCount, getSeg, getSeg, getSegAsReference, getSegCount, removeAllPos, removeAllSeg, removePos, removePosAt, removeSeg, removeSegAt, setPos, setPos, setPos, setPosAsReference, setSeg, setSeg, setSeg, setSegAsReference |
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 |
Local
public Local()
equals
public boolean equals(java.lang.Object obj)
- Overrides the java.lang.Object.equals method.
- Overrides:
equals
in class MapRangeType
- Parameters:
obj
-
- Returns:
- true if the objects are equal.
hashCode
public int hashCode()
- Overrides the java.lang.Object.hashCode method.
The following steps came from Effective Java Programming Language
Guide by Joshua Bloch, Chapter 3
- Overrides:
hashCode
in class MapRangeType
- Returns:
- a hash code value for the object.
isValid
public boolean isValid()
- Method isValid.
- Overrides:
isValid
in class MapRangeType
- Returns:
- true if this object is valid according to the schema
marshal
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Overrides:
marshal
in class MapRangeType
- Parameters:
out
-
- Throws:
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 schema
marshal
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Overrides:
marshal
in class MapRangeType
- Parameters:
handler
-
- Throws:
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
marshaling
unmarshal
public static RangeType unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Method unmarshal.
- Parameters:
reader
-
- Returns:
- the unmarshaled uk.ac.vamsas.objects.core.RangeType
- Throws:
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 schema
validate
public void validate()
throws org.exolab.castor.xml.ValidationException
- Overrides:
validate
in class MapRangeType
- Throws:
org.exolab.castor.xml.ValidationException
- if this object is an invalid instance according to the schema