2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
8 package org.vamsas.objects.core;
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.objects.core.SequenceType
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _id;
46 private java.lang.Object _refid;
53 public AlignmentSequence()
56 } //-- org.vamsas.objects.core.AlignmentSequence()
64 * Note: hashCode() has not been overriden
69 public boolean equals(java.lang.Object obj)
74 if (super.equals(obj)==false)
77 if (obj instanceof AlignmentSequence) {
79 AlignmentSequence temp = (AlignmentSequence)obj;
80 if (this._id != null) {
81 if (temp._id == null) return false;
82 else if (!(this._id.equals(temp._id)))
85 else if (temp._id != null)
87 if (this._refid != null) {
88 if (temp._refid == null) return false;
89 else if (!(this._refid.equals(temp._refid)))
92 else if (temp._refid != null)
97 } //-- boolean equals(java.lang.Object)
100 * Returns the value of field 'id'.
103 * @return the value of field 'id'.
105 public java.lang.String getId()
108 } //-- java.lang.String getId()
111 * Returns the value of field 'refid'.
114 * @return the value of field 'refid'.
116 public java.lang.Object getRefid()
119 } //-- java.lang.Object getRefid()
128 public boolean isValid()
133 catch (org.exolab.castor.xml.ValidationException vex) {
137 } //-- boolean isValid()
146 public void marshal(java.io.Writer out)
147 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
150 Marshaller.marshal(this, out);
151 } //-- void marshal(java.io.Writer)
160 public void marshal(org.xml.sax.ContentHandler handler)
161 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
164 Marshaller.marshal(this, handler);
165 } //-- void marshal(org.xml.sax.ContentHandler)
168 * Sets the value of field 'id'.
170 * @param id the value of field 'id'.
172 public void setId(java.lang.String id)
175 } //-- void setId(java.lang.String)
178 * Sets the value of field 'refid'.
180 * @param refid the value of field 'refid'.
182 public void setRefid(java.lang.Object refid)
185 } //-- void setRefid(java.lang.Object)
193 * @return SequenceType
195 public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)
196 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
198 return (org.vamsas.objects.core.AlignmentSequence) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentSequence.class, reader);
199 } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader)
205 public void validate()
206 throws org.exolab.castor.xml.ValidationException
208 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
209 validator.validate(this);
210 } //-- void validate()