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.binding;
\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
68 } //-- jalview.binding.Setting()
\r
76 * Method deleteColour
\r
79 public void deleteColour()
\r
81 this._has_colour= false;
\r
82 } //-- void deleteColour()
\r
85 * Method deleteDisplay
\r
88 public void deleteDisplay()
\r
90 this._has_display= false;
\r
91 } //-- void deleteDisplay()
\r
94 * Returns the value of field 'colour'.
\r
97 * @return the value of field 'colour'.
\r
99 public int getColour()
\r
101 return this._colour;
\r
102 } //-- int getColour()
\r
105 * Returns the value of field 'display'.
\r
108 * @return the value of field 'display'.
\r
110 public boolean getDisplay()
\r
112 return this._display;
\r
113 } //-- boolean getDisplay()
\r
116 * Returns the value of field 'type'.
\r
119 * @return the value of field 'type'.
\r
121 public java.lang.String getType()
\r
124 } //-- java.lang.String getType()
\r
133 public boolean hasColour()
\r
135 return this._has_colour;
\r
136 } //-- boolean hasColour()
\r
139 * Method hasDisplay
\r
145 public boolean hasDisplay()
\r
147 return this._has_display;
\r
148 } //-- boolean hasDisplay()
\r
157 public boolean isValid()
\r
162 catch (org.exolab.castor.xml.ValidationException vex) {
\r
166 } //-- boolean isValid()
\r
175 public void marshal(java.io.Writer out)
\r
176 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
179 Marshaller.marshal(this, out);
\r
180 } //-- void marshal(java.io.Writer)
\r
189 public void marshal(org.xml.sax.ContentHandler handler)
\r
190 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
193 Marshaller.marshal(this, handler);
\r
194 } //-- void marshal(org.xml.sax.ContentHandler)
\r
197 * Sets the value of field 'colour'.
\r
199 * @param colour the value of field 'colour'.
\r
201 public void setColour(int colour)
\r
203 this._colour = colour;
\r
204 this._has_colour = true;
\r
205 } //-- void setColour(int)
\r
208 * Sets the value of field 'display'.
\r
210 * @param display the value of field 'display'.
\r
212 public void setDisplay(boolean display)
\r
214 this._display = display;
\r
215 this._has_display = true;
\r
216 } //-- void setDisplay(boolean)
\r
219 * Sets the value of field 'type'.
\r
221 * @param type the value of field 'type'.
\r
223 public void setType(java.lang.String type)
\r
226 } //-- void setType(java.lang.String)
\r
236 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
237 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
239 return (jalview.binding.Setting) Unmarshaller.unmarshal(jalview.binding.Setting.class, reader);
\r
240 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
246 public void validate()
\r
247 throws org.exolab.castor.xml.ValidationException
\r
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
250 validator.validate(this);
\r
251 } //-- void validate()
\r