2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</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.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class Setting implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _type;
\r
37 private int _colour;
\r
40 * keeps track of state for field: _colour
\r
42 private boolean _has_colour;
\r
47 private boolean _display;
\r
50 * keeps track of state for field: _display
\r
52 private boolean _has_display;
\r
57 private float _order;
\r
60 * keeps track of state for field: _order
\r
62 private boolean _has_order;
\r
80 public void deleteColour(
\r
82 this._has_colour= false;
\r
87 public void deleteDisplay(
\r
89 this._has_display= false;
\r
94 public void deleteOrder(
\r
96 this._has_order= false;
\r
100 * Returns the value of field 'colour'.
\r
102 * @return the value of field 'Colour'.
\r
104 public int getColour(
\r
106 return this._colour;
\r
110 * Returns the value of field 'display'.
\r
112 * @return the value of field 'Display'.
\r
114 public boolean getDisplay(
\r
116 return this._display;
\r
120 * Returns the value of field 'order'.
\r
122 * @return the value of field 'Order'.
\r
124 public float getOrder(
\r
126 return this._order;
\r
130 * Returns the value of field 'type'.
\r
132 * @return the value of field 'Type'.
\r
134 public java.lang.String getType(
\r
140 * Method hasColour.
\r
142 * @return true if at least one Colour has been added
\r
144 public boolean hasColour(
\r
146 return this._has_colour;
\r
150 * Method hasDisplay.
\r
152 * @return true if at least one Display has been added
\r
154 public boolean hasDisplay(
\r
156 return this._has_display;
\r
162 * @return true if at least one Order has been added
\r
164 public boolean hasOrder(
\r
166 return this._has_order;
\r
170 * Returns the value of field 'display'.
\r
172 * @return the value of field 'Display'.
\r
174 public boolean isDisplay(
\r
176 return this._display;
\r
182 * @return true if this object is valid according to the schema
\r
184 public boolean isValid(
\r
188 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
198 * @throws org.exolab.castor.xml.MarshalException if object is
\r
199 * null or if any SAXException is thrown during marshaling
\r
200 * @throws org.exolab.castor.xml.ValidationException if this
\r
201 * object is an invalid instance according to the schema
\r
203 public void marshal(
\r
204 final java.io.Writer out)
\r
205 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
206 Marshaller.marshal(this, out);
\r
213 * @throws java.io.IOException if an IOException occurs during
\r
215 * @throws org.exolab.castor.xml.ValidationException if this
\r
216 * object is an invalid instance according to the schema
\r
217 * @throws org.exolab.castor.xml.MarshalException if object is
\r
218 * null or if any SAXException is thrown during marshaling
\r
220 public void marshal(
\r
221 final org.xml.sax.ContentHandler handler)
\r
222 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
223 Marshaller.marshal(this, handler);
\r
227 * Sets the value of field 'colour'.
\r
229 * @param colour the value of field 'colour'.
\r
231 public void setColour(
\r
232 final int colour) {
\r
233 this._colour = colour;
\r
234 this._has_colour = true;
\r
238 * Sets the value of field 'display'.
\r
240 * @param display the value of field 'display'.
\r
242 public void setDisplay(
\r
243 final boolean display) {
\r
244 this._display = display;
\r
245 this._has_display = true;
\r
249 * Sets the value of field 'order'.
\r
251 * @param order the value of field 'order'.
\r
253 public void setOrder(
\r
254 final float order) {
\r
255 this._order = order;
\r
256 this._has_order = true;
\r
260 * Sets the value of field 'type'.
\r
262 * @param type the value of field 'type'.
\r
264 public void setType(
\r
265 final java.lang.String type) {
\r
270 * Method unmarshal.
\r
273 * @throws org.exolab.castor.xml.MarshalException if object is
\r
274 * null or if any SAXException is thrown during marshaling
\r
275 * @throws org.exolab.castor.xml.ValidationException if this
\r
276 * object is an invalid instance according to the schema
\r
277 * @return the unmarshaled jalview.schemabinding.version2.Settin
\r
279 public static jalview.schemabinding.version2.Setting unmarshal(
\r
280 final java.io.Reader reader)
\r
281 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
282 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
\r
288 * @throws org.exolab.castor.xml.ValidationException if this
\r
289 * object is an invalid instance according to the schema
\r
291 public void validate(
\r
293 throws org.exolab.castor.xml.ValidationException {
\r
294 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
295 validator.validate(this);
\r