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 Colour implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _name;
37 private java.lang.String _RGB;
42 private java.lang.String _minRGB;
45 * loosely specified enumeration: NONE,ABOVE, or BELOW
47 private java.lang.String _threshType;
52 private float _threshold;
55 * keeps track of state for field: _threshold
57 private boolean _has_threshold;
65 * keeps track of state for field: _max
67 private boolean _has_max;
75 * keeps track of state for field: _min
77 private boolean _has_min;
80 * Field _colourByLabel.
82 private boolean _colourByLabel;
85 * keeps track of state for field: _colourByLabel
87 private boolean _has_colourByLabel;
92 private boolean _autoScale;
95 * keeps track of state for field: _autoScale
97 private boolean _has_autoScale;
114 public void deleteAutoScale()
116 this._has_autoScale = false;
121 public void deleteColourByLabel()
123 this._has_colourByLabel = false;
128 public void deleteMax()
130 this._has_max = false;
135 public void deleteMin()
137 this._has_min = false;
142 public void deleteThreshold()
144 this._has_threshold = false;
148 * Returns the value of field 'autoScale'.
150 * @return the value of field 'AutoScale'.
152 public boolean getAutoScale()
154 return this._autoScale;
158 * Returns the value of field 'colourByLabel'.
160 * @return the value of field 'ColourByLabel'.
162 public boolean getColourByLabel()
164 return this._colourByLabel;
168 * Returns the value of field 'max'.
170 * @return the value of field 'Max'.
172 public float getMax()
178 * Returns the value of field 'min'.
180 * @return the value of field 'Min'.
182 public float getMin()
188 * Returns the value of field 'minRGB'.
190 * @return the value of field 'MinRGB'.
192 public java.lang.String getMinRGB()
198 * Returns the value of field 'name'.
200 * @return the value of field 'Name'.
202 public java.lang.String getName()
208 * Returns the value of field 'RGB'.
210 * @return the value of field 'RGB'.
212 public java.lang.String getRGB()
218 * Returns the value of field 'threshType'. The field 'threshType' has the
219 * following description: loosely specified enumeration: NONE,ABOVE, or BELOW
221 * @return the value of field 'ThreshType'.
223 public java.lang.String getThreshType()
225 return this._threshType;
229 * Returns the value of field 'threshold'.
231 * @return the value of field 'Threshold'.
233 public float getThreshold()
235 return this._threshold;
239 * Method hasAutoScale.
241 * @return true if at least one AutoScale has been added
243 public boolean hasAutoScale()
245 return this._has_autoScale;
249 * Method hasColourByLabel.
251 * @return true if at least one ColourByLabel has been added
253 public boolean hasColourByLabel()
255 return this._has_colourByLabel;
261 * @return true if at least one Max has been added
263 public boolean hasMax()
265 return this._has_max;
271 * @return true if at least one Min has been added
273 public boolean hasMin()
275 return this._has_min;
279 * Method hasThreshold.
281 * @return true if at least one Threshold has been added
283 public boolean hasThreshold()
285 return this._has_threshold;
289 * Returns the value of field 'autoScale'.
291 * @return the value of field 'AutoScale'.
293 public boolean isAutoScale()
295 return this._autoScale;
299 * Returns the value of field 'colourByLabel'.
301 * @return the value of field 'ColourByLabel'.
303 public boolean isColourByLabel()
305 return this._colourByLabel;
311 * @return true if this object is valid according to the schema
313 public boolean isValid()
318 } catch (org.exolab.castor.xml.ValidationException vex)
329 * @throws org.exolab.castor.xml.MarshalException
330 * if object is null or if any SAXException is thrown during
332 * @throws org.exolab.castor.xml.ValidationException
333 * if this object is an invalid instance according to the schema
335 public void marshal(final java.io.Writer out)
336 throws org.exolab.castor.xml.MarshalException,
337 org.exolab.castor.xml.ValidationException
339 Marshaller.marshal(this, out);
346 * @throws java.io.IOException
347 * if an IOException occurs during marshaling
348 * @throws org.exolab.castor.xml.ValidationException
349 * if this object is an invalid instance according to the schema
350 * @throws org.exolab.castor.xml.MarshalException
351 * if object is null or if any SAXException is thrown during
354 public void marshal(final org.xml.sax.ContentHandler handler)
355 throws java.io.IOException,
356 org.exolab.castor.xml.MarshalException,
357 org.exolab.castor.xml.ValidationException
359 Marshaller.marshal(this, handler);
363 * Sets the value of field 'autoScale'.
366 * the value of field 'autoScale'.
368 public void setAutoScale(final boolean autoScale)
370 this._autoScale = autoScale;
371 this._has_autoScale = true;
375 * Sets the value of field 'colourByLabel'.
377 * @param colourByLabel
378 * the value of field 'colourByLabel'.
380 public void setColourByLabel(final boolean colourByLabel)
382 this._colourByLabel = colourByLabel;
383 this._has_colourByLabel = true;
387 * Sets the value of field 'max'.
390 * the value of field 'max'.
392 public void setMax(final float max)
395 this._has_max = true;
399 * Sets the value of field 'min'.
402 * the value of field 'min'.
404 public void setMin(final float min)
407 this._has_min = true;
411 * Sets the value of field 'minRGB'.
414 * the value of field 'minRGB'.
416 public void setMinRGB(final java.lang.String minRGB)
418 this._minRGB = minRGB;
422 * Sets the value of field 'name'.
425 * the value of field 'name'.
427 public void setName(final java.lang.String name)
433 * Sets the value of field 'RGB'.
436 * the value of field 'RGB'.
438 public void setRGB(final java.lang.String RGB)
444 * Sets the value of field 'threshType'. The field 'threshType' has the
445 * following description: loosely specified enumeration: NONE,ABOVE, or BELOW
448 * the value of field 'threshType'.
450 public void setThreshType(final java.lang.String threshType)
452 this._threshType = threshType;
456 * Sets the value of field 'threshold'.
459 * the value of field 'threshold'.
461 public void setThreshold(final float threshold)
463 this._threshold = threshold;
464 this._has_threshold = true;
471 * @throws org.exolab.castor.xml.MarshalException
472 * if object is null or if any SAXException is thrown during
474 * @throws org.exolab.castor.xml.ValidationException
475 * if this object is an invalid instance according to the schema
476 * @return the unmarshaled jalview.schemabinding.version2.Colour
478 public static jalview.schemabinding.version2.Colour unmarshal(
479 final java.io.Reader reader)
480 throws org.exolab.castor.xml.MarshalException,
481 org.exolab.castor.xml.ValidationException
483 return (jalview.schemabinding.version2.Colour) Unmarshaller.unmarshal(
484 jalview.schemabinding.version2.Colour.class, reader);
490 * @throws org.exolab.castor.xml.ValidationException
491 * if this object is an invalid instance according to the schema
493 public void validate() throws org.exolab.castor.xml.ValidationException
495 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
496 validator.validate(this);