2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
7 package jalview.binding;
\r
9 import org.exolab.castor.xml.MarshalException;
\r
10 import org.exolab.castor.xml.Marshaller;
\r
11 import org.exolab.castor.xml.Unmarshaller;
\r
12 import org.exolab.castor.xml.ValidationException;
\r
14 import org.xml.sax.ContentHandler;
\r
16 //---------------------------------/
\r
17 //- Imported classes and packages -/
\r
18 //---------------------------------/
\r
19 import java.io.IOException;
\r
20 import java.io.Reader;
\r
21 import java.io.Serializable;
\r
22 import java.io.Writer;
\r
28 * @version $Revision$ $Date$
\r
30 public class JSeq implements java.io.Serializable
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private int _colour;
\r
42 * keeps track of state for field: _colour
\r
44 private boolean _has_colour;
\r
52 * keeps track of state for field: _start
\r
54 private boolean _has_start;
\r
62 * keeps track of state for field: _end
\r
64 private boolean _has_end;
\r
72 * keeps track of state for field: _id
\r
74 private boolean _has_id;
\r
84 //-- jalview.binding.JSeq()
\r
90 public void deleteColour()
\r
92 this._has_colour = false;
\r
95 //-- void deleteColour()
\r
101 public void deleteEnd()
\r
103 this._has_end = false;
\r
106 //-- void deleteEnd()
\r
112 public void deleteId()
\r
114 this._has_id = false;
\r
117 //-- void deleteId()
\r
120 * Method deleteStart
\r
123 public void deleteStart()
\r
125 this._has_start = false;
\r
128 //-- void deleteStart()
\r
131 * Returns the value of field 'colour'.
\r
134 * @return the value of field 'colour'.
\r
136 public int getColour()
\r
138 return this._colour;
\r
141 //-- int getColour()
\r
144 * Returns the value of field 'end'.
\r
147 * @return the value of field 'end'.
\r
149 public int getEnd()
\r
157 * Returns the value of field 'id'.
\r
160 * @return the value of field 'id'.
\r
170 * Returns the value of field 'start'.
\r
173 * @return the value of field 'start'.
\r
175 public int getStart()
\r
177 return this._start;
\r
180 //-- int getStart()
\r
189 public boolean hasColour()
\r
191 return this._has_colour;
\r
194 //-- boolean hasColour()
\r
203 public boolean hasEnd()
\r
205 return this._has_end;
\r
208 //-- boolean hasEnd()
\r
217 public boolean hasId()
\r
219 return this._has_id;
\r
222 //-- boolean hasId()
\r
231 public boolean hasStart()
\r
233 return this._has_start;
\r
236 //-- boolean hasStart()
\r
245 public boolean isValid()
\r
251 catch (org.exolab.castor.xml.ValidationException vex)
\r
259 //-- boolean isValid()
\r
268 public void marshal(java.io.Writer out)
\r
269 throws org.exolab.castor.xml.MarshalException,
\r
270 org.exolab.castor.xml.ValidationException
\r
272 Marshaller.marshal(this, out);
\r
275 //-- void marshal(java.io.Writer)
\r
284 public void marshal(org.xml.sax.ContentHandler handler)
\r
285 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
286 org.exolab.castor.xml.ValidationException
\r
288 Marshaller.marshal(this, handler);
\r
291 //-- void marshal(org.xml.sax.ContentHandler)
\r
294 * Sets the value of field 'colour'.
\r
296 * @param colour the value of field 'colour'.
\r
298 public void setColour(int colour)
\r
300 this._colour = colour;
\r
301 this._has_colour = true;
\r
304 //-- void setColour(int)
\r
307 * Sets the value of field 'end'.
\r
309 * @param end the value of field 'end'.
\r
311 public void setEnd(int end)
\r
314 this._has_end = true;
\r
317 //-- void setEnd(int)
\r
320 * Sets the value of field 'id'.
\r
322 * @param id the value of field 'id'.
\r
324 public void setId(int id)
\r
327 this._has_id = true;
\r
330 //-- void setId(int)
\r
333 * Sets the value of field 'start'.
\r
335 * @param start the value of field 'start'.
\r
337 public void setStart(int start)
\r
339 this._start = start;
\r
340 this._has_start = true;
\r
343 //-- void setStart(int)
\r
353 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
354 throws org.exolab.castor.xml.MarshalException,
\r
355 org.exolab.castor.xml.ValidationException
\r
357 return (jalview.binding.JSeq) Unmarshaller.unmarshal(jalview.binding.JSeq.class,
\r
361 //-- java.lang.Object unmarshal(java.io.Reader)
\r
367 public void validate() throws org.exolab.castor.xml.ValidationException
\r
369 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
370 validator.validate(this);
\r
373 //-- void validate()
\r