2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Setting implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _type;
40 * keeps track of state for field: _colour
42 private boolean _has_colour;
47 private boolean _display;
50 * keeps track of state for field: _display
52 private boolean _has_display;
70 public void deleteColour(
72 this._has_colour= false;
77 public void deleteDisplay(
79 this._has_display= false;
83 * Returns the value of field 'colour'.
85 * @return the value of field 'Colour'.
93 * Returns the value of field 'display'.
95 * @return the value of field 'Display'.
97 public boolean getDisplay(
103 * Returns the value of field 'type'.
105 * @return the value of field 'Type'.
107 public java.lang.String getType(
115 * @return true if at least one Colour has been added
117 public boolean hasColour(
119 return this._has_colour;
125 * @return true if at least one Display has been added
127 public boolean hasDisplay(
129 return this._has_display;
133 * Returns the value of field 'display'.
135 * @return the value of field 'Display'.
137 public boolean isDisplay(
139 return this._display;
145 * @return true if this object is valid according to the schema
147 public boolean isValid(
151 } catch (org.exolab.castor.xml.ValidationException vex) {
161 * @throws org.exolab.castor.xml.MarshalException if object is
162 * null or if any SAXException is thrown during marshaling
163 * @throws org.exolab.castor.xml.ValidationException if this
164 * object is an invalid instance according to the schema
167 final java.io.Writer out)
168 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
169 Marshaller.marshal(this, out);
176 * @throws java.io.IOException if an IOException occurs during
178 * @throws org.exolab.castor.xml.ValidationException if this
179 * object is an invalid instance according to the schema
180 * @throws org.exolab.castor.xml.MarshalException if object is
181 * null or if any SAXException is thrown during marshaling
184 final org.xml.sax.ContentHandler handler)
185 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
186 Marshaller.marshal(this, handler);
190 * Sets the value of field 'colour'.
192 * @param colour the value of field 'colour'.
194 public void setColour(
196 this._colour = colour;
197 this._has_colour = true;
201 * Sets the value of field 'display'.
203 * @param display the value of field 'display'.
205 public void setDisplay(
206 final boolean display) {
207 this._display = display;
208 this._has_display = true;
212 * Sets the value of field 'type'.
214 * @param type the value of field 'type'.
217 final java.lang.String type) {
225 * @throws org.exolab.castor.xml.MarshalException if object is
226 * null or if any SAXException is thrown during marshaling
227 * @throws org.exolab.castor.xml.ValidationException if this
228 * object is an invalid instance according to the schema
229 * @return the unmarshaled jalview.binding.Setting
231 public static jalview.binding.Setting unmarshal(
232 final java.io.Reader reader)
233 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
234 return (jalview.binding.Setting) Unmarshaller.unmarshal(jalview.binding.Setting.class, reader);
240 * @throws org.exolab.castor.xml.ValidationException if this
241 * object is an invalid instance according to the schema
243 public void validate(
245 throws org.exolab.castor.xml.ValidationException {
246 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
247 validator.validate(this);