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
19 * @version $Revision$ $Date$
\r
21 public class Setting
\r
22 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
61 } //-- jalview.schemabinding.version2.Setting()
\r
68 * Method deleteColour
\r
71 public void deleteColour()
\r
73 this._has_colour = false;
\r
74 } //-- void deleteColour()
\r
77 * Method deleteDisplay
\r
80 public void deleteDisplay()
\r
82 this._has_display = false;
\r
83 } //-- void deleteDisplay()
\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 'display'.
\r
100 * @return the value of field 'display'.
\r
102 public boolean getDisplay()
\r
104 return this._display;
\r
105 } //-- boolean getDisplay()
\r
108 * Returns the value of field 'type'.
\r
111 * @return the value of field 'type'.
\r
113 public java.lang.String getType()
\r
116 } //-- java.lang.String getType()
\r
125 public boolean hasColour()
\r
127 return this._has_colour;
\r
128 } //-- boolean hasColour()
\r
131 * Method hasDisplay
\r
137 public boolean hasDisplay()
\r
139 return this._has_display;
\r
140 } //-- boolean hasDisplay()
\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 'display'.
\r
206 * @param display the value of field 'display'.
\r
208 public void setDisplay(boolean display)
\r
210 this._display = display;
\r
211 this._has_display = true;
\r
212 } //-- void setDisplay(boolean)
\r
215 * Sets the value of field 'type'.
\r
217 * @param type the value of field 'type'.
\r
219 public void setType(java.lang.String type)
\r
222 } //-- void setType(java.lang.String)
\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.Setting) Unmarshaller.unmarshal(
\r
237 jalview.schemabinding.version2.Setting.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