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