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
71 private int _mincolour;
74 * keeps track of state for field: _mincolour
76 private boolean _has_mincolour;
80 * graduated feature colour
83 private float _threshold;
86 * keeps track of state for field: _threshold
88 private boolean _has_threshold;
92 * graduated feature colour
95 private int _threshstate;
98 * keeps track of state for field: _threshstate
100 private boolean _has_threshstate;
108 * keeps track of state for field: _max
110 private boolean _has_max;
118 * keeps track of state for field: _min
120 private boolean _has_min;
123 * Field _colourByLabel.
125 private boolean _colourByLabel;
128 * keeps track of state for field: _colourByLabel
130 private boolean _has_colourByLabel;
135 private boolean _autoScale;
138 * keeps track of state for field: _autoScale
140 private boolean _has_autoScale;
158 public void deleteAutoScale(
160 this._has_autoScale= false;
165 public void deleteColour(
167 this._has_colour= false;
172 public void deleteColourByLabel(
174 this._has_colourByLabel= false;
179 public void deleteDisplay(
181 this._has_display= false;
186 public void deleteMax(
188 this._has_max= false;
193 public void deleteMin(
195 this._has_min= false;
200 public void deleteMincolour(
202 this._has_mincolour= false;
207 public void deleteOrder(
209 this._has_order= false;
214 public void deleteThreshold(
216 this._has_threshold= false;
221 public void deleteThreshstate(
223 this._has_threshstate= false;
227 * Returns the value of field 'autoScale'.
229 * @return the value of field 'AutoScale'.
231 public boolean getAutoScale(
233 return this._autoScale;
237 * Returns the value of field 'colour'.
239 * @return the value of field 'Colour'.
241 public int getColour(
247 * Returns the value of field 'colourByLabel'.
249 * @return the value of field 'ColourByLabel'.
251 public boolean getColourByLabel(
253 return this._colourByLabel;
257 * Returns the value of field 'display'.
259 * @return the value of field 'Display'.
261 public boolean getDisplay(
263 return this._display;
267 * Returns the value of field 'max'.
269 * @return the value of field 'Max'.
277 * Returns the value of field 'min'.
279 * @return the value of field 'Min'.
287 * Returns the value of field 'mincolour'. The field
288 * 'mincolour' has the following description: Optional minimum
295 * @return the value of field 'Mincolour'.
297 public int getMincolour(
299 return this._mincolour;
303 * Returns the value of field 'order'.
305 * @return the value of field 'Order'.
307 public float getOrder(
313 * Returns the value of field 'threshold'. The field
314 * 'threshold' has the following description: threshold value
316 * graduated feature colour
319 * @return the value of field 'Threshold'.
321 public float getThreshold(
323 return this._threshold;
327 * Returns the value of field 'threshstate'. The field
328 * 'threshstate' has the following description: threshold type
330 * graduated feature colour
333 * @return the value of field 'Threshstate'.
335 public int getThreshstate(
337 return this._threshstate;
341 * Returns the value of field 'type'.
343 * @return the value of field 'Type'.
345 public java.lang.String getType(
351 * Method hasAutoScale.
353 * @return true if at least one AutoScale has been added
355 public boolean hasAutoScale(
357 return this._has_autoScale;
363 * @return true if at least one Colour has been added
365 public boolean hasColour(
367 return this._has_colour;
371 * Method hasColourByLabel.
373 * @return true if at least one ColourByLabel has been added
375 public boolean hasColourByLabel(
377 return this._has_colourByLabel;
383 * @return true if at least one Display has been added
385 public boolean hasDisplay(
387 return this._has_display;
393 * @return true if at least one Max has been added
395 public boolean hasMax(
397 return this._has_max;
403 * @return true if at least one Min has been added
405 public boolean hasMin(
407 return this._has_min;
411 * Method hasMincolour.
413 * @return true if at least one Mincolour has been added
415 public boolean hasMincolour(
417 return this._has_mincolour;
423 * @return true if at least one Order has been added
425 public boolean hasOrder(
427 return this._has_order;
431 * Method hasThreshold.
433 * @return true if at least one Threshold has been added
435 public boolean hasThreshold(
437 return this._has_threshold;
441 * Method hasThreshstate.
443 * @return true if at least one Threshstate has been added
445 public boolean hasThreshstate(
447 return this._has_threshstate;
451 * Returns the value of field 'autoScale'.
453 * @return the value of field 'AutoScale'.
455 public boolean isAutoScale(
457 return this._autoScale;
461 * Returns the value of field 'colourByLabel'.
463 * @return the value of field 'ColourByLabel'.
465 public boolean isColourByLabel(
467 return this._colourByLabel;
471 * Returns the value of field 'display'.
473 * @return the value of field 'Display'.
475 public boolean isDisplay(
477 return this._display;
483 * @return true if this object is valid according to the schema
485 public boolean isValid(
489 } catch (org.exolab.castor.xml.ValidationException vex) {
499 * @throws org.exolab.castor.xml.MarshalException if object is
500 * null or if any SAXException is thrown during marshaling
501 * @throws org.exolab.castor.xml.ValidationException if this
502 * object is an invalid instance according to the schema
505 final java.io.Writer out)
506 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
507 Marshaller.marshal(this, out);
514 * @throws java.io.IOException if an IOException occurs during
516 * @throws org.exolab.castor.xml.ValidationException if this
517 * object is an invalid instance according to the schema
518 * @throws org.exolab.castor.xml.MarshalException if object is
519 * null or if any SAXException is thrown during marshaling
522 final org.xml.sax.ContentHandler handler)
523 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
524 Marshaller.marshal(this, handler);
528 * Sets the value of field 'autoScale'.
530 * @param autoScale the value of field 'autoScale'.
532 public void setAutoScale(
533 final boolean autoScale) {
534 this._autoScale = autoScale;
535 this._has_autoScale = true;
539 * Sets the value of field 'colour'.
541 * @param colour the value of field 'colour'.
543 public void setColour(
545 this._colour = colour;
546 this._has_colour = true;
550 * Sets the value of field 'colourByLabel'.
552 * @param colourByLabel the value of field 'colourByLabel'.
554 public void setColourByLabel(
555 final boolean colourByLabel) {
556 this._colourByLabel = colourByLabel;
557 this._has_colourByLabel = true;
561 * Sets the value of field 'display'.
563 * @param display the value of field 'display'.
565 public void setDisplay(
566 final boolean display) {
567 this._display = display;
568 this._has_display = true;
572 * Sets the value of field 'max'.
574 * @param max the value of field 'max'.
579 this._has_max = true;
583 * Sets the value of field 'min'.
585 * @param min the value of field 'min'.
590 this._has_min = true;
594 * Sets the value of field 'mincolour'. The field 'mincolour'
595 * has the following description: Optional minimum colour
601 * @param mincolour the value of field 'mincolour'.
603 public void setMincolour(
604 final int mincolour) {
605 this._mincolour = mincolour;
606 this._has_mincolour = true;
610 * Sets the value of field 'order'.
612 * @param order the value of field 'order'.
614 public void setOrder(
617 this._has_order = true;
621 * Sets the value of field 'threshold'. The field 'threshold'
622 * has the following description: threshold value for
623 * graduated feature colour
626 * @param threshold the value of field 'threshold'.
628 public void setThreshold(
629 final float threshold) {
630 this._threshold = threshold;
631 this._has_threshold = true;
635 * Sets the value of field 'threshstate'. The field
636 * 'threshstate' has the following description: threshold type
638 * graduated feature colour
641 * @param threshstate the value of field 'threshstate'.
643 public void setThreshstate(
644 final int threshstate) {
645 this._threshstate = threshstate;
646 this._has_threshstate = true;
650 * Sets the value of field 'type'.
652 * @param type the value of field 'type'.
655 final java.lang.String type) {
663 * @throws org.exolab.castor.xml.MarshalException if object is
664 * null or if any SAXException is thrown during marshaling
665 * @throws org.exolab.castor.xml.ValidationException if this
666 * object is an invalid instance according to the schema
667 * @return the unmarshaled jalview.schemabinding.version2.Settin
669 public static jalview.schemabinding.version2.Setting unmarshal(
670 final java.io.Reader reader)
671 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
672 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
678 * @throws org.exolab.castor.xml.ValidationException if this
679 * object is an invalid instance according to the schema
681 public void validate(
683 throws org.exolab.castor.xml.ValidationException {
684 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
685 validator.validate(this);