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
66 * for graduated feature
70 private int _mincolour;
73 * keeps track of state for field: _mincolour
75 private boolean _has_mincolour;
79 * graduated feature colour
82 private float _threshold;
85 * keeps track of state for field: _threshold
87 private boolean _has_threshold;
91 * graduated feature colour
94 private int _threshstate;
97 * keeps track of state for field: _threshstate
99 private boolean _has_threshstate;
107 * keeps track of state for field: _max
109 private boolean _has_max;
117 * keeps track of state for field: _min
119 private boolean _has_min;
122 * Field _colourByLabel.
124 private boolean _colourByLabel;
127 * keeps track of state for field: _colourByLabel
129 private boolean _has_colourByLabel;
134 private boolean _autoScale;
137 * keeps track of state for field: _autoScale
139 private boolean _has_autoScale;
157 public void deleteAutoScale(
159 this._has_autoScale= false;
164 public void deleteColour(
166 this._has_colour= false;
171 public void deleteColourByLabel(
173 this._has_colourByLabel= false;
178 public void deleteDisplay(
180 this._has_display= false;
185 public void deleteMax(
187 this._has_max= false;
192 public void deleteMin(
194 this._has_min= false;
199 public void deleteMincolour(
201 this._has_mincolour= false;
206 public void deleteOrder(
208 this._has_order= false;
213 public void deleteThreshold(
215 this._has_threshold= false;
220 public void deleteThreshstate(
222 this._has_threshstate= false;
226 * Returns the value of field 'autoScale'.
228 * @return the value of field 'AutoScale'.
230 public boolean getAutoScale(
232 return this._autoScale;
236 * Returns the value of field 'colour'.
238 * @return the value of field 'Colour'.
240 public int getColour(
246 * Returns the value of field 'colourByLabel'.
248 * @return the value of field 'ColourByLabel'.
250 public boolean getColourByLabel(
252 return this._colourByLabel;
256 * Returns the value of field 'display'.
258 * @return the value of field 'Display'.
260 public boolean getDisplay(
262 return this._display;
266 * Returns the value of field 'max'.
268 * @return the value of field 'Max'.
276 * Returns the value of field 'min'.
278 * @return the value of field 'Min'.
286 * Returns the value of field 'mincolour'. The field
287 * 'mincolour' has the following description: Optional minimum
289 * for graduated feature
293 * @return the value of field 'Mincolour'.
295 public int getMincolour(
297 return this._mincolour;
301 * Returns the value of field 'order'.
303 * @return the value of field 'Order'.
305 public float getOrder(
311 * Returns the value of field 'threshold'. The field
312 * 'threshold' has the following description: threshold value
314 * graduated feature colour
317 * @return the value of field 'Threshold'.
319 public float getThreshold(
321 return this._threshold;
325 * Returns the value of field 'threshstate'. The field
326 * 'threshstate' has the following description: threshold type
328 * graduated feature colour
331 * @return the value of field 'Threshstate'.
333 public int getThreshstate(
335 return this._threshstate;
339 * Returns the value of field 'type'.
341 * @return the value of field 'Type'.
343 public java.lang.String getType(
349 * Method hasAutoScale.
351 * @return true if at least one AutoScale has been added
353 public boolean hasAutoScale(
355 return this._has_autoScale;
361 * @return true if at least one Colour has been added
363 public boolean hasColour(
365 return this._has_colour;
369 * Method hasColourByLabel.
371 * @return true if at least one ColourByLabel has been added
373 public boolean hasColourByLabel(
375 return this._has_colourByLabel;
381 * @return true if at least one Display has been added
383 public boolean hasDisplay(
385 return this._has_display;
391 * @return true if at least one Max has been added
393 public boolean hasMax(
395 return this._has_max;
401 * @return true if at least one Min has been added
403 public boolean hasMin(
405 return this._has_min;
409 * Method hasMincolour.
411 * @return true if at least one Mincolour has been added
413 public boolean hasMincolour(
415 return this._has_mincolour;
421 * @return true if at least one Order has been added
423 public boolean hasOrder(
425 return this._has_order;
429 * Method hasThreshold.
431 * @return true if at least one Threshold has been added
433 public boolean hasThreshold(
435 return this._has_threshold;
439 * Method hasThreshstate.
441 * @return true if at least one Threshstate has been added
443 public boolean hasThreshstate(
445 return this._has_threshstate;
449 * Returns the value of field 'autoScale'.
451 * @return the value of field 'AutoScale'.
453 public boolean isAutoScale(
455 return this._autoScale;
459 * Returns the value of field 'colourByLabel'.
461 * @return the value of field 'ColourByLabel'.
463 public boolean isColourByLabel(
465 return this._colourByLabel;
469 * Returns the value of field 'display'.
471 * @return the value of field 'Display'.
473 public boolean isDisplay(
475 return this._display;
481 * @return true if this object is valid according to the schema
483 public boolean isValid(
487 } catch (org.exolab.castor.xml.ValidationException vex) {
497 * @throws org.exolab.castor.xml.MarshalException if object is
498 * null or if any SAXException is thrown during marshaling
499 * @throws org.exolab.castor.xml.ValidationException if this
500 * object is an invalid instance according to the schema
503 final java.io.Writer out)
504 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
505 Marshaller.marshal(this, out);
512 * @throws java.io.IOException if an IOException occurs during
514 * @throws org.exolab.castor.xml.ValidationException if this
515 * object is an invalid instance according to the schema
516 * @throws org.exolab.castor.xml.MarshalException if object is
517 * null or if any SAXException is thrown during marshaling
520 final org.xml.sax.ContentHandler handler)
521 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
522 Marshaller.marshal(this, handler);
526 * Sets the value of field 'autoScale'.
528 * @param autoScale the value of field 'autoScale'.
530 public void setAutoScale(
531 final boolean autoScale) {
532 this._autoScale = autoScale;
533 this._has_autoScale = true;
537 * Sets the value of field 'colour'.
539 * @param colour the value of field 'colour'.
541 public void setColour(
543 this._colour = colour;
544 this._has_colour = true;
548 * Sets the value of field 'colourByLabel'.
550 * @param colourByLabel the value of field 'colourByLabel'.
552 public void setColourByLabel(
553 final boolean colourByLabel) {
554 this._colourByLabel = colourByLabel;
555 this._has_colourByLabel = true;
559 * Sets the value of field 'display'.
561 * @param display the value of field 'display'.
563 public void setDisplay(
564 final boolean display) {
565 this._display = display;
566 this._has_display = true;
570 * Sets the value of field 'max'.
572 * @param max the value of field 'max'.
577 this._has_max = true;
581 * Sets the value of field 'min'.
583 * @param min the value of field 'min'.
588 this._has_min = true;
592 * Sets the value of field 'mincolour'. The field 'mincolour'
593 * has the following description: Optional minimum colour
594 * for graduated feature
598 * @param mincolour the value of field 'mincolour'.
600 public void setMincolour(
601 final int mincolour) {
602 this._mincolour = mincolour;
603 this._has_mincolour = true;
607 * Sets the value of field 'order'.
609 * @param order the value of field 'order'.
611 public void setOrder(
614 this._has_order = true;
618 * Sets the value of field 'threshold'. The field 'threshold'
619 * has the following description: threshold value for
620 * graduated feature colour
623 * @param threshold the value of field 'threshold'.
625 public void setThreshold(
626 final float threshold) {
627 this._threshold = threshold;
628 this._has_threshold = true;
632 * Sets the value of field 'threshstate'. The field
633 * 'threshstate' has the following description: threshold type
635 * graduated feature colour
638 * @param threshstate the value of field 'threshstate'.
640 public void setThreshstate(
641 final int threshstate) {
642 this._threshstate = threshstate;
643 this._has_threshstate = true;
647 * Sets the value of field 'type'.
649 * @param type the value of field 'type'.
652 final java.lang.String type) {
660 * @throws org.exolab.castor.xml.MarshalException if object is
661 * null or if any SAXException is thrown during marshaling
662 * @throws org.exolab.castor.xml.ValidationException if this
663 * object is an invalid instance according to the schema
664 * @return the unmarshaled jalview.schemabinding.version2.Settin
666 public static jalview.schemabinding.version2.Setting unmarshal(
667 final java.io.Reader reader)
668 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
669 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
675 * @throws org.exolab.castor.xml.ValidationException if this
676 * object is an invalid instance according to the schema
678 public void validate(
680 throws org.exolab.castor.xml.ValidationException {
681 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
682 validator.validate(this);