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 org.exolab.castor.xml.*;
\r
19 * @version $Revision$ $Date$
\r
21 public class UserColour
\r
22 implements java.io.Serializable
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
35 * keeps track of state for field: _id
\r
37 private boolean _has_id;
\r
40 * Field _userColourScheme
\r
42 private jalview.binding.UserColourScheme _userColourScheme;
\r
51 } //-- jalview.binding.UserColour()
\r
61 public void deleteId()
\r
63 this._has_id = false;
\r
64 } //-- void deleteId()
\r
67 * Returns the value of field 'id'.
\r
70 * @return the value of field 'id'.
\r
78 * Returns the value of field 'userColourScheme'.
\r
80 * @return UserColourScheme
\r
81 * @return the value of field 'userColourScheme'.
\r
83 public jalview.binding.UserColourScheme getUserColourScheme()
\r
85 return this._userColourScheme;
\r
86 } //-- jalview.binding.UserColourScheme getUserColourScheme()
\r
95 public boolean hasId()
\r
97 return this._has_id;
\r
98 } //-- boolean hasId()
\r
107 public boolean isValid()
\r
113 catch (org.exolab.castor.xml.ValidationException vex)
\r
118 } //-- boolean isValid()
\r
127 public void marshal(java.io.Writer out)
\r
128 throws org.exolab.castor.xml.MarshalException,
\r
129 org.exolab.castor.xml.ValidationException
\r
132 Marshaller.marshal(this, out);
\r
133 } //-- void marshal(java.io.Writer)
\r
142 public void marshal(org.xml.sax.ContentHandler handler)
\r
143 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
144 org.exolab.castor.xml.ValidationException
\r
147 Marshaller.marshal(this, handler);
\r
148 } //-- void marshal(org.xml.sax.ContentHandler)
\r
151 * Sets the value of field 'id'.
\r
153 * @param id the value of field 'id'.
\r
155 public void setId(int id)
\r
158 this._has_id = true;
\r
159 } //-- void setId(int)
\r
162 * Sets the value of field 'userColourScheme'.
\r
164 * @param userColourScheme the value of field 'userColourScheme'
\r
166 public void setUserColourScheme(jalview.binding.UserColourScheme
\r
169 this._userColourScheme = userColourScheme;
\r
170 } //-- void setUserColourScheme(jalview.binding.UserColourScheme)
\r
180 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
181 throws org.exolab.castor.xml.MarshalException,
\r
182 org.exolab.castor.xml.ValidationException
\r
184 return (jalview.binding.UserColour) Unmarshaller.unmarshal(jalview.binding.
\r
185 UserColour.class, reader);
\r
186 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
192 public void validate()
\r
193 throws org.exolab.castor.xml.ValidationException
\r
195 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
197 validator.validate(this);
\r
198 } //-- void validate()
\r