uk.ac.vamsas.objects.core
Class Range

java.lang.Object
  extended byuk.ac.vamsas.client.Vobject
      extended byuk.ac.vamsas.objects.core.Range
All Implemented Interfaces:
java.io.Serializable

public class Range
extends Vobject
implements java.io.Serializable

Class Range.

Version:
$Revision$ $Date$
See Also:
Serialized Form

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
Range()
           
 
Method Summary
 void deleteSeqAEnd()
           
 void deleteSeqAStart()
           
 void deleteSeqBEnd()
           
 void deleteSeqBStart()
           
 boolean equals(java.lang.Object obj)
          Overrides the java.lang.Object.equals method.
 int getSeqAEnd()
          Returns the value of field 'seqAEnd'.
 int getSeqAStart()
          Returns the value of field 'seqAStart'.
 int getSeqBEnd()
          Returns the value of field 'seqBEnd'.
 int getSeqBStart()
          Returns the value of field 'seqBStart'.
 int hashCode()
          Overrides the java.lang.Object.hashCode method.
 boolean hasSeqAEnd()
          Method hasSeqAEnd.
 boolean hasSeqAStart()
          Method hasSeqAStart.
 boolean hasSeqBEnd()
          Method hasSeqBEnd.
 boolean hasSeqBStart()
          Method hasSeqBStart.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setSeqAEnd(int seqAEnd)
          Sets the value of field 'seqAEnd'.
 void setSeqAStart(int seqAStart)
          Sets the value of field 'seqAStart'.
 void setSeqBEnd(int seqBEnd)
          Sets the value of field 'seqBEnd'.
 void setSeqBStart(int seqBStart)
          Sets the value of field 'seqBStart'.
static Range 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

Range

public Range()
Method Detail

deleteSeqAEnd

public void deleteSeqAEnd()

deleteSeqAStart

public void deleteSeqAStart()

deleteSeqBEnd

public void deleteSeqBEnd()

deleteSeqBStart

public void deleteSeqBStart()

equals

public boolean equals(java.lang.Object obj)
Overrides the java.lang.Object.equals method.

Parameters:
obj -
Returns:
true if the objects are equal.

getSeqAEnd

public int getSeqAEnd()
Returns the value of field 'seqAEnd'.

Returns:
the value of field 'SeqAEnd'.

getSeqAStart

public int getSeqAStart()
Returns the value of field 'seqAStart'.

Returns:
the value of field 'SeqAStart'.

getSeqBEnd

public int getSeqBEnd()
Returns the value of field 'seqBEnd'.

Returns:
the value of field 'SeqBEnd'.

getSeqBStart

public int getSeqBStart()
Returns the value of field 'seqBStart'.

Returns:
the value of field 'SeqBStart'.

hasSeqAEnd

public boolean hasSeqAEnd()
Method hasSeqAEnd.

Returns:
true if at least one SeqAEnd has been added

hasSeqAStart

public boolean hasSeqAStart()
Method hasSeqAStart.

Returns:
true if at least one SeqAStart has been added

hasSeqBEnd

public boolean hasSeqBEnd()
Method hasSeqBEnd.

Returns:
true if at least one SeqBEnd has been added

hasSeqBStart

public boolean hasSeqBStart()
Method hasSeqBStart.

Returns:
true if at least one SeqBStart has been added

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 Vobject
Returns:
a hash code value for the object.

isValid

public boolean isValid()
Method isValid.

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
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
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

setSeqAEnd

public void setSeqAEnd(int seqAEnd)
Sets the value of field 'seqAEnd'.

Parameters:
seqAEnd - the value of field 'seqAEnd'.

setSeqAStart

public void setSeqAStart(int seqAStart)
Sets the value of field 'seqAStart'.

Parameters:
seqAStart - the value of field 'seqAStart'.

setSeqBEnd

public void setSeqBEnd(int seqBEnd)
Sets the value of field 'seqBEnd'.

Parameters:
seqBEnd - the value of field 'seqBEnd'.

setSeqBStart

public void setSeqBStart(int seqBStart)
Sets the value of field 'seqBStart'.

Parameters:
seqBStart - the value of field 'seqBStart'.

unmarshal

public static Range 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.Range
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
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema