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 ThresholdLine.
\r
27 * @version $Revision$ $Date$
\r
29 public class ThresholdLine implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _label;
\r
44 private float _value;
\r
47 * keeps track of state for field: _value
\r
49 private boolean _has_value;
\r
54 private int _colour;
\r
57 * keeps track of state for field: _colour
\r
59 private boolean _has_colour;
\r
66 public ThresholdLine() {
\r
68 } //-- jalview.schemabinding.version2.ThresholdLine()
\r
76 * Method deleteColour
\r
79 public void deleteColour()
\r
81 this._has_colour= false;
\r
82 } //-- void deleteColour()
\r
85 * Method deleteValue
\r
88 public void deleteValue()
\r
90 this._has_value= false;
\r
91 } //-- void deleteValue()
\r
94 * Returns the value of field 'colour'.
\r
97 * @return the value of field 'colour'.
\r
99 public int getColour()
\r
101 return this._colour;
\r
102 } //-- int getColour()
\r
105 * Returns the value of field 'label'.
\r
108 * @return the value of field 'label'.
\r
110 public java.lang.String getLabel()
\r
112 return this._label;
\r
113 } //-- java.lang.String getLabel()
\r
116 * Returns the value of field 'value'.
\r
119 * @return the value of field 'value'.
\r
121 public float getValue()
\r
123 return this._value;
\r
124 } //-- float getValue()
\r
133 public boolean hasColour()
\r
135 return this._has_colour;
\r
136 } //-- boolean hasColour()
\r
145 public boolean hasValue()
\r
147 return this._has_value;
\r
148 } //-- boolean hasValue()
\r
157 public boolean isValid()
\r
162 catch (org.exolab.castor.xml.ValidationException vex) {
\r
166 } //-- boolean isValid()
\r
175 public void marshal(java.io.Writer out)
\r
176 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
179 Marshaller.marshal(this, out);
\r
180 } //-- void marshal(java.io.Writer)
\r
189 public void marshal(org.xml.sax.ContentHandler handler)
\r
190 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
193 Marshaller.marshal(this, handler);
\r
194 } //-- void marshal(org.xml.sax.ContentHandler)
\r
197 * Sets the value of field 'colour'.
\r
199 * @param colour the value of field 'colour'.
\r
201 public void setColour(int colour)
\r
203 this._colour = colour;
\r
204 this._has_colour = true;
\r
205 } //-- void setColour(int)
\r
208 * Sets the value of field 'label'.
\r
210 * @param label the value of field 'label'.
\r
212 public void setLabel(java.lang.String label)
\r
214 this._label = label;
\r
215 } //-- void setLabel(java.lang.String)
\r
218 * Sets the value of field 'value'.
\r
220 * @param value the value of field 'value'.
\r
222 public void setValue(float value)
\r
224 this._value = value;
\r
225 this._has_value = true;
\r
226 } //-- void setValue(float)
\r
236 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
237 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
239 return (jalview.schemabinding.version2.ThresholdLine) Unmarshaller.unmarshal(jalview.schemabinding.version2.ThresholdLine.class, reader);
\r
240 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
246 public void validate()
\r
247 throws org.exolab.castor.xml.ValidationException
\r
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
250 validator.validate(this);
\r
251 } //-- void validate()
\r