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 ThresholdLine.
20 * @version $Revision$ $Date$
22 public class ThresholdLine implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _label;
40 * keeps track of state for field: _value
42 private boolean _has_value;
50 * keeps track of state for field: _colour
52 private boolean _has_colour;
59 public ThresholdLine() {
70 public void deleteColour(
72 this._has_colour= false;
77 public void deleteValue(
79 this._has_value= false;
83 * Returns the value of field 'colour'.
85 * @return the value of field 'Colour'.
93 * Returns the value of field 'label'.
95 * @return the value of field 'Label'.
97 public java.lang.String getLabel(
103 * Returns the value of field 'value'.
105 * @return the value of field 'Value'.
107 public float getValue(
115 * @return true if at least one Colour has been added
117 public boolean hasColour(
119 return this._has_colour;
125 * @return true if at least one Value has been added
127 public boolean hasValue(
129 return this._has_value;
135 * @return true if this object is valid according to the schema
137 public boolean isValid(
141 } catch (org.exolab.castor.xml.ValidationException vex) {
151 * @throws org.exolab.castor.xml.MarshalException if object is
152 * null or if any SAXException is thrown during marshaling
153 * @throws org.exolab.castor.xml.ValidationException if this
154 * object is an invalid instance according to the schema
157 final java.io.Writer out)
158 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
159 Marshaller.marshal(this, out);
166 * @throws java.io.IOException if an IOException occurs during
168 * @throws org.exolab.castor.xml.ValidationException if this
169 * object is an invalid instance according to the schema
170 * @throws org.exolab.castor.xml.MarshalException if object is
171 * null or if any SAXException is thrown during marshaling
174 final org.xml.sax.ContentHandler handler)
175 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
176 Marshaller.marshal(this, handler);
180 * Sets the value of field 'colour'.
182 * @param colour the value of field 'colour'.
184 public void setColour(
186 this._colour = colour;
187 this._has_colour = true;
191 * Sets the value of field 'label'.
193 * @param label the value of field 'label'.
195 public void setLabel(
196 final java.lang.String label) {
201 * Sets the value of field 'value'.
203 * @param value the value of field 'value'.
205 public void setValue(
208 this._has_value = true;
215 * @throws org.exolab.castor.xml.MarshalException if object is
216 * null or if any SAXException is thrown during marshaling
217 * @throws org.exolab.castor.xml.ValidationException if this
218 * object is an invalid instance according to the schema
219 * @return the unmarshaled
220 * jalview.schemabinding.version2.ThresholdLine
222 public static jalview.schemabinding.version2.ThresholdLine unmarshal(
223 final java.io.Reader reader)
224 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
225 return (jalview.schemabinding.version2.ThresholdLine) Unmarshaller.unmarshal(jalview.schemabinding.version2.ThresholdLine.class, reader);
231 * @throws org.exolab.castor.xml.ValidationException if this
232 * object is an invalid instance according to the schema
234 public void validate(
236 throws org.exolab.castor.xml.ValidationException {
237 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
238 validator.validate(this);