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 DataSetAnnotations.
27 * @version $Revision$ $Date$
29 public class DataSetAnnotations extends org.vamsas.objects.core.RangeAnnotation
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * annotation is associated
40 * with a particular dataset
44 private java.lang.Object _seqRef;
49 private org.vamsas.objects.core.Provenance _provenance;
56 public DataSetAnnotations()
59 } //-- org.vamsas.objects.core.DataSetAnnotations()
67 * Note: hashCode() has not been overriden
72 public boolean equals(java.lang.Object obj)
77 if (super.equals(obj)==false)
80 if (obj instanceof DataSetAnnotations) {
82 DataSetAnnotations temp = (DataSetAnnotations)obj;
83 if (this._seqRef != null) {
84 if (temp._seqRef == null) return false;
85 else if (!(this._seqRef.equals(temp._seqRef)))
88 else if (temp._seqRef != null)
90 if (this._provenance != null) {
91 if (temp._provenance == null) return false;
92 else if (!(this._provenance.equals(temp._provenance)))
95 else if (temp._provenance != null)
100 } //-- boolean equals(java.lang.Object)
103 * Returns the value of field 'provenance'.
106 * @return the value of field 'provenance'.
108 public org.vamsas.objects.core.Provenance getProvenance()
110 return this._provenance;
111 } //-- org.vamsas.objects.core.Provenance getProvenance()
114 * Returns the value of field 'seqRef'. The field 'seqRef' has
115 * the following description: annotation is associated
116 * with a particular dataset
121 * @return the value of field 'seqRef'.
123 public java.lang.Object getSeqRef()
126 } //-- java.lang.Object getSeqRef()
135 public boolean isValid()
140 catch (org.exolab.castor.xml.ValidationException vex) {
144 } //-- boolean isValid()
153 public void marshal(java.io.Writer out)
154 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
157 Marshaller.marshal(this, out);
158 } //-- void marshal(java.io.Writer)
167 public void marshal(org.xml.sax.ContentHandler handler)
168 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
171 Marshaller.marshal(this, handler);
172 } //-- void marshal(org.xml.sax.ContentHandler)
175 * Sets the value of field 'provenance'.
177 * @param provenance the value of field 'provenance'.
179 public void setProvenance(org.vamsas.objects.core.Provenance provenance)
181 this._provenance = provenance;
182 } //-- void setProvenance(org.vamsas.objects.core.Provenance)
185 * Sets the value of field 'seqRef'. The field 'seqRef' has the
186 * following description: annotation is associated
187 * with a particular dataset
191 * @param seqRef the value of field 'seqRef'.
193 public void setSeqRef(java.lang.Object seqRef)
195 this._seqRef = seqRef;
196 } //-- void setSeqRef(java.lang.Object)
206 public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)
207 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
209 return (org.vamsas.objects.core.DataSetAnnotations) Unmarshaller.unmarshal(org.vamsas.objects.core.DataSetAnnotations.class, reader);
210 } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader)
216 public void validate()
217 throws org.exolab.castor.xml.ValidationException
219 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
220 validator.validate(this);
221 } //-- void validate()