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 ThresholdLine.
\r
19 * @version $Revision$ $Date$
\r
21 public class ThresholdLine
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _label;
\r
37 private float _value;
\r
40 * keeps track of state for field: _value
\r
42 private boolean _has_value;
\r
47 private int _colour;
\r
50 * keeps track of state for field: _colour
\r
52 private boolean _has_colour;
\r
58 public ThresholdLine()
\r
61 } //-- jalview.schemabinding.version2.ThresholdLine()
\r
68 * Method deleteColour
\r
71 public void deleteColour()
\r
73 this._has_colour = false;
\r
74 } //-- void deleteColour()
\r
77 * Method deleteValue
\r
80 public void deleteValue()
\r
82 this._has_value = false;
\r
83 } //-- void deleteValue()
\r
86 * Returns the value of field 'colour'.
\r
89 * @return the value of field 'colour'.
\r
91 public int getColour()
\r
93 return this._colour;
\r
94 } //-- int getColour()
\r
97 * Returns the value of field 'label'.
\r
100 * @return the value of field 'label'.
\r
102 public java.lang.String getLabel()
\r
104 return this._label;
\r
105 } //-- java.lang.String getLabel()
\r
108 * Returns the value of field 'value'.
\r
111 * @return the value of field 'value'.
\r
113 public float getValue()
\r
115 return this._value;
\r
116 } //-- float getValue()
\r
125 public boolean hasColour()
\r
127 return this._has_colour;
\r
128 } //-- boolean hasColour()
\r
137 public boolean hasValue()
\r
139 return this._has_value;
\r
140 } //-- boolean hasValue()
\r
149 public boolean isValid()
\r
155 catch (org.exolab.castor.xml.ValidationException vex)
\r
160 } //-- boolean isValid()
\r
169 public void marshal(java.io.Writer out)
\r
170 throws org.exolab.castor.xml.MarshalException,
\r
171 org.exolab.castor.xml.ValidationException
\r
174 Marshaller.marshal(this, out);
\r
175 } //-- void marshal(java.io.Writer)
\r
184 public void marshal(org.xml.sax.ContentHandler handler)
\r
185 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
186 org.exolab.castor.xml.ValidationException
\r
189 Marshaller.marshal(this, handler);
\r
190 } //-- void marshal(org.xml.sax.ContentHandler)
\r
193 * Sets the value of field 'colour'.
\r
195 * @param colour the value of field 'colour'.
\r
197 public void setColour(int colour)
\r
199 this._colour = colour;
\r
200 this._has_colour = true;
\r
201 } //-- void setColour(int)
\r
204 * Sets the value of field 'label'.
\r
206 * @param label the value of field 'label'.
\r
208 public void setLabel(java.lang.String label)
\r
210 this._label = label;
\r
211 } //-- void setLabel(java.lang.String)
\r
214 * Sets the value of field 'value'.
\r
216 * @param value the value of field 'value'.
\r
218 public void setValue(float value)
\r
220 this._value = value;
\r
221 this._has_value = true;
\r
222 } //-- void setValue(float)
\r
232 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
233 throws org.exolab.castor.xml.MarshalException,
\r
234 org.exolab.castor.xml.ValidationException
\r
236 return (jalview.schemabinding.version2.ThresholdLine) Unmarshaller.
\r
237 unmarshal(jalview.schemabinding.version2.ThresholdLine.class, reader);
\r
238 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
244 public void validate()
\r
245 throws org.exolab.castor.xml.ValidationException
\r
247 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
249 validator.validate(this);
\r
250 } //-- void validate()
\r