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 java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
25 * Class AnnotationColours.
\r
27 * @version $Revision$ $Date$
\r
29 public class AnnotationColours implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
37 * Field _aboveThreshold
\r
39 private int _aboveThreshold;
\r
42 * keeps track of state for field: _aboveThreshold
\r
44 private boolean _has_aboveThreshold;
\r
49 private java.lang.String _annotation;
\r
54 private int _minColour;
\r
57 * keeps track of state for field: _minColour
\r
59 private boolean _has_minColour;
\r
64 private int _maxColour;
\r
67 * keeps track of state for field: _maxColour
\r
69 private boolean _has_maxColour;
\r
72 * Field _colourScheme
\r
74 private java.lang.String _colourScheme;
\r
79 private float _threshold;
\r
82 * keeps track of state for field: _threshold
\r
84 private boolean _has_threshold;
\r
91 public AnnotationColours() {
\r
93 } //-- jalview.schemabinding.version2.AnnotationColours()
\r
101 * Method deleteAboveThreshold
\r
104 public void deleteAboveThreshold()
\r
106 this._has_aboveThreshold= false;
\r
107 } //-- void deleteAboveThreshold()
\r
110 * Method deleteMaxColour
\r
113 public void deleteMaxColour()
\r
115 this._has_maxColour= false;
\r
116 } //-- void deleteMaxColour()
\r
119 * Method deleteMinColour
\r
122 public void deleteMinColour()
\r
124 this._has_minColour= false;
\r
125 } //-- void deleteMinColour()
\r
128 * Method deleteThreshold
\r
131 public void deleteThreshold()
\r
133 this._has_threshold= false;
\r
134 } //-- void deleteThreshold()
\r
137 * Returns the value of field 'aboveThreshold'.
\r
140 * @return the value of field 'aboveThreshold'.
\r
142 public int getAboveThreshold()
\r
144 return this._aboveThreshold;
\r
145 } //-- int getAboveThreshold()
\r
148 * Returns the value of field 'annotation'.
\r
151 * @return the value of field 'annotation'.
\r
153 public java.lang.String getAnnotation()
\r
155 return this._annotation;
\r
156 } //-- java.lang.String getAnnotation()
\r
159 * Returns the value of field 'colourScheme'.
\r
162 * @return the value of field 'colourScheme'.
\r
164 public java.lang.String getColourScheme()
\r
166 return this._colourScheme;
\r
167 } //-- java.lang.String getColourScheme()
\r
170 * Returns the value of field 'maxColour'.
\r
173 * @return the value of field 'maxColour'.
\r
175 public int getMaxColour()
\r
177 return this._maxColour;
\r
178 } //-- int getMaxColour()
\r
181 * Returns the value of field 'minColour'.
\r
184 * @return the value of field 'minColour'.
\r
186 public int getMinColour()
\r
188 return this._minColour;
\r
189 } //-- int getMinColour()
\r
192 * Returns the value of field 'threshold'.
\r
195 * @return the value of field 'threshold'.
\r
197 public float getThreshold()
\r
199 return this._threshold;
\r
200 } //-- float getThreshold()
\r
203 * Method hasAboveThreshold
\r
209 public boolean hasAboveThreshold()
\r
211 return this._has_aboveThreshold;
\r
212 } //-- boolean hasAboveThreshold()
\r
215 * Method hasMaxColour
\r
221 public boolean hasMaxColour()
\r
223 return this._has_maxColour;
\r
224 } //-- boolean hasMaxColour()
\r
227 * Method hasMinColour
\r
233 public boolean hasMinColour()
\r
235 return this._has_minColour;
\r
236 } //-- boolean hasMinColour()
\r
239 * Method hasThreshold
\r
245 public boolean hasThreshold()
\r
247 return this._has_threshold;
\r
248 } //-- boolean hasThreshold()
\r
257 public boolean isValid()
\r
262 catch (org.exolab.castor.xml.ValidationException vex) {
\r
266 } //-- boolean isValid()
\r
275 public void marshal(java.io.Writer out)
\r
276 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
279 Marshaller.marshal(this, out);
\r
280 } //-- void marshal(java.io.Writer)
\r
289 public void marshal(org.xml.sax.ContentHandler handler)
\r
290 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
293 Marshaller.marshal(this, handler);
\r
294 } //-- void marshal(org.xml.sax.ContentHandler)
\r
297 * Sets the value of field 'aboveThreshold'.
\r
299 * @param aboveThreshold the value of field 'aboveThreshold'.
\r
301 public void setAboveThreshold(int aboveThreshold)
\r
303 this._aboveThreshold = aboveThreshold;
\r
304 this._has_aboveThreshold = true;
\r
305 } //-- void setAboveThreshold(int)
\r
308 * Sets the value of field 'annotation'.
\r
310 * @param annotation the value of field 'annotation'.
\r
312 public void setAnnotation(java.lang.String annotation)
\r
314 this._annotation = annotation;
\r
315 } //-- void setAnnotation(java.lang.String)
\r
318 * Sets the value of field 'colourScheme'.
\r
320 * @param colourScheme the value of field 'colourScheme'.
\r
322 public void setColourScheme(java.lang.String colourScheme)
\r
324 this._colourScheme = colourScheme;
\r
325 } //-- void setColourScheme(java.lang.String)
\r
328 * Sets the value of field 'maxColour'.
\r
330 * @param maxColour the value of field 'maxColour'.
\r
332 public void setMaxColour(int maxColour)
\r
334 this._maxColour = maxColour;
\r
335 this._has_maxColour = true;
\r
336 } //-- void setMaxColour(int)
\r
339 * Sets the value of field 'minColour'.
\r
341 * @param minColour the value of field 'minColour'.
\r
343 public void setMinColour(int minColour)
\r
345 this._minColour = minColour;
\r
346 this._has_minColour = true;
\r
347 } //-- void setMinColour(int)
\r
350 * Sets the value of field 'threshold'.
\r
352 * @param threshold the value of field 'threshold'.
\r
354 public void setThreshold(float threshold)
\r
356 this._threshold = threshold;
\r
357 this._has_threshold = true;
\r
358 } //-- void setThreshold(float)
\r
368 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
369 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
371 return (jalview.schemabinding.version2.AnnotationColours) Unmarshaller.unmarshal(jalview.schemabinding.version2.AnnotationColours.class, reader);
\r
372 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
378 public void validate()
\r
379 throws org.exolab.castor.xml.ValidationException
\r
381 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
382 validator.validate(this);
\r
383 } //-- void validate()
\r