uk.ac.vamsas.objects.core
Class SequenceMapping

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

public class SequenceMapping
extends MapType
implements java.io.Serializable

Class SequenceMapping.

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
SequenceMapping()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Overrides the java.lang.Object.equals method.
 java.lang.String getId()
          Returns the value of field 'id'.
 java.lang.Object getLoc()
          Returns the value of field 'loc'.
 java.lang.Object getMap()
          Returns the value of field 'map'.
 Provenance getProvenance()
          Returns the value of field 'provenance'.
 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 setId(java.lang.String id)
          Sets the value of field 'id'.
 void setLoc(java.lang.Object loc)
          Sets the value of field 'loc'.
 void setMap(java.lang.Object map)
          Sets the value of field 'map'.
 void setProvenance(Provenance provenance)
          Sets the value of field 'provenance'.
static MapType unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class uk.ac.vamsas.objects.core.MapType
getLocal, getMapped, setLocal, setMapped
 
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

SequenceMapping

public SequenceMapping()
Method Detail

equals

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

Overrides:
equals in class MapType
Parameters:
obj -
Returns:
true if the objects are equal.

getId

public java.lang.String getId()
Returns the value of field 'id'.

Returns:
the value of field 'Id'.

getLoc

public java.lang.Object getLoc()
Returns the value of field 'loc'. The field 'loc' has the following description: Object on which the local range is defined.

Returns:
the value of field 'Loc'.

getMap

public java.lang.Object getMap()
Returns the value of field 'map'. The field 'map' has the following description: Object on which the mapped range is defined.

Returns:
the value of field 'Map'.

getProvenance

public Provenance getProvenance()
Returns the value of field 'provenance'.

Returns:
the value of field 'Provenance'.

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

isValid

public boolean isValid()
Method isValid.

Overrides:
isValid in class MapType
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 MapType
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 MapType
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

setId

public void setId(java.lang.String id)
Sets the value of field 'id'.

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

setLoc

public void setLoc(java.lang.Object loc)
Sets the value of field 'loc'. The field 'loc' has the following description: Object on which the local range is defined.

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

setMap

public void setMap(java.lang.Object map)
Sets the value of field 'map'. The field 'map' has the following description: Object on which the mapped range is defined.

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

setProvenance

public void setProvenance(Provenance provenance)
Sets the value of field 'provenance'.

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

unmarshal

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