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 AlignmentSequenceAnnotation.
27 * @version $Revision$ $Date$
29 public class AlignmentSequenceAnnotation extends org.vamsas.objects.core.RangeAnnotation
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
62 private boolean _graph;
65 * keeps track of state for field: _graph
67 private boolean _has_graph;
72 private org.vamsas.objects.core.Provenance _provenance;
79 public AlignmentSequenceAnnotation()
82 } //-- org.vamsas.objects.core.AlignmentSequenceAnnotation()
93 public void deleteGraph()
95 this._has_graph= false;
96 } //-- void deleteGraph()
99 * Note: hashCode() has not been overriden
104 public boolean equals(java.lang.Object obj)
109 if (super.equals(obj)==false)
112 if (obj instanceof AlignmentSequenceAnnotation) {
114 AlignmentSequenceAnnotation temp = (AlignmentSequenceAnnotation)obj;
115 if (this._graph != temp._graph)
117 if (this._has_graph != temp._has_graph)
119 if (this._provenance != null) {
120 if (temp._provenance == null) return false;
121 else if (!(this._provenance.equals(temp._provenance)))
124 else if (temp._provenance != null)
129 } //-- boolean equals(java.lang.Object)
132 * Returns the value of field 'graph'. The field 'graph' has
133 * the following description: TODO:
157 * @return the value of field 'graph'.
159 public boolean getGraph()
162 } //-- boolean getGraph()
165 * Returns the value of field 'provenance'.
168 * @return the value of field 'provenance'.
170 public org.vamsas.objects.core.Provenance getProvenance()
172 return this._provenance;
173 } //-- org.vamsas.objects.core.Provenance getProvenance()
182 public boolean hasGraph()
184 return this._has_graph;
185 } //-- boolean hasGraph()
194 public boolean isValid()
199 catch (org.exolab.castor.xml.ValidationException vex) {
203 } //-- boolean isValid()
212 public void marshal(java.io.Writer out)
213 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
216 Marshaller.marshal(this, out);
217 } //-- void marshal(java.io.Writer)
226 public void marshal(org.xml.sax.ContentHandler handler)
227 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
230 Marshaller.marshal(this, handler);
231 } //-- void marshal(org.xml.sax.ContentHandler)
234 * Sets the value of field 'graph'. The field 'graph' has the
235 * following description: TODO:
258 * @param graph the value of field 'graph'.
260 public void setGraph(boolean graph)
263 this._has_graph = true;
264 } //-- void setGraph(boolean)
267 * Sets the value of field 'provenance'.
269 * @param provenance the value of field 'provenance'.
271 public void setProvenance(org.vamsas.objects.core.Provenance provenance)
273 this._provenance = provenance;
274 } //-- void setProvenance(org.vamsas.objects.core.Provenance)
284 public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)
285 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
287 return (org.vamsas.objects.core.AlignmentSequenceAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentSequenceAnnotation.class, reader);
288 } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader)
294 public void validate()
295 throws org.exolab.castor.xml.ValidationException
297 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
298 validator.validate(this);
299 } //-- void validate()