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