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
25 * Class UserColours.
\r
27 * @version $Revision$ $Date$
\r
29 public class UserColours implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _id;
\r
42 * Field _userColourScheme
\r
44 private jalview.binding.UserColourScheme _userColourScheme;
\r
51 public UserColours() {
\r
53 } //-- jalview.binding.UserColours()
\r
61 * Returns the value of field 'id'.
\r
64 * @return the value of field 'id'.
\r
66 public java.lang.String getId()
\r
69 } //-- java.lang.String getId()
\r
72 * Returns the value of field 'userColourScheme'.
\r
74 * @return UserColourScheme
\r
75 * @return the value of field 'userColourScheme'.
\r
77 public jalview.binding.UserColourScheme getUserColourScheme()
\r
79 return this._userColourScheme;
\r
80 } //-- jalview.binding.UserColourScheme getUserColourScheme()
\r
89 public boolean isValid()
\r
94 catch (org.exolab.castor.xml.ValidationException vex) {
\r
98 } //-- boolean isValid()
\r
107 public void marshal(java.io.Writer out)
\r
108 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
111 Marshaller.marshal(this, out);
\r
112 } //-- void marshal(java.io.Writer)
\r
121 public void marshal(org.xml.sax.ContentHandler handler)
\r
122 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
125 Marshaller.marshal(this, handler);
\r
126 } //-- void marshal(org.xml.sax.ContentHandler)
\r
129 * Sets the value of field 'id'.
\r
131 * @param id the value of field 'id'.
\r
133 public void setId(java.lang.String id)
\r
136 } //-- void setId(java.lang.String)
\r
139 * Sets the value of field 'userColourScheme'.
\r
141 * @param userColourScheme the value of field 'userColourScheme'
\r
143 public void setUserColourScheme(jalview.binding.UserColourScheme userColourScheme)
\r
145 this._userColourScheme = userColourScheme;
\r
146 } //-- void setUserColourScheme(jalview.binding.UserColourScheme)
\r
156 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
157 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
159 return (jalview.binding.UserColours) Unmarshaller.unmarshal(jalview.binding.UserColours.class, reader);
\r
160 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
166 public void validate()
\r
167 throws org.exolab.castor.xml.ValidationException
\r
169 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
170 validator.validate(this);
\r
171 } //-- void validate()
\r