2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
27 package jalview.binding;
\r
29 //---------------------------------/
\r
30 //- Imported classes and packages -/
\r
31 //---------------------------------/
\r
33 import java.io.IOException;
\r
34 import java.io.Reader;
\r
35 import java.io.Serializable;
\r
36 import java.io.Writer;
\r
37 import org.exolab.castor.xml.MarshalException;
\r
38 import org.exolab.castor.xml.Marshaller;
\r
39 import org.exolab.castor.xml.Unmarshaller;
\r
40 import org.exolab.castor.xml.ValidationException;
\r
41 import org.xml.sax.ContentHandler;
\r
46 * @version $Revision$ $Date$
\r
48 public class JSeq implements java.io.Serializable {
\r
51 //--------------------------/
\r
52 //- Class/Member Variables -/
\r
53 //--------------------------/
\r
58 private int _colour;
\r
61 * keeps track of state for field: _colour
\r
63 private boolean _has_colour;
\r
71 * keeps track of state for field: _start
\r
73 private boolean _has_start;
\r
81 * keeps track of state for field: _end
\r
83 private boolean _has_end;
\r
91 * keeps track of state for field: _id
\r
93 private boolean _has_id;
\r
102 } //-- jalview.binding.JSeq()
\r
110 * Method deleteColour
\r
113 public void deleteColour()
\r
115 this._has_colour= false;
\r
116 } //-- void deleteColour()
\r
122 public void deleteEnd()
\r
124 this._has_end= false;
\r
125 } //-- void deleteEnd()
\r
131 public void deleteId()
\r
133 this._has_id= false;
\r
134 } //-- void deleteId()
\r
137 * Method deleteStart
\r
140 public void deleteStart()
\r
142 this._has_start= false;
\r
143 } //-- void deleteStart()
\r
146 * Returns the value of field 'colour'.
\r
149 * @return the value of field 'colour'.
\r
151 public int getColour()
\r
153 return this._colour;
\r
154 } //-- int getColour()
\r
157 * Returns the value of field 'end'.
\r
160 * @return the value of field 'end'.
\r
162 public int getEnd()
\r
165 } //-- int getEnd()
\r
168 * Returns the value of field 'id'.
\r
171 * @return the value of field 'id'.
\r
179 * Returns the value of field 'start'.
\r
182 * @return the value of field 'start'.
\r
184 public int getStart()
\r
186 return this._start;
\r
187 } //-- int getStart()
\r
196 public boolean hasColour()
\r
198 return this._has_colour;
\r
199 } //-- boolean hasColour()
\r
208 public boolean hasEnd()
\r
210 return this._has_end;
\r
211 } //-- boolean hasEnd()
\r
220 public boolean hasId()
\r
222 return this._has_id;
\r
223 } //-- boolean hasId()
\r
232 public boolean hasStart()
\r
234 return this._has_start;
\r
235 } //-- boolean hasStart()
\r
244 public boolean isValid()
\r
249 catch (org.exolab.castor.xml.ValidationException vex) {
\r
253 } //-- boolean isValid()
\r
262 public void marshal(java.io.Writer out)
\r
263 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
266 Marshaller.marshal(this, out);
\r
267 } //-- void marshal(java.io.Writer)
\r
276 public void marshal(org.xml.sax.ContentHandler handler)
\r
277 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
280 Marshaller.marshal(this, handler);
\r
281 } //-- void marshal(org.xml.sax.ContentHandler)
\r
284 * Sets the value of field 'colour'.
\r
286 * @param colour the value of field 'colour'.
\r
288 public void setColour(int colour)
\r
290 this._colour = colour;
\r
291 this._has_colour = true;
\r
292 } //-- void setColour(int)
\r
295 * Sets the value of field 'end'.
\r
297 * @param end the value of field 'end'.
\r
299 public void setEnd(int end)
\r
302 this._has_end = true;
\r
303 } //-- void setEnd(int)
\r
306 * Sets the value of field 'id'.
\r
308 * @param id the value of field 'id'.
\r
310 public void setId(int id)
\r
313 this._has_id = true;
\r
314 } //-- void setId(int)
\r
317 * Sets the value of field 'start'.
\r
319 * @param start the value of field 'start'.
\r
321 public void setStart(int start)
\r
323 this._start = start;
\r
324 this._has_start = true;
\r
325 } //-- void setStart(int)
\r
335 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
336 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
338 return (jalview.binding.JSeq) Unmarshaller.unmarshal(jalview.binding.JSeq.class, reader);
\r
339 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
345 public void validate()
\r
346 throws org.exolab.castor.xml.ValidationException
\r
348 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
349 validator.validate(this);
\r
350 } //-- void validate()
\r