751409f0b161223878e176c9ab5f6389894670bc
[jalview.git] / src / jalview / binding / JSeq.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.binding;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \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
23 \r
24 /**\r
25  * Class JSeq.\r
26  * \r
27  * @version $Revision$ $Date$\r
28  */\r
29 public class JSeq implements java.io.Serializable {\r
30 \r
31 \r
32       //--------------------------/\r
33      //- Class/Member Variables -/\r
34     //--------------------------/\r
35 \r
36     /**\r
37      * Field _colour\r
38      */\r
39     private int _colour;\r
40 \r
41     /**\r
42      * keeps track of state for field: _colour\r
43      */\r
44     private boolean _has_colour;\r
45 \r
46     /**\r
47      * Field _start\r
48      */\r
49     private int _start;\r
50 \r
51     /**\r
52      * keeps track of state for field: _start\r
53      */\r
54     private boolean _has_start;\r
55 \r
56     /**\r
57      * Field _end\r
58      */\r
59     private int _end;\r
60 \r
61     /**\r
62      * keeps track of state for field: _end\r
63      */\r
64     private boolean _has_end;\r
65 \r
66     /**\r
67      * Field _id\r
68      */\r
69     private int _id;\r
70 \r
71     /**\r
72      * keeps track of state for field: _id\r
73      */\r
74     private boolean _has_id;\r
75 \r
76 \r
77       //----------------/\r
78      //- Constructors -/\r
79     //----------------/\r
80 \r
81     public JSeq() {\r
82         super();\r
83     } //-- jalview.binding.JSeq()\r
84 \r
85 \r
86       //-----------/\r
87      //- Methods -/\r
88     //-----------/\r
89 \r
90     /**\r
91      * Method deleteColour\r
92      * \r
93      */\r
94     public void deleteColour()\r
95     {\r
96         this._has_colour= false;\r
97     } //-- void deleteColour() \r
98 \r
99     /**\r
100      * Method deleteEnd\r
101      * \r
102      */\r
103     public void deleteEnd()\r
104     {\r
105         this._has_end= false;\r
106     } //-- void deleteEnd() \r
107 \r
108     /**\r
109      * Method deleteId\r
110      * \r
111      */\r
112     public void deleteId()\r
113     {\r
114         this._has_id= false;\r
115     } //-- void deleteId() \r
116 \r
117     /**\r
118      * Method deleteStart\r
119      * \r
120      */\r
121     public void deleteStart()\r
122     {\r
123         this._has_start= false;\r
124     } //-- void deleteStart() \r
125 \r
126     /**\r
127      * Returns the value of field 'colour'.\r
128      * \r
129      * @return int\r
130      * @return the value of field 'colour'.\r
131      */\r
132     public int getColour()\r
133     {\r
134         return this._colour;\r
135     } //-- int getColour() \r
136 \r
137     /**\r
138      * Returns the value of field 'end'.\r
139      * \r
140      * @return int\r
141      * @return the value of field 'end'.\r
142      */\r
143     public int getEnd()\r
144     {\r
145         return this._end;\r
146     } //-- int getEnd() \r
147 \r
148     /**\r
149      * Returns the value of field 'id'.\r
150      * \r
151      * @return int\r
152      * @return the value of field 'id'.\r
153      */\r
154     public int getId()\r
155     {\r
156         return this._id;\r
157     } //-- int getId() \r
158 \r
159     /**\r
160      * Returns the value of field 'start'.\r
161      * \r
162      * @return int\r
163      * @return the value of field 'start'.\r
164      */\r
165     public int getStart()\r
166     {\r
167         return this._start;\r
168     } //-- int getStart() \r
169 \r
170     /**\r
171      * Method hasColour\r
172      * \r
173      * \r
174      * \r
175      * @return boolean\r
176      */\r
177     public boolean hasColour()\r
178     {\r
179         return this._has_colour;\r
180     } //-- boolean hasColour() \r
181 \r
182     /**\r
183      * Method hasEnd\r
184      * \r
185      * \r
186      * \r
187      * @return boolean\r
188      */\r
189     public boolean hasEnd()\r
190     {\r
191         return this._has_end;\r
192     } //-- boolean hasEnd() \r
193 \r
194     /**\r
195      * Method hasId\r
196      * \r
197      * \r
198      * \r
199      * @return boolean\r
200      */\r
201     public boolean hasId()\r
202     {\r
203         return this._has_id;\r
204     } //-- boolean hasId() \r
205 \r
206     /**\r
207      * Method hasStart\r
208      * \r
209      * \r
210      * \r
211      * @return boolean\r
212      */\r
213     public boolean hasStart()\r
214     {\r
215         return this._has_start;\r
216     } //-- boolean hasStart() \r
217 \r
218     /**\r
219      * Method isValid\r
220      * \r
221      * \r
222      * \r
223      * @return boolean\r
224      */\r
225     public boolean isValid()\r
226     {\r
227         try {\r
228             validate();\r
229         }\r
230         catch (org.exolab.castor.xml.ValidationException vex) {\r
231             return false;\r
232         }\r
233         return true;\r
234     } //-- boolean isValid() \r
235 \r
236     /**\r
237      * Method marshal\r
238      * \r
239      * \r
240      * \r
241      * @param out\r
242      */\r
243     public void marshal(java.io.Writer out)\r
244         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
245     {\r
246         \r
247         Marshaller.marshal(this, out);\r
248     } //-- void marshal(java.io.Writer) \r
249 \r
250     /**\r
251      * Method marshal\r
252      * \r
253      * \r
254      * \r
255      * @param handler\r
256      */\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
259     {\r
260         \r
261         Marshaller.marshal(this, handler);\r
262     } //-- void marshal(org.xml.sax.ContentHandler) \r
263 \r
264     /**\r
265      * Sets the value of field 'colour'.\r
266      * \r
267      * @param colour the value of field 'colour'.\r
268      */\r
269     public void setColour(int colour)\r
270     {\r
271         this._colour = colour;\r
272         this._has_colour = true;\r
273     } //-- void setColour(int) \r
274 \r
275     /**\r
276      * Sets the value of field 'end'.\r
277      * \r
278      * @param end the value of field 'end'.\r
279      */\r
280     public void setEnd(int end)\r
281     {\r
282         this._end = end;\r
283         this._has_end = true;\r
284     } //-- void setEnd(int) \r
285 \r
286     /**\r
287      * Sets the value of field 'id'.\r
288      * \r
289      * @param id the value of field 'id'.\r
290      */\r
291     public void setId(int id)\r
292     {\r
293         this._id = id;\r
294         this._has_id = true;\r
295     } //-- void setId(int) \r
296 \r
297     /**\r
298      * Sets the value of field 'start'.\r
299      * \r
300      * @param start the value of field 'start'.\r
301      */\r
302     public void setStart(int start)\r
303     {\r
304         this._start = start;\r
305         this._has_start = true;\r
306     } //-- void setStart(int) \r
307 \r
308     /**\r
309      * Method unmarshal\r
310      * \r
311      * \r
312      * \r
313      * @param reader\r
314      * @return Object\r
315      */\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
318     {\r
319         return (jalview.binding.JSeq) Unmarshaller.unmarshal(jalview.binding.JSeq.class, reader);\r
320     } //-- java.lang.Object unmarshal(java.io.Reader) \r
321 \r
322     /**\r
323      * Method validate\r
324      * \r
325      */\r
326     public void validate()\r
327         throws org.exolab.castor.xml.ValidationException\r
328     {\r
329         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
330         validator.validate(this);\r
331     } //-- void validate() \r
332 \r
333 }\r