2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
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 UserColours implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _id;
35 * Field _userColourScheme.
37 private jalview.schemabinding.version2.UserColourScheme _userColourScheme;
53 * Returns the value of field 'id'.
55 * @return the value of field 'Id'.
57 public java.lang.String getId()
63 * Returns the value of field 'userColourScheme'.
65 * @return the value of field 'UserColourScheme'.
67 public jalview.schemabinding.version2.UserColourScheme getUserColourScheme()
69 return this._userColourScheme;
75 * @return true if this object is valid according to the schema
77 public boolean isValid()
82 } catch (org.exolab.castor.xml.ValidationException vex)
93 * @throws org.exolab.castor.xml.MarshalException
94 * if object is null or if any SAXException is thrown during
96 * @throws org.exolab.castor.xml.ValidationException
97 * if this object is an invalid instance according to the schema
99 public void marshal(final java.io.Writer out)
100 throws org.exolab.castor.xml.MarshalException,
101 org.exolab.castor.xml.ValidationException
103 Marshaller.marshal(this, out);
110 * @throws java.io.IOException
111 * if an IOException occurs during marshaling
112 * @throws org.exolab.castor.xml.ValidationException
113 * if this object is an invalid instance according to the schema
114 * @throws org.exolab.castor.xml.MarshalException
115 * if object is null or if any SAXException is thrown during
118 public void marshal(final org.xml.sax.ContentHandler handler)
119 throws java.io.IOException,
120 org.exolab.castor.xml.MarshalException,
121 org.exolab.castor.xml.ValidationException
123 Marshaller.marshal(this, handler);
127 * Sets the value of field 'id'.
130 * the value of field 'id'.
132 public void setId(final java.lang.String id)
138 * Sets the value of field 'userColourScheme'.
140 * @param userColourScheme
141 * the value of field 'userColourScheme'
143 public void setUserColourScheme(
144 final jalview.schemabinding.version2.UserColourScheme userColourScheme)
146 this._userColourScheme = userColourScheme;
153 * @throws org.exolab.castor.xml.MarshalException
154 * if object is null or if any SAXException is thrown during
156 * @throws org.exolab.castor.xml.ValidationException
157 * if this object is an invalid instance according to the schema
158 * @return the unmarshaled jalview.schemabinding.version2.UserColours
160 public static jalview.schemabinding.version2.UserColours unmarshal(
161 final java.io.Reader reader)
162 throws org.exolab.castor.xml.MarshalException,
163 org.exolab.castor.xml.ValidationException
165 return (jalview.schemabinding.version2.UserColours) Unmarshaller
166 .unmarshal(jalview.schemabinding.version2.UserColours.class,
173 * @throws org.exolab.castor.xml.ValidationException
174 * if this object is an invalid instance according to the schema
176 public void validate() throws org.exolab.castor.xml.ValidationException
178 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
179 validator.validate(this);