2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M1</a>, using an XML
8 package org.vamsas.client.objects;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler;
25 * Class AlignmentSequence.
27 * @version $Revision$ $Date$
29 public class AlignmentSequence extends org.vamsas.client.objects.SequenceType
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.Object _id;
48 public AlignmentSequence()
51 } //-- org.vamsas.client.objects.AlignmentSequence()
59 * Note: hashCode() has not been overriden
64 public boolean equals(java.lang.Object obj)
69 if (super.equals(obj)==false)
72 if (obj instanceof AlignmentSequence) {
74 AlignmentSequence temp = (AlignmentSequence)obj;
75 if (this._id != null) {
76 if (temp._id == null) return false;
77 else if (!(this._id.equals(temp._id)))
80 else if (temp._id != null)
85 } //-- boolean equals(java.lang.Object)
88 * Returns the value of field 'id'.
91 * @return the value of field 'id'.
93 public java.lang.Object getId()
96 } //-- java.lang.Object getId()
105 public boolean isValid()
110 catch (org.exolab.castor.xml.ValidationException vex) {
114 } //-- boolean isValid()
123 public void marshal(java.io.Writer out)
124 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
127 Marshaller.marshal(this, out);
128 } //-- void marshal(java.io.Writer)
137 public void marshal(org.xml.sax.ContentHandler handler)
138 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
141 Marshaller.marshal(this, handler);
142 } //-- void marshal(org.xml.sax.ContentHandler)
145 * Sets the value of field 'id'.
147 * @param id the value of field 'id'.
149 public void setId(java.lang.Object id)
152 } //-- void setId(java.lang.Object)
160 * @return SequenceType
162 public static org.vamsas.client.objects.SequenceType unmarshal(java.io.Reader reader)
163 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
165 return (org.vamsas.client.objects.AlignmentSequence) Unmarshaller.unmarshal(org.vamsas.client.objects.AlignmentSequence.class, reader);
166 } //-- org.vamsas.client.objects.SequenceType unmarshal(java.io.Reader)
172 public void validate()
173 throws org.exolab.castor.xml.ValidationException
175 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
176 validator.validate(this);
177 } //-- void validate()