2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Setting implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _type;
40 * keeps track of state for field: _colour
42 private boolean _has_colour;
47 private boolean _display;
50 * keeps track of state for field: _display
52 private boolean _has_display;
60 * keeps track of state for field: _order
62 private boolean _has_order;
65 * Optional minimum colour for graduated feature colour
68 private int _mincolour;
71 * keeps track of state for field: _mincolour
73 private boolean _has_mincolour;
76 * threshold value for graduated feature colour
79 private float _threshold;
82 * keeps track of state for field: _threshold
84 private boolean _has_threshold;
87 * threshold type for graduated feature colour
90 private int _threshstate;
93 * keeps track of state for field: _threshstate
95 private boolean _has_threshstate;
103 * keeps track of state for field: _max
105 private boolean _has_max;
113 * keeps track of state for field: _min
115 private boolean _has_min;
118 * Field _colourByLabel.
120 private boolean _colourByLabel;
123 * keeps track of state for field: _colourByLabel
125 private boolean _has_colourByLabel;
130 private boolean _autoScale;
133 * keeps track of state for field: _autoScale
135 private boolean _has_autoScale;
152 public void deleteAutoScale()
154 this._has_autoScale = false;
159 public void deleteColour()
161 this._has_colour = false;
166 public void deleteColourByLabel()
168 this._has_colourByLabel = false;
173 public void deleteDisplay()
175 this._has_display = false;
180 public void deleteMax()
182 this._has_max = false;
187 public void deleteMin()
189 this._has_min = false;
194 public void deleteMincolour()
196 this._has_mincolour = false;
201 public void deleteOrder()
203 this._has_order = false;
208 public void deleteThreshold()
210 this._has_threshold = false;
215 public void deleteThreshstate()
217 this._has_threshstate = false;
221 * Returns the value of field 'autoScale'.
223 * @return the value of field 'AutoScale'.
225 public boolean getAutoScale()
227 return this._autoScale;
231 * Returns the value of field 'colour'.
233 * @return the value of field 'Colour'.
235 public int getColour()
241 * Returns the value of field 'colourByLabel'.
243 * @return the value of field 'ColourByLabel'.
245 public boolean getColourByLabel()
247 return this._colourByLabel;
251 * Returns the value of field 'display'.
253 * @return the value of field 'Display'.
255 public boolean getDisplay()
257 return this._display;
261 * Returns the value of field 'max'.
263 * @return the value of field 'Max'.
265 public float getMax()
271 * Returns the value of field 'min'.
273 * @return the value of field 'Min'.
275 public float getMin()
281 * Returns the value of field 'mincolour'. The field 'mincolour' has the
282 * following description: Optional minimum colour for graduated feature colour
285 * @return the value of field 'Mincolour'.
287 public int getMincolour()
289 return this._mincolour;
293 * Returns the value of field 'order'.
295 * @return the value of field 'Order'.
297 public float getOrder()
303 * Returns the value of field 'threshold'. The field 'threshold' has the
304 * following description: threshold value for graduated feature colour
307 * @return the value of field 'Threshold'.
309 public float getThreshold()
311 return this._threshold;
315 * Returns the value of field 'threshstate'. The field 'threshstate' has the
316 * following description: threshold type for graduated feature colour
319 * @return the value of field 'Threshstate'.
321 public int getThreshstate()
323 return this._threshstate;
327 * Returns the value of field 'type'.
329 * @return the value of field 'Type'.
331 public java.lang.String getType()
337 * Method hasAutoScale.
339 * @return true if at least one AutoScale has been added
341 public boolean hasAutoScale()
343 return this._has_autoScale;
349 * @return true if at least one Colour has been added
351 public boolean hasColour()
353 return this._has_colour;
357 * Method hasColourByLabel.
359 * @return true if at least one ColourByLabel has been added
361 public boolean hasColourByLabel()
363 return this._has_colourByLabel;
369 * @return true if at least one Display has been added
371 public boolean hasDisplay()
373 return this._has_display;
379 * @return true if at least one Max has been added
381 public boolean hasMax()
383 return this._has_max;
389 * @return true if at least one Min has been added
391 public boolean hasMin()
393 return this._has_min;
397 * Method hasMincolour.
399 * @return true if at least one Mincolour has been added
401 public boolean hasMincolour()
403 return this._has_mincolour;
409 * @return true if at least one Order has been added
411 public boolean hasOrder()
413 return this._has_order;
417 * Method hasThreshold.
419 * @return true if at least one Threshold has been added
421 public boolean hasThreshold()
423 return this._has_threshold;
427 * Method hasThreshstate.
429 * @return true if at least one Threshstate has been added
431 public boolean hasThreshstate()
433 return this._has_threshstate;
437 * Returns the value of field 'autoScale'.
439 * @return the value of field 'AutoScale'.
441 public boolean isAutoScale()
443 return this._autoScale;
447 * Returns the value of field 'colourByLabel'.
449 * @return the value of field 'ColourByLabel'.
451 public boolean isColourByLabel()
453 return this._colourByLabel;
457 * Returns the value of field 'display'.
459 * @return the value of field 'Display'.
461 public boolean isDisplay()
463 return this._display;
469 * @return true if this object is valid according to the schema
471 public boolean isValid()
476 } catch (org.exolab.castor.xml.ValidationException vex)
487 * @throws org.exolab.castor.xml.MarshalException
488 * if object is null or if any SAXException is thrown during
490 * @throws org.exolab.castor.xml.ValidationException
491 * if this object is an invalid instance according to the schema
493 public void marshal(final java.io.Writer out)
494 throws org.exolab.castor.xml.MarshalException,
495 org.exolab.castor.xml.ValidationException
497 Marshaller.marshal(this, out);
504 * @throws java.io.IOException
505 * if an IOException occurs during marshaling
506 * @throws org.exolab.castor.xml.ValidationException
507 * if this object is an invalid instance according to the schema
508 * @throws org.exolab.castor.xml.MarshalException
509 * if object is null or if any SAXException is thrown during
512 public void marshal(final org.xml.sax.ContentHandler handler)
513 throws java.io.IOException,
514 org.exolab.castor.xml.MarshalException,
515 org.exolab.castor.xml.ValidationException
517 Marshaller.marshal(this, handler);
521 * Sets the value of field 'autoScale'.
524 * the value of field 'autoScale'.
526 public void setAutoScale(final boolean autoScale)
528 this._autoScale = autoScale;
529 this._has_autoScale = true;
533 * Sets the value of field 'colour'.
536 * the value of field 'colour'.
538 public void setColour(final int colour)
540 this._colour = colour;
541 this._has_colour = true;
545 * Sets the value of field 'colourByLabel'.
547 * @param colourByLabel
548 * the value of field 'colourByLabel'.
550 public void setColourByLabel(final boolean colourByLabel)
552 this._colourByLabel = colourByLabel;
553 this._has_colourByLabel = true;
557 * Sets the value of field 'display'.
560 * the value of field 'display'.
562 public void setDisplay(final boolean display)
564 this._display = display;
565 this._has_display = true;
569 * Sets the value of field 'max'.
572 * the value of field 'max'.
574 public void setMax(final float max)
577 this._has_max = true;
581 * Sets the value of field 'min'.
584 * the value of field 'min'.
586 public void setMin(final float min)
589 this._has_min = true;
593 * Sets the value of field 'mincolour'. The field 'mincolour' has the
594 * following description: Optional minimum colour for graduated feature colour
598 * the value of field 'mincolour'.
600 public void setMincolour(final int mincolour)
602 this._mincolour = mincolour;
603 this._has_mincolour = true;
607 * Sets the value of field 'order'.
610 * the value of field 'order'.
612 public void setOrder(final float order)
615 this._has_order = true;
619 * Sets the value of field 'threshold'. The field 'threshold' has the
620 * following description: threshold value for graduated feature colour
624 * the value of field 'threshold'.
626 public void setThreshold(final float threshold)
628 this._threshold = threshold;
629 this._has_threshold = true;
633 * Sets the value of field 'threshstate'. The field 'threshstate' has the
634 * following description: threshold type for graduated feature colour
638 * the value of field 'threshstate'.
640 public void setThreshstate(final int threshstate)
642 this._threshstate = threshstate;
643 this._has_threshstate = true;
647 * Sets the value of field 'type'.
650 * the value of field 'type'.
652 public void setType(final java.lang.String type)
661 * @throws org.exolab.castor.xml.MarshalException
662 * if object is null or if any SAXException is thrown during
664 * @throws org.exolab.castor.xml.ValidationException
665 * if this object is an invalid instance according to the schema
666 * @return the unmarshaled jalview.schemabinding.version2.Settin
668 public static jalview.schemabinding.version2.Setting unmarshal(
669 final java.io.Reader reader)
670 throws org.exolab.castor.xml.MarshalException,
671 org.exolab.castor.xml.ValidationException
673 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(
674 jalview.schemabinding.version2.Setting.class, reader);
680 * @throws org.exolab.castor.xml.ValidationException
681 * if this object is an invalid instance according to the schema
683 public void validate() throws org.exolab.castor.xml.ValidationException
685 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
686 validator.validate(this);