2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
27 * @version $Revision$ $Date$
\r
29 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
83 } //-- jalview.binding.JSeq()
\r
91 * Method deleteColour
\r
94 public void deleteColour()
\r
96 this._has_colour= false;
\r
97 } //-- void deleteColour()
\r
103 public void deleteEnd()
\r
105 this._has_end= false;
\r
106 } //-- void deleteEnd()
\r
112 public void deleteId()
\r
114 this._has_id= false;
\r
115 } //-- void deleteId()
\r
118 * Method deleteStart
\r
121 public void deleteStart()
\r
123 this._has_start= false;
\r
124 } //-- void deleteStart()
\r
127 * Returns the value of field 'colour'.
\r
130 * @return the value of field 'colour'.
\r
132 public int getColour()
\r
134 return this._colour;
\r
135 } //-- int getColour()
\r
138 * Returns the value of field 'end'.
\r
141 * @return the value of field 'end'.
\r
143 public int getEnd()
\r
146 } //-- int getEnd()
\r
149 * Returns the value of field 'id'.
\r
152 * @return the value of field 'id'.
\r
157 } //-- int getId()
\r
160 * Returns the value of field 'start'.
\r
163 * @return the value of field 'start'.
\r
165 public int getStart()
\r
167 return this._start;
\r
168 } //-- int getStart()
\r
177 public boolean hasColour()
\r
179 return this._has_colour;
\r
180 } //-- boolean hasColour()
\r
189 public boolean hasEnd()
\r
191 return this._has_end;
\r
192 } //-- boolean hasEnd()
\r
201 public boolean hasId()
\r
203 return this._has_id;
\r
204 } //-- boolean hasId()
\r
213 public boolean hasStart()
\r
215 return this._has_start;
\r
216 } //-- boolean hasStart()
\r
225 public boolean isValid()
\r
230 catch (org.exolab.castor.xml.ValidationException vex) {
\r
234 } //-- boolean isValid()
\r
243 public void marshal(java.io.Writer out)
\r
244 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
247 Marshaller.marshal(this, out);
\r
248 } //-- void marshal(java.io.Writer)
\r
257 public void marshal(org.xml.sax.ContentHandler handler)
\r
258 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
261 Marshaller.marshal(this, handler);
\r
262 } //-- void marshal(org.xml.sax.ContentHandler)
\r
265 * Sets the value of field 'colour'.
\r
267 * @param colour the value of field 'colour'.
\r
269 public void setColour(int colour)
\r
271 this._colour = colour;
\r
272 this._has_colour = true;
\r
273 } //-- void setColour(int)
\r
276 * Sets the value of field 'end'.
\r
278 * @param end the value of field 'end'.
\r
280 public void setEnd(int end)
\r
283 this._has_end = true;
\r
284 } //-- void setEnd(int)
\r
287 * Sets the value of field 'id'.
\r
289 * @param id the value of field 'id'.
\r
291 public void setId(int id)
\r
294 this._has_id = true;
\r
295 } //-- void setId(int)
\r
298 * Sets the value of field 'start'.
\r
300 * @param start the value of field 'start'.
\r
302 public void setStart(int start)
\r
304 this._start = start;
\r
305 this._has_start = true;
\r
306 } //-- void setStart(int)
\r
316 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
317 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
319 return (jalview.binding.JSeq) Unmarshaller.unmarshal(jalview.binding.JSeq.class, reader);
\r
320 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
326 public void validate()
\r
327 throws org.exolab.castor.xml.ValidationException
\r
329 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
330 validator.validate(this);
\r
331 } //-- void validate()
\r