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
27 * @version $Revision$ $Date$
\r
29 public class Setting implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _type;
\r
44 private int _colour;
\r
47 * keeps track of state for field: _colour
\r
49 private boolean _has_colour;
\r
54 private boolean _display;
\r
57 * keeps track of state for field: _display
\r
59 private boolean _has_display;
\r
64 private float _order;
\r
67 * keeps track of state for field: _order
\r
69 private boolean _has_order;
\r
78 } //-- jalview.schemabinding.version2.Setting()
\r
86 * Method deleteColour
\r
89 public void deleteColour()
\r
91 this._has_colour= false;
\r
92 } //-- void deleteColour()
\r
95 * Method deleteDisplay
\r
98 public void deleteDisplay()
\r
100 this._has_display= false;
\r
101 } //-- void deleteDisplay()
\r
104 * Method deleteOrder
\r
107 public void deleteOrder()
\r
109 this._has_order= false;
\r
110 } //-- void deleteOrder()
\r
113 * Returns the value of field 'colour'.
\r
116 * @return the value of field 'colour'.
\r
118 public int getColour()
\r
120 return this._colour;
\r
121 } //-- int getColour()
\r
124 * Returns the value of field 'display'.
\r
127 * @return the value of field 'display'.
\r
129 public boolean getDisplay()
\r
131 return this._display;
\r
132 } //-- boolean getDisplay()
\r
135 * Returns the value of field 'order'.
\r
138 * @return the value of field 'order'.
\r
140 public float getOrder()
\r
142 return this._order;
\r
143 } //-- float getOrder()
\r
146 * Returns the value of field 'type'.
\r
149 * @return the value of field 'type'.
\r
151 public java.lang.String getType()
\r
154 } //-- java.lang.String getType()
\r
163 public boolean hasColour()
\r
165 return this._has_colour;
\r
166 } //-- boolean hasColour()
\r
169 * Method hasDisplay
\r
175 public boolean hasDisplay()
\r
177 return this._has_display;
\r
178 } //-- boolean hasDisplay()
\r
187 public boolean hasOrder()
\r
189 return this._has_order;
\r
190 } //-- boolean hasOrder()
\r
199 public boolean isValid()
\r
204 catch (org.exolab.castor.xml.ValidationException vex) {
\r
208 } //-- boolean isValid()
\r
217 public void marshal(java.io.Writer out)
\r
218 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
221 Marshaller.marshal(this, out);
\r
222 } //-- void marshal(java.io.Writer)
\r
231 public void marshal(org.xml.sax.ContentHandler handler)
\r
232 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
235 Marshaller.marshal(this, handler);
\r
236 } //-- void marshal(org.xml.sax.ContentHandler)
\r
239 * Sets the value of field 'colour'.
\r
241 * @param colour the value of field 'colour'.
\r
243 public void setColour(int colour)
\r
245 this._colour = colour;
\r
246 this._has_colour = true;
\r
247 } //-- void setColour(int)
\r
250 * Sets the value of field 'display'.
\r
252 * @param display the value of field 'display'.
\r
254 public void setDisplay(boolean display)
\r
256 this._display = display;
\r
257 this._has_display = true;
\r
258 } //-- void setDisplay(boolean)
\r
261 * Sets the value of field 'order'.
\r
263 * @param order the value of field 'order'.
\r
265 public void setOrder(float order)
\r
267 this._order = order;
\r
268 this._has_order = true;
\r
269 } //-- void setOrder(float)
\r
272 * Sets the value of field 'type'.
\r
274 * @param type the value of field 'type'.
\r
276 public void setType(java.lang.String type)
\r
279 } //-- void setType(java.lang.String)
\r
289 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
290 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
292 return (jalview.schemabinding.version2.Setting) Unmarshaller.unmarshal(jalview.schemabinding.version2.Setting.class, reader);
\r
293 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
299 public void validate()
\r
300 throws org.exolab.castor.xml.ValidationException
\r
302 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
303 validator.validate(this);
\r
304 } //-- void validate()
\r