AlignmentAnnotation: added annotation score attribute and allowed for annotation...
[jalview.git] / src / jalview / schemabinding / version2 / StructureState.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
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;
23
24 /**
25  * Class StructureState.
26  * 
27  * @version $Revision$ $Date$
28  */
29 public class StructureState implements java.io.Serializable {
30
31
32       //--------------------------/
33      //- Class/Member Variables -/
34     //--------------------------/
35
36     /**
37      * internal content storage
38      */
39     private java.lang.String _content = "";
40
41     /**
42      * Field _visible
43      */
44     private boolean _visible;
45
46     /**
47      * keeps track of state for field: _visible
48      */
49     private boolean _has_visible;
50
51     /**
52      * Field _xpos
53      */
54     private int _xpos;
55
56     /**
57      * keeps track of state for field: _xpos
58      */
59     private boolean _has_xpos;
60
61     /**
62      * Field _ypos
63      */
64     private int _ypos;
65
66     /**
67      * keeps track of state for field: _ypos
68      */
69     private boolean _has_ypos;
70
71     /**
72      * Field _width
73      */
74     private int _width;
75
76     /**
77      * keeps track of state for field: _width
78      */
79     private boolean _has_width;
80
81     /**
82      * Field _height
83      */
84     private int _height;
85
86     /**
87      * keeps track of state for field: _height
88      */
89     private boolean _has_height;
90
91
92       //----------------/
93      //- Constructors -/
94     //----------------/
95
96     public StructureState() {
97         super();
98         setContent("");
99     } //-- jalview.schemabinding.version2.StructureState()
100
101
102       //-----------/
103      //- Methods -/
104     //-----------/
105
106     /**
107      * Method deleteHeight
108      * 
109      */
110     public void deleteHeight()
111     {
112         this._has_height= false;
113     } //-- void deleteHeight() 
114
115     /**
116      * Method deleteVisible
117      * 
118      */
119     public void deleteVisible()
120     {
121         this._has_visible= false;
122     } //-- void deleteVisible() 
123
124     /**
125      * Method deleteWidth
126      * 
127      */
128     public void deleteWidth()
129     {
130         this._has_width= false;
131     } //-- void deleteWidth() 
132
133     /**
134      * Method deleteXpos
135      * 
136      */
137     public void deleteXpos()
138     {
139         this._has_xpos= false;
140     } //-- void deleteXpos() 
141
142     /**
143      * Method deleteYpos
144      * 
145      */
146     public void deleteYpos()
147     {
148         this._has_ypos= false;
149     } //-- void deleteYpos() 
150
151     /**
152      * Returns the value of field 'content'. The field 'content'
153      * has the following description: internal content storage
154      * 
155      * @return String
156      * @return the value of field 'content'.
157      */
158     public java.lang.String getContent()
159     {
160         return this._content;
161     } //-- java.lang.String getContent() 
162
163     /**
164      * Returns the value of field 'height'.
165      * 
166      * @return int
167      * @return the value of field 'height'.
168      */
169     public int getHeight()
170     {
171         return this._height;
172     } //-- int getHeight() 
173
174     /**
175      * Returns the value of field 'visible'.
176      * 
177      * @return boolean
178      * @return the value of field 'visible'.
179      */
180     public boolean getVisible()
181     {
182         return this._visible;
183     } //-- boolean getVisible() 
184
185     /**
186      * Returns the value of field 'width'.
187      * 
188      * @return int
189      * @return the value of field 'width'.
190      */
191     public int getWidth()
192     {
193         return this._width;
194     } //-- int getWidth() 
195
196     /**
197      * Returns the value of field 'xpos'.
198      * 
199      * @return int
200      * @return the value of field 'xpos'.
201      */
202     public int getXpos()
203     {
204         return this._xpos;
205     } //-- int getXpos() 
206
207     /**
208      * Returns the value of field 'ypos'.
209      * 
210      * @return int
211      * @return the value of field 'ypos'.
212      */
213     public int getYpos()
214     {
215         return this._ypos;
216     } //-- int getYpos() 
217
218     /**
219      * Method hasHeight
220      * 
221      * 
222      * 
223      * @return boolean
224      */
225     public boolean hasHeight()
226     {
227         return this._has_height;
228     } //-- boolean hasHeight() 
229
230     /**
231      * Method hasVisible
232      * 
233      * 
234      * 
235      * @return boolean
236      */
237     public boolean hasVisible()
238     {
239         return this._has_visible;
240     } //-- boolean hasVisible() 
241
242     /**
243      * Method hasWidth
244      * 
245      * 
246      * 
247      * @return boolean
248      */
249     public boolean hasWidth()
250     {
251         return this._has_width;
252     } //-- boolean hasWidth() 
253
254     /**
255      * Method hasXpos
256      * 
257      * 
258      * 
259      * @return boolean
260      */
261     public boolean hasXpos()
262     {
263         return this._has_xpos;
264     } //-- boolean hasXpos() 
265
266     /**
267      * Method hasYpos
268      * 
269      * 
270      * 
271      * @return boolean
272      */
273     public boolean hasYpos()
274     {
275         return this._has_ypos;
276     } //-- boolean hasYpos() 
277
278     /**
279      * Method isValid
280      * 
281      * 
282      * 
283      * @return boolean
284      */
285     public boolean isValid()
286     {
287         try {
288             validate();
289         }
290         catch (org.exolab.castor.xml.ValidationException vex) {
291             return false;
292         }
293         return true;
294     } //-- boolean isValid() 
295
296     /**
297      * Method marshal
298      * 
299      * 
300      * 
301      * @param out
302      */
303     public void marshal(java.io.Writer out)
304         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
305     {
306         
307         Marshaller.marshal(this, out);
308     } //-- void marshal(java.io.Writer) 
309
310     /**
311      * Method marshal
312      * 
313      * 
314      * 
315      * @param handler
316      */
317     public void marshal(org.xml.sax.ContentHandler handler)
318         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
319     {
320         
321         Marshaller.marshal(this, handler);
322     } //-- void marshal(org.xml.sax.ContentHandler) 
323
324     /**
325      * Sets the value of field 'content'. The field 'content' has
326      * the following description: internal content storage
327      * 
328      * @param content the value of field 'content'.
329      */
330     public void setContent(java.lang.String content)
331     {
332         this._content = content;
333     } //-- void setContent(java.lang.String) 
334
335     /**
336      * Sets the value of field 'height'.
337      * 
338      * @param height the value of field 'height'.
339      */
340     public void setHeight(int height)
341     {
342         this._height = height;
343         this._has_height = true;
344     } //-- void setHeight(int) 
345
346     /**
347      * Sets the value of field 'visible'.
348      * 
349      * @param visible the value of field 'visible'.
350      */
351     public void setVisible(boolean visible)
352     {
353         this._visible = visible;
354         this._has_visible = true;
355     } //-- void setVisible(boolean) 
356
357     /**
358      * Sets the value of field 'width'.
359      * 
360      * @param width the value of field 'width'.
361      */
362     public void setWidth(int width)
363     {
364         this._width = width;
365         this._has_width = true;
366     } //-- void setWidth(int) 
367
368     /**
369      * Sets the value of field 'xpos'.
370      * 
371      * @param xpos the value of field 'xpos'.
372      */
373     public void setXpos(int xpos)
374     {
375         this._xpos = xpos;
376         this._has_xpos = true;
377     } //-- void setXpos(int) 
378
379     /**
380      * Sets the value of field 'ypos'.
381      * 
382      * @param ypos the value of field 'ypos'.
383      */
384     public void setYpos(int ypos)
385     {
386         this._ypos = ypos;
387         this._has_ypos = true;
388     } //-- void setYpos(int) 
389
390     /**
391      * Method unmarshal
392      * 
393      * 
394      * 
395      * @param reader
396      * @return Object
397      */
398     public static java.lang.Object unmarshal(java.io.Reader reader)
399         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
400     {
401         return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
402     } //-- java.lang.Object unmarshal(java.io.Reader) 
403
404     /**
405      * Method validate
406      * 
407      */
408     public void validate()
409         throws org.exolab.castor.xml.ValidationException
410     {
411         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
412         validator.validate(this);
413     } //-- void validate() 
414
415 }