jalview XML schema update for 2.4.1 (or 2.5?) introducing IDs for views and treepanel...
[jalview.git] / src / jalview / schemabinding / version2 / Setting.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 1.1</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 org.exolab.castor.xml.Marshaller;\r
15 import org.exolab.castor.xml.Unmarshaller;\r
16 \r
17 /**\r
18  * Class Setting.\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class Setting implements java.io.Serializable {\r
23 \r
24 \r
25       //--------------------------/\r
26      //- Class/Member Variables -/\r
27     //--------------------------/\r
28 \r
29     /**\r
30      * Field _type.\r
31      */\r
32     private java.lang.String _type;\r
33 \r
34     /**\r
35      * Field _colour.\r
36      */\r
37     private int _colour;\r
38 \r
39     /**\r
40      * keeps track of state for field: _colour\r
41      */\r
42     private boolean _has_colour;\r
43 \r
44     /**\r
45      * Field _display.\r
46      */\r
47     private boolean _display;\r
48 \r
49     /**\r
50      * keeps track of state for field: _display\r
51      */\r
52     private boolean _has_display;\r
53 \r
54     /**\r
55      * Field _order.\r
56      */\r
57     private float _order;\r
58 \r
59     /**\r
60      * keeps track of state for field: _order\r
61      */\r
62     private boolean _has_order;\r
63 \r
64 \r
65       //----------------/\r
66      //- Constructors -/\r
67     //----------------/\r
68 \r
69     public Setting() {\r
70         super();\r
71     }\r
72 \r
73 \r
74       //-----------/\r
75      //- Methods -/\r
76     //-----------/\r
77 \r
78     /**\r
79      */\r
80     public void deleteColour(\r
81     ) {\r
82         this._has_colour= false;\r
83     }\r
84 \r
85     /**\r
86      */\r
87     public void deleteDisplay(\r
88     ) {\r
89         this._has_display= false;\r
90     }\r
91 \r
92     /**\r
93      */\r
94     public void deleteOrder(\r
95     ) {\r
96         this._has_order= false;\r
97     }\r
98 \r
99     /**\r
100      * Returns the value of field 'colour'.\r
101      * \r
102      * @return the value of field 'Colour'.\r
103      */\r
104     public int getColour(\r
105     ) {\r
106         return this._colour;\r
107     }\r
108 \r
109     /**\r
110      * Returns the value of field 'display'.\r
111      * \r
112      * @return the value of field 'Display'.\r
113      */\r
114     public boolean getDisplay(\r
115     ) {\r
116         return this._display;\r
117     }\r
118 \r
119     /**\r
120      * Returns the value of field 'order'.\r
121      * \r
122      * @return the value of field 'Order'.\r
123      */\r
124     public float getOrder(\r
125     ) {\r
126         return this._order;\r
127     }\r
128 \r
129     /**\r
130      * Returns the value of field 'type'.\r
131      * \r
132      * @return the value of field 'Type'.\r
133      */\r
134     public java.lang.String getType(\r
135     ) {\r
136         return this._type;\r
137     }\r
138 \r
139     /**\r
140      * Method hasColour.\r
141      * \r
142      * @return true if at least one Colour has been added\r
143      */\r
144     public boolean hasColour(\r
145     ) {\r
146         return this._has_colour;\r
147     }\r
148 \r
149     /**\r
150      * Method hasDisplay.\r
151      * \r
152      * @return true if at least one Display has been added\r
153      */\r
154     public boolean hasDisplay(\r
155     ) {\r
156         return this._has_display;\r
157     }\r
158 \r
159     /**\r
160      * Method hasOrder.\r
161      * \r
162      * @return true if at least one Order has been added\r
163      */\r
164     public boolean hasOrder(\r
165     ) {\r
166         return this._has_order;\r
167     }\r
168 \r
169     /**\r
170      * Returns the value of field 'display'.\r
171      * \r
172      * @return the value of field 'Display'.\r
173      */\r
174     public boolean isDisplay(\r
175     ) {\r
176         return this._display;\r
177     }\r
178 \r
179     /**\r
180      * Method isValid.\r
181      * \r
182      * @return true if this object is valid according to the schema\r
183      */\r
184     public boolean isValid(\r
185     ) {\r
186         try {\r
187             validate();\r
188         } catch (org.exolab.castor.xml.ValidationException vex) {\r
189             return false;\r
190         }\r
191         return true;\r
192     }\r
193 \r
194     /**\r
195      * \r
196      * \r
197      * @param out\r
198      * @throws org.exolab.castor.xml.MarshalException if object is\r
199      * null or if any SAXException is thrown during marshaling\r
200      * @throws org.exolab.castor.xml.ValidationException if this\r
201      * object is an invalid instance according to the schema\r
202      */\r
203     public void marshal(\r
204             final java.io.Writer out)\r
205     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
206         Marshaller.marshal(this, out);\r
207     }\r
208 \r
209     /**\r
210      * \r
211      * \r
212      * @param handler\r
213      * @throws java.io.IOException if an IOException occurs during\r
214      * marshaling\r
215      * @throws org.exolab.castor.xml.ValidationException if this\r
216      * object is an invalid instance according to the schema\r
217      * @throws org.exolab.castor.xml.MarshalException if object is\r
218      * null or if any SAXException is thrown during marshaling\r
219      */\r
220     public void marshal(\r
221             final org.xml.sax.ContentHandler handler)\r
222     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
223         Marshaller.marshal(this, handler);\r
224     }\r
225 \r
226     /**\r
227      * Sets the value of field 'colour'.\r
228      * \r
229      * @param colour the value of field 'colour'.\r
230      */\r
231     public void setColour(\r
232             final int colour) {\r
233         this._colour = colour;\r
234         this._has_colour = true;\r
235     }\r
236 \r
237     /**\r
238      * Sets the value of field 'display'.\r
239      * \r
240      * @param display the value of field 'display'.\r
241      */\r
242     public void setDisplay(\r
243             final boolean display) {\r
244         this._display = display;\r
245         this._has_display = true;\r
246     }\r
247 \r
248     /**\r
249      * Sets the value of field 'order'.\r
250      * \r
251      * @param order the value of field 'order'.\r
252      */\r
253     public void setOrder(\r
254             final float order) {\r
255         this._order = order;\r
256         this._has_order = true;\r
257     }\r
258 \r
259     /**\r
260      * Sets the value of field 'type'.\r
261      * \r
262      * @param type the value of field 'type'.\r
263      */\r
264     public void setType(\r
265             final java.lang.String type) {\r
266         this._type = type;\r
267     }\r
268 \r
269     /**\r
270      * Method unmarshal.\r
271      * \r
272      * @param reader\r
273      * @throws org.exolab.castor.xml.MarshalException if object is\r
274      * null or if any SAXException is thrown during marshaling\r
275      * @throws org.exolab.castor.xml.ValidationException if this\r
276      * object is an invalid instance according to the schema\r
277      * @return the unmarshaled jalview.schemabinding.version2.Settin\r
278      */\r
279     public static jalview.schemabinding.version2.Setting unmarshal(\r
280             final java.io.Reader reader)\r
281     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
282         return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);\r
283     }\r
284 \r
285     /**\r
286      * \r
287      * \r
288      * @throws org.exolab.castor.xml.ValidationException if this\r
289      * object is an invalid instance according to the schema\r
290      */\r
291     public void validate(\r
292     )\r
293     throws org.exolab.castor.xml.ValidationException {\r
294         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
295         validator.validate(this);\r
296     }\r
297 \r
298 }\r