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
100 * keeps track of state for field: _max
\r
102 private boolean _has_max;
\r
107 private float _min;
\r
110 * keeps track of state for field: _min
\r
112 private boolean _has_min;
\r
115 * Field _colourByLabel.
\r
117 private boolean _colourByLabel;
\r
120 * keeps track of state for field: _colourByLabel
\r
122 private boolean _has_colourByLabel;
\r
125 * Field _autoScale.
\r
127 private boolean _autoScale;
\r
130 * keeps track of state for field: _autoScale
\r
132 private boolean _has_autoScale;
\r
135 //----------------/
\r
136 //- Constructors -/
\r
137 //----------------/
\r
150 public void deleteAutoScale(
\r
152 this._has_autoScale= false;
\r
157 public void deleteColour(
\r
159 this._has_colour= false;
\r
164 public void deleteColourByLabel(
\r
166 this._has_colourByLabel= false;
\r
171 public void deleteDisplay(
\r
173 this._has_display= false;
\r
178 public void deleteMax(
\r
180 this._has_max= false;
\r
185 public void deleteMin(
\r
187 this._has_min= false;
\r
192 public void deleteMincolour(
\r
194 this._has_mincolour= false;
\r
199 public void deleteOrder(
\r
201 this._has_order= false;
\r
206 public void deleteThreshold(
\r
208 this._has_threshold= false;
\r
213 public void deleteThreshstate(
\r
215 this._has_threshstate= false;
\r
219 * Returns the value of field 'autoScale'.
\r
221 * @return the value of field 'AutoScale'.
\r
223 public boolean getAutoScale(
\r
225 return this._autoScale;
\r
229 * Returns the value of field 'colour'.
\r
231 * @return the value of field 'Colour'.
\r
233 public int getColour(
\r
235 return this._colour;
\r
239 * Returns the value of field 'colourByLabel'.
\r
241 * @return the value of field 'ColourByLabel'.
\r
243 public boolean getColourByLabel(
\r
245 return this._colourByLabel;
\r
249 * Returns the value of field 'display'.
\r
251 * @return the value of field 'Display'.
\r
253 public boolean getDisplay(
\r
255 return this._display;
\r
259 * Returns the value of field 'max'.
\r
261 * @return the value of field 'Max'.
\r
263 public float getMax(
\r
269 * Returns the value of field 'min'.
\r
271 * @return the value of field 'Min'.
\r
273 public float getMin(
\r
279 * Returns the value of field 'mincolour'. The field
\r
280 * 'mincolour' has the following description: Optional minimum
\r
281 * colour for graduated feature colour
\r
283 * @return the value of field 'Mincolour'.
\r
285 public int getMincolour(
\r
287 return this._mincolour;
\r
291 * Returns the value of field 'order'.
\r
293 * @return the value of field 'Order'.
\r
295 public float getOrder(
\r
297 return this._order;
\r
301 * Returns the value of field 'threshold'. The field
\r
302 * 'threshold' has the following description: threshold value
\r
303 * for graduated feature colour
\r
305 * @return the value of field 'Threshold'.
\r
307 public float getThreshold(
\r
309 return this._threshold;
\r
313 * Returns the value of field 'threshstate'. The field
\r
314 * 'threshstate' has the following description: threshold type
\r
315 * for graduated feature colour
\r
317 * @return the value of field 'Threshstate'.
\r
319 public int getThreshstate(
\r
321 return this._threshstate;
\r
325 * Returns the value of field 'type'.
\r
327 * @return the value of field 'Type'.
\r
329 public java.lang.String getType(
\r
335 * Method hasAutoScale.
\r
337 * @return true if at least one AutoScale has been added
\r
339 public boolean hasAutoScale(
\r
341 return this._has_autoScale;
\r
345 * Method hasColour.
\r
347 * @return true if at least one Colour has been added
\r
349 public boolean hasColour(
\r
351 return this._has_colour;
\r
355 * Method hasColourByLabel.
\r
357 * @return true if at least one ColourByLabel has been added
\r
359 public boolean hasColourByLabel(
\r
361 return this._has_colourByLabel;
\r
365 * Method hasDisplay.
\r
367 * @return true if at least one Display has been added
\r
369 public boolean hasDisplay(
\r
371 return this._has_display;
\r
377 * @return true if at least one Max has been added
\r
379 public boolean hasMax(
\r
381 return this._has_max;
\r
387 * @return true if at least one Min has been added
\r
389 public boolean hasMin(
\r
391 return this._has_min;
\r
395 * Method hasMincolour.
\r
397 * @return true if at least one Mincolour has been added
\r
399 public boolean hasMincolour(
\r
401 return this._has_mincolour;
\r
407 * @return true if at least one Order has been added
\r
409 public boolean hasOrder(
\r
411 return this._has_order;
\r
415 * Method hasThreshold.
\r
417 * @return true if at least one Threshold has been added
\r
419 public boolean hasThreshold(
\r
421 return this._has_threshold;
\r
425 * Method hasThreshstate.
\r
427 * @return true if at least one Threshstate has been added
\r
429 public boolean hasThreshstate(
\r
431 return this._has_threshstate;
\r
435 * Returns the value of field 'autoScale'.
\r
437 * @return the value of field 'AutoScale'.
\r
439 public boolean isAutoScale(
\r
441 return this._autoScale;
\r
445 * Returns the value of field 'colourByLabel'.
\r
447 * @return the value of field 'ColourByLabel'.
\r
449 public boolean isColourByLabel(
\r
451 return this._colourByLabel;
\r
455 * Returns the value of field 'display'.
\r
457 * @return the value of field 'Display'.
\r
459 public boolean isDisplay(
\r
461 return this._display;
\r
467 * @return true if this object is valid according to the schema
\r
469 public boolean isValid(
\r
473 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
483 * @throws org.exolab.castor.xml.MarshalException if object is
\r
484 * null or if any SAXException is thrown during marshaling
\r
485 * @throws org.exolab.castor.xml.ValidationException if this
\r
486 * object is an invalid instance according to the schema
\r
488 public void marshal(
\r
489 final java.io.Writer out)
\r
490 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
491 Marshaller.marshal(this, out);
\r
498 * @throws java.io.IOException if an IOException occurs during
\r
500 * @throws org.exolab.castor.xml.ValidationException if this
\r
501 * object is an invalid instance according to the schema
\r
502 * @throws org.exolab.castor.xml.MarshalException if object is
\r
503 * null or if any SAXException is thrown during marshaling
\r
505 public void marshal(
\r
506 final org.xml.sax.ContentHandler handler)
\r
507 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
508 Marshaller.marshal(this, handler);
\r
512 * Sets the value of field 'autoScale'.
\r
514 * @param autoScale the value of field 'autoScale'.
\r
516 public void setAutoScale(
\r
517 final boolean autoScale) {
\r
518 this._autoScale = autoScale;
\r
519 this._has_autoScale = true;
\r
523 * Sets the value of field 'colour'.
\r
525 * @param colour the value of field 'colour'.
\r
527 public void setColour(
\r
528 final int colour) {
\r
529 this._colour = colour;
\r
530 this._has_colour = true;
\r
534 * Sets the value of field 'colourByLabel'.
\r
536 * @param colourByLabel the value of field 'colourByLabel'.
\r
538 public void setColourByLabel(
\r
539 final boolean colourByLabel) {
\r
540 this._colourByLabel = colourByLabel;
\r
541 this._has_colourByLabel = true;
\r
545 * Sets the value of field 'display'.
\r
547 * @param display the value of field 'display'.
\r
549 public void setDisplay(
\r
550 final boolean display) {
\r
551 this._display = display;
\r
552 this._has_display = true;
\r
556 * Sets the value of field 'max'.
\r
558 * @param max the value of field 'max'.
\r
560 public void setMax(
\r
563 this._has_max = true;
\r
567 * Sets the value of field 'min'.
\r
569 * @param min the value of field 'min'.
\r
571 public void setMin(
\r
574 this._has_min = true;
\r
578 * Sets the value of field 'mincolour'. The field 'mincolour'
\r
579 * has the following description: Optional minimum colour for
\r
580 * graduated feature colour
\r
582 * @param mincolour the value of field 'mincolour'.
\r
584 public void setMincolour(
\r
585 final int mincolour) {
\r
586 this._mincolour = mincolour;
\r
587 this._has_mincolour = true;
\r
591 * Sets the value of field 'order'.
\r
593 * @param order the value of field 'order'.
\r
595 public void setOrder(
\r
596 final float order) {
\r
597 this._order = order;
\r
598 this._has_order = true;
\r
602 * Sets the value of field 'threshold'. The field 'threshold'
\r
603 * has the following description: threshold value for graduated
\r
606 * @param threshold the value of field 'threshold'.
\r
608 public void setThreshold(
\r
609 final float threshold) {
\r
610 this._threshold = threshold;
\r
611 this._has_threshold = true;
\r
615 * Sets the value of field 'threshstate'. The field
\r
616 * 'threshstate' has the following description: threshold type
\r
617 * for graduated feature colour
\r
619 * @param threshstate the value of field 'threshstate'.
\r
621 public void setThreshstate(
\r
622 final int threshstate) {
\r
623 this._threshstate = threshstate;
\r
624 this._has_threshstate = true;
\r
628 * Sets the value of field 'type'.
\r
630 * @param type the value of field 'type'.
\r
632 public void setType(
\r
633 final java.lang.String type) {
\r
638 * Method unmarshal.
\r
641 * @throws org.exolab.castor.xml.MarshalException if object is
\r
642 * null or if any SAXException is thrown during marshaling
\r
643 * @throws org.exolab.castor.xml.ValidationException if this
\r
644 * object is an invalid instance according to the schema
\r
645 * @return the unmarshaled jalview.schemabinding.version2.Settin
\r
647 public static jalview.schemabinding.version2.Setting unmarshal(
\r
648 final java.io.Reader reader)
\r
649 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
650 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
\r
656 * @throws org.exolab.castor.xml.ValidationException if this
\r
657 * object is an invalid instance according to the schema
\r
659 public void validate(
\r
661 throws org.exolab.castor.xml.ValidationException {
\r
662 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
663 validator.validate(this);
\r