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;
58 public ThresholdLine()
69 public void deleteColour()
71 this._has_colour = false;
76 public void deleteValue()
78 this._has_value = false;
82 * Returns the value of field 'colour'.
84 * @return the value of field 'Colour'.
86 public int getColour()
92 * Returns the value of field 'label'.
94 * @return the value of field 'Label'.
96 public java.lang.String getLabel()
102 * Returns the value of field 'value'.
104 * @return the value of field 'Value'.
106 public float getValue()
114 * @return true if at least one Colour has been added
116 public boolean hasColour()
118 return this._has_colour;
124 * @return true if at least one Value has been added
126 public boolean hasValue()
128 return this._has_value;
134 * @return true if this object is valid according to the schema
136 public boolean isValid()
141 } catch (org.exolab.castor.xml.ValidationException vex)
152 * @throws org.exolab.castor.xml.MarshalException
153 * if object is null or if any SAXException is thrown during
155 * @throws org.exolab.castor.xml.ValidationException
156 * if this object is an invalid instance according to the schema
158 public void marshal(final java.io.Writer out)
159 throws org.exolab.castor.xml.MarshalException,
160 org.exolab.castor.xml.ValidationException
162 Marshaller.marshal(this, out);
169 * @throws java.io.IOException
170 * if an IOException occurs during marshaling
171 * @throws org.exolab.castor.xml.ValidationException
172 * if this object is an invalid instance according to the schema
173 * @throws org.exolab.castor.xml.MarshalException
174 * if object is null or if any SAXException is thrown during
177 public void marshal(final org.xml.sax.ContentHandler handler)
178 throws java.io.IOException,
179 org.exolab.castor.xml.MarshalException,
180 org.exolab.castor.xml.ValidationException
182 Marshaller.marshal(this, handler);
186 * Sets the value of field 'colour'.
189 * the value of field 'colour'.
191 public void setColour(final int colour)
193 this._colour = colour;
194 this._has_colour = true;
198 * Sets the value of field 'label'.
201 * the value of field 'label'.
203 public void setLabel(final java.lang.String label)
209 * Sets the value of field 'value'.
212 * the value of field 'value'.
214 public void setValue(final float value)
217 this._has_value = true;
224 * @throws org.exolab.castor.xml.MarshalException
225 * if object is null or if any SAXException is thrown during
227 * @throws org.exolab.castor.xml.ValidationException
228 * if this object is an invalid instance according to the schema
229 * @return the unmarshaled jalview.schemabinding.version2.ThresholdLine
231 public static jalview.schemabinding.version2.ThresholdLine unmarshal(
232 final java.io.Reader reader)
233 throws org.exolab.castor.xml.MarshalException,
234 org.exolab.castor.xml.ValidationException
236 return (jalview.schemabinding.version2.ThresholdLine) Unmarshaller
237 .unmarshal(jalview.schemabinding.version2.ThresholdLine.class,
244 * @throws org.exolab.castor.xml.ValidationException
245 * if this object is an invalid instance according to the schema
247 public void validate() throws org.exolab.castor.xml.ValidationException
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
250 validator.validate(this);