2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class Setting implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _type;
\r
37 private int _colour;
\r
40 * keeps track of state for field: _colour
\r
42 private boolean _has_colour;
\r
47 private boolean _display;
\r
50 * keeps track of state for field: _display
\r
52 private boolean _has_display;
\r
57 private float _order;
\r
60 * keeps track of state for field: _order
\r
62 private boolean _has_order;
\r
65 * Optional minimum colour for graduated feature colour
\r
67 private int _mincolour;
\r
70 * keeps track of state for field: _mincolour
\r
72 private boolean _has_mincolour;
\r
75 * threshold value for graduated feature colour
\r
77 private float _threshold;
\r
80 * keeps track of state for field: _threshold
\r
82 private boolean _has_threshold;
\r
85 * threshold type for graduated feature colour
\r
87 private int _threshstate;
\r
90 * keeps track of state for field: _threshstate
\r
92 private boolean _has_threshstate;
\r
110 public void deleteColour(
\r
112 this._has_colour= false;
\r
117 public void deleteDisplay(
\r
119 this._has_display= false;
\r
124 public void deleteMincolour(
\r
126 this._has_mincolour= false;
\r
131 public void deleteOrder(
\r
133 this._has_order= false;
\r
138 public void deleteThreshold(
\r
140 this._has_threshold= false;
\r
145 public void deleteThreshstate(
\r
147 this._has_threshstate= false;
\r
151 * Returns the value of field 'colour'.
\r
153 * @return the value of field 'Colour'.
\r
155 public int getColour(
\r
157 return this._colour;
\r
161 * Returns the value of field 'display'.
\r
163 * @return the value of field 'Display'.
\r
165 public boolean getDisplay(
\r
167 return this._display;
\r
171 * Returns the value of field 'mincolour'. The field
\r
172 * 'mincolour' has the following description: Optional minimum
\r
173 * colour for graduated feature colour
\r
175 * @return the value of field 'Mincolour'.
\r
177 public int getMincolour(
\r
179 return this._mincolour;
\r
183 * Returns the value of field 'order'.
\r
185 * @return the value of field 'Order'.
\r
187 public float getOrder(
\r
189 return this._order;
\r
193 * Returns the value of field 'threshold'. The field
\r
194 * 'threshold' has the following description: threshold value
\r
195 * for graduated feature colour
\r
197 * @return the value of field 'Threshold'.
\r
199 public float getThreshold(
\r
201 return this._threshold;
\r
205 * Returns the value of field 'threshstate'. The field
\r
206 * 'threshstate' has the following description: threshold type
\r
207 * for graduated feature colour
\r
209 * @return the value of field 'Threshstate'.
\r
211 public int getThreshstate(
\r
213 return this._threshstate;
\r
217 * Returns the value of field 'type'.
\r
219 * @return the value of field 'Type'.
\r
221 public java.lang.String getType(
\r
227 * Method hasColour.
\r
229 * @return true if at least one Colour has been added
\r
231 public boolean hasColour(
\r
233 return this._has_colour;
\r
237 * Method hasDisplay.
\r
239 * @return true if at least one Display has been added
\r
241 public boolean hasDisplay(
\r
243 return this._has_display;
\r
247 * Method hasMincolour.
\r
249 * @return true if at least one Mincolour has been added
\r
251 public boolean hasMincolour(
\r
253 return this._has_mincolour;
\r
259 * @return true if at least one Order has been added
\r
261 public boolean hasOrder(
\r
263 return this._has_order;
\r
267 * Method hasThreshold.
\r
269 * @return true if at least one Threshold has been added
\r
271 public boolean hasThreshold(
\r
273 return this._has_threshold;
\r
277 * Method hasThreshstate.
\r
279 * @return true if at least one Threshstate has been added
\r
281 public boolean hasThreshstate(
\r
283 return this._has_threshstate;
\r
287 * Returns the value of field 'display'.
\r
289 * @return the value of field 'Display'.
\r
291 public boolean isDisplay(
\r
293 return this._display;
\r
299 * @return true if this object is valid according to the schema
\r
301 public boolean isValid(
\r
305 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
315 * @throws org.exolab.castor.xml.MarshalException if object is
\r
316 * null or if any SAXException is thrown during marshaling
\r
317 * @throws org.exolab.castor.xml.ValidationException if this
\r
318 * object is an invalid instance according to the schema
\r
320 public void marshal(
\r
321 final java.io.Writer out)
\r
322 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
323 Marshaller.marshal(this, out);
\r
330 * @throws java.io.IOException if an IOException occurs during
\r
332 * @throws org.exolab.castor.xml.ValidationException if this
\r
333 * object is an invalid instance according to the schema
\r
334 * @throws org.exolab.castor.xml.MarshalException if object is
\r
335 * null or if any SAXException is thrown during marshaling
\r
337 public void marshal(
\r
338 final org.xml.sax.ContentHandler handler)
\r
339 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
340 Marshaller.marshal(this, handler);
\r
344 * Sets the value of field 'colour'.
\r
346 * @param colour the value of field 'colour'.
\r
348 public void setColour(
\r
349 final int colour) {
\r
350 this._colour = colour;
\r
351 this._has_colour = true;
\r
355 * Sets the value of field 'display'.
\r
357 * @param display the value of field 'display'.
\r
359 public void setDisplay(
\r
360 final boolean display) {
\r
361 this._display = display;
\r
362 this._has_display = true;
\r
366 * Sets the value of field 'mincolour'. The field 'mincolour'
\r
367 * has the following description: Optional minimum colour for
\r
368 * graduated feature colour
\r
370 * @param mincolour the value of field 'mincolour'.
\r
372 public void setMincolour(
\r
373 final int mincolour) {
\r
374 this._mincolour = mincolour;
\r
375 this._has_mincolour = true;
\r
379 * Sets the value of field 'order'.
\r
381 * @param order the value of field 'order'.
\r
383 public void setOrder(
\r
384 final float order) {
\r
385 this._order = order;
\r
386 this._has_order = true;
\r
390 * Sets the value of field 'threshold'. The field 'threshold'
\r
391 * has the following description: threshold value for graduated
\r
394 * @param threshold the value of field 'threshold'.
\r
396 public void setThreshold(
\r
397 final float threshold) {
\r
398 this._threshold = threshold;
\r
399 this._has_threshold = true;
\r
403 * Sets the value of field 'threshstate'. The field
\r
404 * 'threshstate' has the following description: threshold type
\r
405 * for graduated feature colour
\r
407 * @param threshstate the value of field 'threshstate'.
\r
409 public void setThreshstate(
\r
410 final int threshstate) {
\r
411 this._threshstate = threshstate;
\r
412 this._has_threshstate = true;
\r
416 * Sets the value of field 'type'.
\r
418 * @param type the value of field 'type'.
\r
420 public void setType(
\r
421 final java.lang.String type) {
\r
426 * Method unmarshal.
\r
429 * @throws org.exolab.castor.xml.MarshalException if object is
\r
430 * null or if any SAXException is thrown during marshaling
\r
431 * @throws org.exolab.castor.xml.ValidationException if this
\r
432 * object is an invalid instance according to the schema
\r
433 * @return the unmarshaled jalview.schemabinding.version2.Settin
\r
435 public static jalview.schemabinding.version2.Setting unmarshal(
\r
436 final java.io.Reader reader)
\r
437 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
438 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
\r
444 * @throws org.exolab.castor.xml.ValidationException if this
\r
445 * object is an invalid instance according to the schema
\r
447 public void validate(
\r
449 throws org.exolab.castor.xml.ValidationException {
\r
450 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
451 validator.validate(this);
\r