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 UserColour implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
42 * keeps track of state for field: _id
\r
44 private boolean _has_id;
\r
47 * Field _userColourScheme
\r
49 private jalview.binding.UserColourScheme _userColourScheme;
\r
56 public UserColour() {
\r
58 } //-- jalview.binding.UserColour()
\r
69 public void deleteId()
\r
71 this._has_id= false;
\r
72 } //-- void deleteId()
\r
75 * Returns the value of field 'id'.
\r
78 * @return the value of field 'id'.
\r
86 * Returns the value of field 'userColourScheme'.
\r
88 * @return UserColourScheme
\r
89 * @return the value of field 'userColourScheme'.
\r
91 public jalview.binding.UserColourScheme getUserColourScheme()
\r
93 return this._userColourScheme;
\r
94 } //-- jalview.binding.UserColourScheme getUserColourScheme()
\r
103 public boolean hasId()
\r
105 return this._has_id;
\r
106 } //-- boolean hasId()
\r
115 public boolean isValid()
\r
120 catch (org.exolab.castor.xml.ValidationException vex) {
\r
124 } //-- boolean isValid()
\r
133 public void marshal(java.io.Writer out)
\r
134 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
137 Marshaller.marshal(this, out);
\r
138 } //-- void marshal(java.io.Writer)
\r
147 public void marshal(org.xml.sax.ContentHandler handler)
\r
148 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
151 Marshaller.marshal(this, handler);
\r
152 } //-- void marshal(org.xml.sax.ContentHandler)
\r
155 * Sets the value of field 'id'.
\r
157 * @param id the value of field 'id'.
\r
159 public void setId(int id)
\r
162 this._has_id = true;
\r
163 } //-- void setId(int)
\r
166 * Sets the value of field 'userColourScheme'.
\r
168 * @param userColourScheme the value of field 'userColourScheme'
\r
170 public void setUserColourScheme(jalview.binding.UserColourScheme userColourScheme)
\r
172 this._userColourScheme = userColourScheme;
\r
173 } //-- void setUserColourScheme(jalview.binding.UserColourScheme)
\r
183 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
184 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
186 return (jalview.binding.UserColour) Unmarshaller.unmarshal(jalview.binding.UserColour.class, reader);
\r
187 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
193 public void validate()
\r
194 throws org.exolab.castor.xml.ValidationException
\r
196 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
197 validator.validate(this);
\r
198 } //-- void validate()
\r