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 AnnotationColours.
20 * @version $Revision$ $Date$
22 public class AnnotationColours 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;
83 public AnnotationColours()
94 public void deleteAboveThreshold()
96 this._has_aboveThreshold = false;
101 public void deleteMaxColour()
103 this._has_maxColour = false;
108 public void deleteMinColour()
110 this._has_minColour = false;
115 public void deleteThreshold()
117 this._has_threshold = false;
121 * Returns the value of field 'aboveThreshold'.
123 * @return the value of field 'AboveThreshold'.
125 public int getAboveThreshold()
127 return this._aboveThreshold;
131 * Returns the value of field 'annotation'.
133 * @return the value of field 'Annotation'.
135 public java.lang.String getAnnotation()
137 return this._annotation;
141 * Returns the value of field 'colourScheme'.
143 * @return the value of field 'ColourScheme'.
145 public java.lang.String getColourScheme()
147 return this._colourScheme;
151 * Returns the value of field 'maxColour'.
153 * @return the value of field 'MaxColour'.
155 public int getMaxColour()
157 return this._maxColour;
161 * Returns the value of field 'minColour'.
163 * @return the value of field 'MinColour'.
165 public int getMinColour()
167 return this._minColour;
171 * Returns the value of field 'threshold'.
173 * @return the value of field 'Threshold'.
175 public float getThreshold()
177 return this._threshold;
181 * Method hasAboveThreshold.
183 * @return true if at least one AboveThreshold has been added
185 public boolean hasAboveThreshold()
187 return this._has_aboveThreshold;
191 * Method hasMaxColour.
193 * @return true if at least one MaxColour has been added
195 public boolean hasMaxColour()
197 return this._has_maxColour;
201 * Method hasMinColour.
203 * @return true if at least one MinColour has been added
205 public boolean hasMinColour()
207 return this._has_minColour;
211 * Method hasThreshold.
213 * @return true if at least one Threshold has been added
215 public boolean hasThreshold()
217 return this._has_threshold;
223 * @return true if this object is valid according to the schema
225 public boolean isValid()
230 } catch (org.exolab.castor.xml.ValidationException vex)
241 * @throws org.exolab.castor.xml.MarshalException
242 * if object is null or if any SAXException is thrown during
244 * @throws org.exolab.castor.xml.ValidationException
245 * if this object is an invalid instance according to the schema
247 public void marshal(final java.io.Writer out)
248 throws org.exolab.castor.xml.MarshalException,
249 org.exolab.castor.xml.ValidationException
251 Marshaller.marshal(this, out);
258 * @throws java.io.IOException
259 * if an IOException occurs during marshaling
260 * @throws org.exolab.castor.xml.ValidationException
261 * if this object is an invalid instance according to the schema
262 * @throws org.exolab.castor.xml.MarshalException
263 * if object is null or if any SAXException is thrown during
266 public void marshal(final org.xml.sax.ContentHandler handler)
267 throws java.io.IOException,
268 org.exolab.castor.xml.MarshalException,
269 org.exolab.castor.xml.ValidationException
271 Marshaller.marshal(this, handler);
275 * Sets the value of field 'aboveThreshold'.
277 * @param aboveThreshold
278 * the value of field 'aboveThreshold'.
280 public void setAboveThreshold(final int aboveThreshold)
282 this._aboveThreshold = aboveThreshold;
283 this._has_aboveThreshold = true;
287 * Sets the value of field 'annotation'.
290 * the value of field 'annotation'.
292 public void setAnnotation(final java.lang.String annotation)
294 this._annotation = annotation;
298 * Sets the value of field 'colourScheme'.
300 * @param colourScheme
301 * the value of field 'colourScheme'.
303 public void setColourScheme(final java.lang.String colourScheme)
305 this._colourScheme = colourScheme;
309 * Sets the value of field 'maxColour'.
312 * the value of field 'maxColour'.
314 public void setMaxColour(final int maxColour)
316 this._maxColour = maxColour;
317 this._has_maxColour = true;
321 * Sets the value of field 'minColour'.
324 * the value of field 'minColour'.
326 public void setMinColour(final int minColour)
328 this._minColour = minColour;
329 this._has_minColour = true;
333 * Sets the value of field 'threshold'.
336 * the value of field 'threshold'.
338 public void setThreshold(final float threshold)
340 this._threshold = threshold;
341 this._has_threshold = true;
348 * @throws org.exolab.castor.xml.MarshalException
349 * if object is null or if any SAXException is thrown during
351 * @throws org.exolab.castor.xml.ValidationException
352 * if this object is an invalid instance according to the schema
353 * @return the unmarshaled jalview.schemabinding.version2.AnnotationColours
355 public static jalview.schemabinding.version2.AnnotationColours unmarshal(
356 final java.io.Reader reader)
357 throws org.exolab.castor.xml.MarshalException,
358 org.exolab.castor.xml.ValidationException
360 return (jalview.schemabinding.version2.AnnotationColours) Unmarshaller
362 jalview.schemabinding.version2.AnnotationColours.class,
369 * @throws org.exolab.castor.xml.ValidationException
370 * if this object is an invalid instance according to the schema
372 public void validate() throws org.exolab.castor.xml.ValidationException
374 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
375 validator.validate(this);