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