/* * This class was automatically generated with * Castor 0.9.9M2, using an XML * Schema. * $Id$ */ package org.vamsas.objects.core; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; import org.xml.sax.ContentHandler; /** * Class MapList. * * @version $Revision$ $Date$ */ public class MapList extends org.vamsas.client.Vobject implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Offset to first position in dataset sequence record that * start * position on 'onto' maps to */ private int _from = 0; /** * keeps track of state for field: _from */ private boolean _has_from; /** * Offset to last position in dataset sequence record that end * position on 'onto' maps to */ private int _to = 0; /** * keeps track of state for field: _to */ private boolean _has_to; /** * Offset to first position in database entry that first (or * offset) * position in sequence maps to */ private int _start; /** * keeps track of state for field: _start */ private boolean _has_start; /** * Offset to last position in database entry that last (offset) * position in sequence maps to */ private int _end; /** * keeps track of state for field: _end */ private boolean _has_end; //----------------/ //- Constructors -/ //----------------/ public MapList() { super(); } //-- org.vamsas.objects.core.MapList() //-----------/ //- Methods -/ //-----------/ /** * Method deleteEnd * */ public void deleteEnd() { this._has_end= false; } //-- void deleteEnd() /** * Method deleteFrom * */ public void deleteFrom() { this._has_from= false; } //-- void deleteFrom() /** * Method deleteStart * */ public void deleteStart() { this._has_start= false; } //-- void deleteStart() /** * Method deleteTo * */ public void deleteTo() { this._has_to= false; } //-- void deleteTo() /** * Note: hashCode() has not been overriden * * @param obj * @return boolean */ public boolean equals(java.lang.Object obj) { if ( this == obj ) return true; if (super.equals(obj)==false) return false; if (obj instanceof MapList) { MapList temp = (MapList)obj; if (this._from != temp._from) return false; if (this._has_from != temp._has_from) return false; if (this._to != temp._to) return false; if (this._has_to != temp._has_to) return false; if (this._start != temp._start) return false; if (this._has_start != temp._has_start) return false; if (this._end != temp._end) return false; if (this._has_end != temp._has_end) return false; return true; } return false; } //-- boolean equals(java.lang.Object) /** * Returns the value of field 'end'. The field 'end' has the * following description: Offset to last position in database * entry that last (offset) * position in sequence maps to * * @return int * @return the value of field 'end'. */ public int getEnd() { return this._end; } //-- int getEnd() /** * Returns the value of field 'from'. The field 'from' has the * following description: Offset to first position in dataset * sequence record that start * position on 'onto' maps to * * @return int * @return the value of field 'from'. */ public int getFrom() { return this._from; } //-- int getFrom() /** * Returns the value of field 'start'. The field 'start' has * the following description: Offset to first position in * database entry that first (or offset) * position in sequence maps to * * @return int * @return the value of field 'start'. */ public int getStart() { return this._start; } //-- int getStart() /** * Returns the value of field 'to'. The field 'to' has the * following description: Offset to last position in dataset * sequence record that end * position on 'onto' maps to * * @return int * @return the value of field 'to'. */ public int getTo() { return this._to; } //-- int getTo() /** * Method hasEnd * * * * @return boolean */ public boolean hasEnd() { return this._has_end; } //-- boolean hasEnd() /** * Method hasFrom * * * * @return boolean */ public boolean hasFrom() { return this._has_from; } //-- boolean hasFrom() /** * Method hasStart * * * * @return boolean */ public boolean hasStart() { return this._has_start; } //-- boolean hasStart() /** * Method hasTo * * * * @return boolean */ public boolean hasTo() { return this._has_to; } //-- boolean hasTo() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'end'. The field 'end' has the * following description: Offset to last position in database * entry that last (offset) * position in sequence maps to * * @param end the value of field 'end'. */ public void setEnd(int end) { this._end = end; this._has_end = true; } //-- void setEnd(int) /** * Sets the value of field 'from'. The field 'from' has the * following description: Offset to first position in dataset * sequence record that start * position on 'onto' maps to * * @param from the value of field 'from'. */ public void setFrom(int from) { this._from = from; this._has_from = true; } //-- void setFrom(int) /** * Sets the value of field 'start'. The field 'start' has the * following description: Offset to first position in database * entry that first (or offset) * position in sequence maps to * * @param start the value of field 'start'. */ public void setStart(int start) { this._start = start; this._has_start = true; } //-- void setStart(int) /** * Sets the value of field 'to'. The field 'to' has the * following description: Offset to last position in dataset * sequence record that end * position on 'onto' maps to * * @param to the value of field 'to'. */ public void setTo(int to) { this._to = to; this._has_to = true; } //-- void setTo(int) /** * Method unmarshal * * * * @param reader * @return MapList */ public static org.vamsas.objects.core.MapList unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.vamsas.objects.core.MapList) Unmarshaller.unmarshal(org.vamsas.objects.core.MapList.class, reader); } //-- org.vamsas.objects.core.MapList unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }