2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</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.*;
\r
17 * Class AnnotationColours.
\r
19 * @version $Revision$ $Date$
\r
21 public class AnnotationColours
\r
22 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
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
83 public AnnotationColours()
\r
86 } //-- jalview.schemabinding.version2.AnnotationColours()
\r
93 * Method deleteAboveThreshold
\r
96 public void deleteAboveThreshold()
\r
98 this._has_aboveThreshold = false;
\r
99 } //-- void deleteAboveThreshold()
\r
102 * Method deleteMaxColour
\r
105 public void deleteMaxColour()
\r
107 this._has_maxColour = false;
\r
108 } //-- void deleteMaxColour()
\r
111 * Method deleteMinColour
\r
114 public void deleteMinColour()
\r
116 this._has_minColour = false;
\r
117 } //-- void deleteMinColour()
\r
120 * Method deleteThreshold
\r
123 public void deleteThreshold()
\r
125 this._has_threshold = false;
\r
126 } //-- void deleteThreshold()
\r
129 * Returns the value of field 'aboveThreshold'.
\r
132 * @return the value of field 'aboveThreshold'.
\r
134 public int getAboveThreshold()
\r
136 return this._aboveThreshold;
\r
137 } //-- int getAboveThreshold()
\r
140 * Returns the value of field 'annotation'.
\r
143 * @return the value of field 'annotation'.
\r
145 public java.lang.String getAnnotation()
\r
147 return this._annotation;
\r
148 } //-- java.lang.String getAnnotation()
\r
151 * Returns the value of field 'colourScheme'.
\r
154 * @return the value of field 'colourScheme'.
\r
156 public java.lang.String getColourScheme()
\r
158 return this._colourScheme;
\r
159 } //-- java.lang.String getColourScheme()
\r
162 * Returns the value of field 'maxColour'.
\r
165 * @return the value of field 'maxColour'.
\r
167 public int getMaxColour()
\r
169 return this._maxColour;
\r
170 } //-- int getMaxColour()
\r
173 * Returns the value of field 'minColour'.
\r
176 * @return the value of field 'minColour'.
\r
178 public int getMinColour()
\r
180 return this._minColour;
\r
181 } //-- int getMinColour()
\r
184 * Returns the value of field 'threshold'.
\r
187 * @return the value of field 'threshold'.
\r
189 public float getThreshold()
\r
191 return this._threshold;
\r
192 } //-- float getThreshold()
\r
195 * Method hasAboveThreshold
\r
201 public boolean hasAboveThreshold()
\r
203 return this._has_aboveThreshold;
\r
204 } //-- boolean hasAboveThreshold()
\r
207 * Method hasMaxColour
\r
213 public boolean hasMaxColour()
\r
215 return this._has_maxColour;
\r
216 } //-- boolean hasMaxColour()
\r
219 * Method hasMinColour
\r
225 public boolean hasMinColour()
\r
227 return this._has_minColour;
\r
228 } //-- boolean hasMinColour()
\r
231 * Method hasThreshold
\r
237 public boolean hasThreshold()
\r
239 return this._has_threshold;
\r
240 } //-- boolean hasThreshold()
\r
249 public boolean isValid()
\r
255 catch (org.exolab.castor.xml.ValidationException vex)
\r
260 } //-- boolean isValid()
\r
269 public void marshal(java.io.Writer out)
\r
270 throws org.exolab.castor.xml.MarshalException,
\r
271 org.exolab.castor.xml.ValidationException
\r
274 Marshaller.marshal(this, out);
\r
275 } //-- void marshal(java.io.Writer)
\r
284 public void marshal(org.xml.sax.ContentHandler handler)
\r
285 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
286 org.exolab.castor.xml.ValidationException
\r
289 Marshaller.marshal(this, handler);
\r
290 } //-- void marshal(org.xml.sax.ContentHandler)
\r
293 * Sets the value of field 'aboveThreshold'.
\r
295 * @param aboveThreshold the value of field 'aboveThreshold'.
\r
297 public void setAboveThreshold(int aboveThreshold)
\r
299 this._aboveThreshold = aboveThreshold;
\r
300 this._has_aboveThreshold = true;
\r
301 } //-- void setAboveThreshold(int)
\r
304 * Sets the value of field 'annotation'.
\r
306 * @param annotation the value of field 'annotation'.
\r
308 public void setAnnotation(java.lang.String annotation)
\r
310 this._annotation = annotation;
\r
311 } //-- void setAnnotation(java.lang.String)
\r
314 * Sets the value of field 'colourScheme'.
\r
316 * @param colourScheme the value of field 'colourScheme'.
\r
318 public void setColourScheme(java.lang.String colourScheme)
\r
320 this._colourScheme = colourScheme;
\r
321 } //-- void setColourScheme(java.lang.String)
\r
324 * Sets the value of field 'maxColour'.
\r
326 * @param maxColour the value of field 'maxColour'.
\r
328 public void setMaxColour(int maxColour)
\r
330 this._maxColour = maxColour;
\r
331 this._has_maxColour = true;
\r
332 } //-- void setMaxColour(int)
\r
335 * Sets the value of field 'minColour'.
\r
337 * @param minColour the value of field 'minColour'.
\r
339 public void setMinColour(int minColour)
\r
341 this._minColour = minColour;
\r
342 this._has_minColour = true;
\r
343 } //-- void setMinColour(int)
\r
346 * Sets the value of field 'threshold'.
\r
348 * @param threshold the value of field 'threshold'.
\r
350 public void setThreshold(float threshold)
\r
352 this._threshold = threshold;
\r
353 this._has_threshold = true;
\r
354 } //-- void setThreshold(float)
\r
364 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
365 throws org.exolab.castor.xml.MarshalException,
\r
366 org.exolab.castor.xml.ValidationException
\r
368 return (jalview.schemabinding.version2.AnnotationColours) Unmarshaller.
\r
369 unmarshal(jalview.schemabinding.version2.AnnotationColours.class,
\r
371 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
377 public void validate()
\r
378 throws org.exolab.castor.xml.ValidationException
\r
380 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
382 validator.validate(this);
\r
383 } //-- void validate()
\r