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;
27 * @version $Revision$ $Date$
29 public class SequenceType extends org.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
44 * keeps track of state for field: _start
46 private boolean _has_start;
54 * keeps track of state for field: _end
56 private boolean _has_end;
61 private java.lang.String _sequence;
66 private java.lang.String _name;
76 } //-- org.vamsas.objects.core.SequenceType()
87 public void deleteEnd()
90 } //-- void deleteEnd()
96 public void deleteStart()
98 this._has_start= false;
99 } //-- void deleteStart()
102 * Note: hashCode() has not been overriden
107 public boolean equals(java.lang.Object obj)
112 if (super.equals(obj)==false)
115 if (obj instanceof SequenceType) {
117 SequenceType temp = (SequenceType)obj;
118 if (this._start != temp._start)
120 if (this._has_start != temp._has_start)
122 if (this._end != temp._end)
124 if (this._has_end != temp._has_end)
126 if (this._sequence != null) {
127 if (temp._sequence == null) return false;
128 else if (!(this._sequence.equals(temp._sequence)))
131 else if (temp._sequence != null)
133 if (this._name != null) {
134 if (temp._name == null) return false;
135 else if (!(this._name.equals(temp._name)))
138 else if (temp._name != null)
143 } //-- boolean equals(java.lang.Object)
146 * Returns the value of field 'end'.
149 * @return the value of field 'end'.
157 * Returns the value of field 'name'.
160 * @return the value of field 'name'.
162 public java.lang.String getName()
165 } //-- java.lang.String getName()
168 * Returns the value of field 'sequence'.
171 * @return the value of field 'sequence'.
173 public java.lang.String getSequence()
175 return this._sequence;
176 } //-- java.lang.String getSequence()
179 * Returns the value of field 'start'.
182 * @return the value of field 'start'.
184 public int getStart()
187 } //-- int getStart()
196 public boolean hasEnd()
198 return this._has_end;
199 } //-- boolean hasEnd()
208 public boolean hasStart()
210 return this._has_start;
211 } //-- boolean hasStart()
220 public boolean isValid()
225 catch (org.exolab.castor.xml.ValidationException vex) {
229 } //-- boolean isValid()
238 public void marshal(java.io.Writer out)
239 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
242 Marshaller.marshal(this, out);
243 } //-- void marshal(java.io.Writer)
252 public void marshal(org.xml.sax.ContentHandler handler)
253 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
256 Marshaller.marshal(this, handler);
257 } //-- void marshal(org.xml.sax.ContentHandler)
260 * Sets the value of field 'end'.
262 * @param end the value of field 'end'.
264 public void setEnd(int end)
267 this._has_end = true;
268 } //-- void setEnd(int)
271 * Sets the value of field 'name'.
273 * @param name the value of field 'name'.
275 public void setName(java.lang.String name)
278 } //-- void setName(java.lang.String)
281 * Sets the value of field 'sequence'.
283 * @param sequence the value of field 'sequence'.
285 public void setSequence(java.lang.String sequence)
287 this._sequence = sequence;
288 } //-- void setSequence(java.lang.String)
291 * Sets the value of field 'start'.
293 * @param start the value of field 'start'.
295 public void setStart(int start)
298 this._has_start = true;
299 } //-- void setStart(int)
307 * @return SequenceType
309 public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)
310 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
312 return (org.vamsas.objects.core.SequenceType) Unmarshaller.unmarshal(org.vamsas.objects.core.SequenceType.class, reader);
313 } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader)
319 public void validate()
320 throws org.exolab.castor.xml.ValidationException
322 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
323 validator.validate(this);
324 } //-- void validate()