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;
18 * Class AnnotationColourScheme.
20 * @version $Revision$ $Date$
22 public class AnnotationColourScheme implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
30 * Field _aboveThreshold.
32 private int _aboveThreshold;
35 * keeps track of state for field: _aboveThreshold
37 private boolean _has_aboveThreshold;
42 private java.lang.String _annotation;
47 private int _minColour;
50 * keeps track of state for field: _minColour
52 private boolean _has_minColour;
57 private int _maxColour;
60 * keeps track of state for field: _maxColour
62 private boolean _has_maxColour;
65 * Field _colourScheme.
67 private java.lang.String _colourScheme;
72 private float _threshold;
75 * keeps track of state for field: _threshold
77 private boolean _has_threshold;
82 private boolean _perSequence;
85 * keeps track of state for field: _perSequence
87 private boolean _has_perSequence;
90 * Field _predefinedColours.
92 private boolean _predefinedColours;
95 * keeps track of state for field: _predefinedColours
97 private boolean _has_predefinedColours;
103 public AnnotationColourScheme()
114 public void deleteAboveThreshold()
116 this._has_aboveThreshold = false;
121 public void deleteMaxColour()
123 this._has_maxColour = false;
128 public void deleteMinColour()
130 this._has_minColour = false;
135 public void deletePerSequence()
137 this._has_perSequence = false;
142 public void deletePredefinedColours()
144 this._has_predefinedColours = false;
149 public void deleteThreshold()
151 this._has_threshold = false;
155 * Returns the value of field 'aboveThreshold'.
157 * @return the value of field 'AboveThreshold'.
159 public int getAboveThreshold()
161 return this._aboveThreshold;
165 * Returns the value of field 'annotation'.
167 * @return the value of field 'Annotation'.
169 public java.lang.String getAnnotation()
171 return this._annotation;
175 * Returns the value of field 'colourScheme'.
177 * @return the value of field 'ColourScheme'.
179 public java.lang.String getColourScheme()
181 return this._colourScheme;
185 * Returns the value of field 'maxColour'.
187 * @return the value of field 'MaxColour'.
189 public int getMaxColour()
191 return this._maxColour;
195 * Returns the value of field 'minColour'.
197 * @return the value of field 'MinColour'.
199 public int getMinColour()
201 return this._minColour;
205 * Returns the value of field 'perSequence'.
207 * @return the value of field 'PerSequence'.
209 public boolean getPerSequence()
211 return this._perSequence;
215 * Returns the value of field 'predefinedColours'.
217 * @return the value of field 'PredefinedColours'.
219 public boolean getPredefinedColours()
221 return this._predefinedColours;
225 * Returns the value of field 'threshold'.
227 * @return the value of field 'Threshold'.
229 public float getThreshold()
231 return this._threshold;
235 * Method hasAboveThreshold.
237 * @return true if at least one AboveThreshold has been added
239 public boolean hasAboveThreshold()
241 return this._has_aboveThreshold;
245 * Method hasMaxColour.
247 * @return true if at least one MaxColour has been added
249 public boolean hasMaxColour()
251 return this._has_maxColour;
255 * Method hasMinColour.
257 * @return true if at least one MinColour has been added
259 public boolean hasMinColour()
261 return this._has_minColour;
265 * Method hasPerSequence.
267 * @return true if at least one PerSequence has been added
269 public boolean hasPerSequence()
271 return this._has_perSequence;
275 * Method hasPredefinedColours.
277 * @return true if at least one PredefinedColours has been added
279 public boolean hasPredefinedColours()
281 return this._has_predefinedColours;
285 * Method hasThreshold.
287 * @return true if at least one Threshold has been added
289 public boolean hasThreshold()
291 return this._has_threshold;
295 * Returns the value of field 'perSequence'.
297 * @return the value of field 'PerSequence'.
299 public boolean isPerSequence()
301 return this._perSequence;
305 * Returns the value of field 'predefinedColours'.
307 * @return the value of field 'PredefinedColours'.
309 public boolean isPredefinedColours()
311 return this._predefinedColours;
317 * @return true if this object is valid according to the schema
319 public boolean isValid()
324 } catch (org.exolab.castor.xml.ValidationException vex)
335 * @throws org.exolab.castor.xml.MarshalException
336 * if object is null or if any SAXException is thrown during
338 * @throws org.exolab.castor.xml.ValidationException
339 * if this object is an invalid instance according to the schema
341 public void marshal(final java.io.Writer out)
342 throws org.exolab.castor.xml.MarshalException,
343 org.exolab.castor.xml.ValidationException
345 Marshaller.marshal(this, out);
352 * @throws java.io.IOException
353 * if an IOException occurs during marshaling
354 * @throws org.exolab.castor.xml.ValidationException
355 * if this object is an invalid instance according to the schema
356 * @throws org.exolab.castor.xml.MarshalException
357 * if object is null or if any SAXException is thrown during
360 public void marshal(final org.xml.sax.ContentHandler handler)
361 throws java.io.IOException,
362 org.exolab.castor.xml.MarshalException,
363 org.exolab.castor.xml.ValidationException
365 Marshaller.marshal(this, handler);
369 * Sets the value of field 'aboveThreshold'.
371 * @param aboveThreshold
372 * the value of field 'aboveThreshold'.
374 public void setAboveThreshold(final int aboveThreshold)
376 this._aboveThreshold = aboveThreshold;
377 this._has_aboveThreshold = true;
381 * Sets the value of field 'annotation'.
384 * the value of field 'annotation'.
386 public void setAnnotation(final java.lang.String annotation)
388 this._annotation = annotation;
392 * Sets the value of field 'colourScheme'.
394 * @param colourScheme
395 * the value of field 'colourScheme'.
397 public void setColourScheme(final java.lang.String colourScheme)
399 this._colourScheme = colourScheme;
403 * Sets the value of field 'maxColour'.
406 * the value of field 'maxColour'.
408 public void setMaxColour(final int maxColour)
410 this._maxColour = maxColour;
411 this._has_maxColour = true;
415 * Sets the value of field 'minColour'.
418 * the value of field 'minColour'.
420 public void setMinColour(final int minColour)
422 this._minColour = minColour;
423 this._has_minColour = true;
427 * Sets the value of field 'perSequence'.
430 * the value of field 'perSequence'.
432 public void setPerSequence(final boolean perSequence)
434 this._perSequence = perSequence;
435 this._has_perSequence = true;
439 * Sets the value of field 'predefinedColours'.
441 * @param predefinedColours
442 * the value of field 'predefinedColours'.
444 public void setPredefinedColours(final boolean predefinedColours)
446 this._predefinedColours = predefinedColours;
447 this._has_predefinedColours = true;
451 * Sets the value of field 'threshold'.
454 * the value of field 'threshold'.
456 public void setThreshold(final float threshold)
458 this._threshold = threshold;
459 this._has_threshold = true;
466 * @throws org.exolab.castor.xml.MarshalException
467 * if object is null or if any SAXException is thrown during
469 * @throws org.exolab.castor.xml.ValidationException
470 * if this object is an invalid instance according to the schema
471 * @return the unmarshaled
472 * jalview.schemabinding.version2.AnnotationColourScheme
474 public static jalview.schemabinding.version2.AnnotationColourScheme unmarshal(
475 final java.io.Reader reader)
476 throws org.exolab.castor.xml.MarshalException,
477 org.exolab.castor.xml.ValidationException
479 return (jalview.schemabinding.version2.AnnotationColourScheme) Unmarshaller
481 jalview.schemabinding.version2.AnnotationColourScheme.class,
488 * @throws org.exolab.castor.xml.ValidationException
489 * if this object is an invalid instance according to the schema
491 public void validate() throws org.exolab.castor.xml.ValidationException
493 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
494 validator.validate(this);