/* * This class was automatically generated with * Castor 0.9.9M1, using an XML * Schema. * $Id$ */ package org.vamsas.client.objects; //---------------------------------/ //- 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 AlignmentSequence. * * @version $Revision$ $Date$ */ public class AlignmentSequence extends org.vamsas.client.objects.SequenceType implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _id */ private java.lang.Object _id; //----------------/ //- Constructors -/ //----------------/ public AlignmentSequence() { super(); } //-- org.vamsas.client.objects.AlignmentSequence() //-----------/ //- Methods -/ //-----------/ /** * 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 AlignmentSequence) { AlignmentSequence temp = (AlignmentSequence)obj; if (this._id != null) { if (temp._id == null) return false; else if (!(this._id.equals(temp._id))) return false; } else if (temp._id != null) return false; return true; } return false; } //-- boolean equals(java.lang.Object) /** * Returns the value of field 'id'. * * @return Object * @return the value of field 'id'. */ public java.lang.Object getId() { return this._id; } //-- java.lang.Object getId() /** * 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 'id'. * * @param id the value of field 'id'. */ public void setId(java.lang.Object id) { this._id = id; } //-- void setId(java.lang.Object) /** * Method unmarshal * * * * @param reader * @return SequenceType */ public static org.vamsas.client.objects.SequenceType unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.vamsas.client.objects.AlignmentSequence) Unmarshaller.unmarshal(org.vamsas.client.objects.AlignmentSequence.class, reader); } //-- org.vamsas.client.objects.SequenceType 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() }