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
18 * Class AnnotationColours.
\r
20 * @version $Revision$ $Date$
\r
22 public class AnnotationColours implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
30 * Field _aboveThreshold.
\r
32 private int _aboveThreshold;
\r
35 * keeps track of state for field: _aboveThreshold
\r
37 private boolean _has_aboveThreshold;
\r
40 * Field _annotation.
\r
42 private java.lang.String _annotation;
\r
47 private int _minColour;
\r
50 * keeps track of state for field: _minColour
\r
52 private boolean _has_minColour;
\r
57 private int _maxColour;
\r
60 * keeps track of state for field: _maxColour
\r
62 private boolean _has_maxColour;
\r
65 * Field _colourScheme.
\r
67 private java.lang.String _colourScheme;
\r
72 private float _threshold;
\r
75 * keeps track of state for field: _threshold
\r
77 private boolean _has_threshold;
\r
84 public AnnotationColours() {
\r
95 public void deleteAboveThreshold(
\r
97 this._has_aboveThreshold= false;
\r
102 public void deleteMaxColour(
\r
104 this._has_maxColour= false;
\r
109 public void deleteMinColour(
\r
111 this._has_minColour= false;
\r
116 public void deleteThreshold(
\r
118 this._has_threshold= false;
\r
122 * Returns the value of field 'aboveThreshold'.
\r
124 * @return the value of field 'AboveThreshold'.
\r
126 public int getAboveThreshold(
\r
128 return this._aboveThreshold;
\r
132 * Returns the value of field 'annotation'.
\r
134 * @return the value of field 'Annotation'.
\r
136 public java.lang.String getAnnotation(
\r
138 return this._annotation;
\r
142 * Returns the value of field 'colourScheme'.
\r
144 * @return the value of field 'ColourScheme'.
\r
146 public java.lang.String getColourScheme(
\r
148 return this._colourScheme;
\r
152 * Returns the value of field 'maxColour'.
\r
154 * @return the value of field 'MaxColour'.
\r
156 public int getMaxColour(
\r
158 return this._maxColour;
\r
162 * Returns the value of field 'minColour'.
\r
164 * @return the value of field 'MinColour'.
\r
166 public int getMinColour(
\r
168 return this._minColour;
\r
172 * Returns the value of field 'threshold'.
\r
174 * @return the value of field 'Threshold'.
\r
176 public float getThreshold(
\r
178 return this._threshold;
\r
182 * Method hasAboveThreshold.
\r
184 * @return true if at least one AboveThreshold has been added
\r
186 public boolean hasAboveThreshold(
\r
188 return this._has_aboveThreshold;
\r
192 * Method hasMaxColour.
\r
194 * @return true if at least one MaxColour has been added
\r
196 public boolean hasMaxColour(
\r
198 return this._has_maxColour;
\r
202 * Method hasMinColour.
\r
204 * @return true if at least one MinColour has been added
\r
206 public boolean hasMinColour(
\r
208 return this._has_minColour;
\r
212 * Method hasThreshold.
\r
214 * @return true if at least one Threshold has been added
\r
216 public boolean hasThreshold(
\r
218 return this._has_threshold;
\r
224 * @return true if this object is valid according to the schema
\r
226 public boolean isValid(
\r
230 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
240 * @throws org.exolab.castor.xml.MarshalException if object is
\r
241 * null or if any SAXException is thrown during marshaling
\r
242 * @throws org.exolab.castor.xml.ValidationException if this
\r
243 * object is an invalid instance according to the schema
\r
245 public void marshal(
\r
246 final java.io.Writer out)
\r
247 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
248 Marshaller.marshal(this, out);
\r
255 * @throws java.io.IOException if an IOException occurs during
\r
257 * @throws org.exolab.castor.xml.ValidationException if this
\r
258 * object is an invalid instance according to the schema
\r
259 * @throws org.exolab.castor.xml.MarshalException if object is
\r
260 * null or if any SAXException is thrown during marshaling
\r
262 public void marshal(
\r
263 final org.xml.sax.ContentHandler handler)
\r
264 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
265 Marshaller.marshal(this, handler);
\r
269 * Sets the value of field 'aboveThreshold'.
\r
271 * @param aboveThreshold the value of field 'aboveThreshold'.
\r
273 public void setAboveThreshold(
\r
274 final int aboveThreshold) {
\r
275 this._aboveThreshold = aboveThreshold;
\r
276 this._has_aboveThreshold = true;
\r
280 * Sets the value of field 'annotation'.
\r
282 * @param annotation the value of field 'annotation'.
\r
284 public void setAnnotation(
\r
285 final java.lang.String annotation) {
\r
286 this._annotation = annotation;
\r
290 * Sets the value of field 'colourScheme'.
\r
292 * @param colourScheme the value of field 'colourScheme'.
\r
294 public void setColourScheme(
\r
295 final java.lang.String colourScheme) {
\r
296 this._colourScheme = colourScheme;
\r
300 * Sets the value of field 'maxColour'.
\r
302 * @param maxColour the value of field 'maxColour'.
\r
304 public void setMaxColour(
\r
305 final int maxColour) {
\r
306 this._maxColour = maxColour;
\r
307 this._has_maxColour = true;
\r
311 * Sets the value of field 'minColour'.
\r
313 * @param minColour the value of field 'minColour'.
\r
315 public void setMinColour(
\r
316 final int minColour) {
\r
317 this._minColour = minColour;
\r
318 this._has_minColour = true;
\r
322 * Sets the value of field 'threshold'.
\r
324 * @param threshold the value of field 'threshold'.
\r
326 public void setThreshold(
\r
327 final float threshold) {
\r
328 this._threshold = threshold;
\r
329 this._has_threshold = true;
\r
333 * Method unmarshal.
\r
336 * @throws org.exolab.castor.xml.MarshalException if object is
\r
337 * null or if any SAXException is thrown during marshaling
\r
338 * @throws org.exolab.castor.xml.ValidationException if this
\r
339 * object is an invalid instance according to the schema
\r
340 * @return the unmarshaled
\r
341 * jalview.schemabinding.version2.AnnotationColours
\r
343 public static jalview.schemabinding.version2.AnnotationColours unmarshal(
\r
344 final java.io.Reader reader)
\r
345 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
346 return (jalview.schemabinding.version2.AnnotationColours) Unmarshaller.unmarshal(jalview.schemabinding.version2.AnnotationColours.class, reader);
\r
352 * @throws org.exolab.castor.xml.ValidationException if this
\r
353 * object is an invalid instance according to the schema
\r
355 public void validate(
\r
357 throws org.exolab.castor.xml.ValidationException {
\r
358 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
359 validator.validate(this);
\r