2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
8 package uk.ac.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 DataSetAnnotations.
27 * @version $Revision$ $Date$
29 public class DataSetAnnotations extends uk.ac.vamsas.objects.core.RangeAnnotation
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * annotation is associated with a
40 * particular dataset sequence
42 private java.lang.Object _seqRef;
47 private uk.ac.vamsas.objects.core.Provenance _provenance;
54 public DataSetAnnotations()
57 } //-- uk.ac.vamsas.objects.core.DataSetAnnotations()
65 * Note: hashCode() has not been overriden
70 public boolean equals(java.lang.Object obj)
75 if (super.equals(obj)==false)
78 if (obj instanceof DataSetAnnotations) {
80 DataSetAnnotations temp = (DataSetAnnotations)obj;
81 if (this._seqRef != null) {
82 if (temp._seqRef == null) return false;
83 else if (!(this._seqRef.equals(temp._seqRef)))
86 else if (temp._seqRef != null)
88 if (this._provenance != null) {
89 if (temp._provenance == null) return false;
90 else if (!(this._provenance.equals(temp._provenance)))
93 else if (temp._provenance != null)
98 } //-- boolean equals(java.lang.Object)
101 * Returns the value of field 'provenance'.
104 * @return the value of field 'provenance'.
106 public uk.ac.vamsas.objects.core.Provenance getProvenance()
108 return this._provenance;
109 } //-- uk.ac.vamsas.objects.core.Provenance getProvenance()
112 * Returns the value of field 'seqRef'. The field 'seqRef' has
113 * the following description: annotation is associated with a
114 * particular dataset sequence
117 * @return the value of field 'seqRef'.
119 public java.lang.Object getSeqRef()
122 } //-- java.lang.Object getSeqRef()
131 public boolean isValid()
136 catch (org.exolab.castor.xml.ValidationException vex) {
140 } //-- boolean isValid()
149 public void marshal(java.io.Writer out)
150 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, out);
154 } //-- void marshal(java.io.Writer)
163 public void marshal(org.xml.sax.ContentHandler handler)
164 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
167 Marshaller.marshal(this, handler);
168 } //-- void marshal(org.xml.sax.ContentHandler)
171 * Sets the value of field 'provenance'.
173 * @param provenance the value of field 'provenance'.
175 public void setProvenance(uk.ac.vamsas.objects.core.Provenance provenance)
177 this._provenance = provenance;
178 } //-- void setProvenance(uk.ac.vamsas.objects.core.Provenance)
181 * Sets the value of field 'seqRef'. The field 'seqRef' has the
182 * following description: annotation is associated with a
183 * particular dataset sequence
185 * @param seqRef the value of field 'seqRef'.
187 public void setSeqRef(java.lang.Object seqRef)
189 this._seqRef = seqRef;
190 } //-- void setSeqRef(java.lang.Object)
200 public static uk.ac.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)
201 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
203 return (uk.ac.vamsas.objects.core.DataSetAnnotations) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.DataSetAnnotations.class, reader);
204 } //-- uk.ac.vamsas.objects.core.RangeType unmarshal(java.io.Reader)
210 public void validate()
211 throws org.exolab.castor.xml.ValidationException
213 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
214 validator.validate(this);
215 } //-- void validate()