2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</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.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
18 * Class UserColours.
\r
20 * @version $Revision$ $Date$
\r
22 public class UserColours implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _id;
\r
35 * Field _userColourScheme.
\r
37 private jalview.schemabinding.version2.UserColourScheme _userColourScheme;
\r
44 public UserColours() {
\r
54 * Returns the value of field 'id'.
\r
56 * @return the value of field 'Id'.
\r
58 public java.lang.String getId(
\r
64 * Returns the value of field 'userColourScheme'.
\r
66 * @return the value of field 'UserColourScheme'.
\r
68 public jalview.schemabinding.version2.UserColourScheme getUserColourScheme(
\r
70 return this._userColourScheme;
\r
76 * @return true if this object is valid according to the schema
\r
78 public boolean isValid(
\r
82 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
92 * @throws org.exolab.castor.xml.MarshalException if object is
\r
93 * null or if any SAXException is thrown during marshaling
\r
94 * @throws org.exolab.castor.xml.ValidationException if this
\r
95 * object is an invalid instance according to the schema
\r
97 public void marshal(
\r
98 final java.io.Writer out)
\r
99 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
100 Marshaller.marshal(this, out);
\r
107 * @throws java.io.IOException if an IOException occurs during
\r
109 * @throws org.exolab.castor.xml.ValidationException if this
\r
110 * object is an invalid instance according to the schema
\r
111 * @throws org.exolab.castor.xml.MarshalException if object is
\r
112 * null or if any SAXException is thrown during marshaling
\r
114 public void marshal(
\r
115 final org.xml.sax.ContentHandler handler)
\r
116 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
117 Marshaller.marshal(this, handler);
\r
121 * Sets the value of field 'id'.
\r
123 * @param id the value of field 'id'.
\r
126 final java.lang.String id) {
\r
131 * Sets the value of field 'userColourScheme'.
\r
133 * @param userColourScheme the value of field 'userColourScheme'
\r
135 public void setUserColourScheme(
\r
136 final jalview.schemabinding.version2.UserColourScheme userColourScheme) {
\r
137 this._userColourScheme = userColourScheme;
\r
141 * Method unmarshal.
\r
144 * @throws org.exolab.castor.xml.MarshalException if object is
\r
145 * null or if any SAXException is thrown during marshaling
\r
146 * @throws org.exolab.castor.xml.ValidationException if this
\r
147 * object is an invalid instance according to the schema
\r
148 * @return the unmarshaled
\r
149 * jalview.schemabinding.version2.UserColours
\r
151 public static jalview.schemabinding.version2.UserColours unmarshal(
\r
152 final java.io.Reader reader)
\r
153 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
154 return (jalview.schemabinding.version2.UserColours) Unmarshaller.unmarshal(jalview.schemabinding.version2.UserColours.class, reader);
\r
160 * @throws org.exolab.castor.xml.ValidationException if this
\r
161 * object is an invalid instance according to the schema
\r
163 public void validate(
\r
165 throws org.exolab.castor.xml.ValidationException {
\r
166 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
167 validator.validate(this);
\r