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
20 * @version $Revision$ $Date$
\r
22 public class Colour implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _name;
\r
37 private java.lang.String _RGB;
\r
54 * Returns the value of field 'name'.
\r
56 * @return the value of field 'Name'.
\r
58 public java.lang.String getName(
\r
64 * Returns the value of field 'RGB'.
\r
66 * @return the value of field 'RGB'.
\r
68 public java.lang.String getRGB(
\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 'name'.
\r
123 * @param name the value of field 'name'.
\r
125 public void setName(
\r
126 final java.lang.String name) {
\r
131 * Sets the value of field 'RGB'.
\r
133 * @param RGB the value of field 'RGB'.
\r
135 public void setRGB(
\r
136 final java.lang.String RGB) {
\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 jalview.schemabinding.version2.Colour
\r
150 public static jalview.schemabinding.version2.Colour unmarshal(
\r
151 final java.io.Reader reader)
\r
152 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
153 return (jalview.schemabinding.version2.Colour) Unmarshaller.unmarshal(jalview.schemabinding.version2.Colour.class, reader);
\r
159 * @throws org.exolab.castor.xml.ValidationException if this
\r
160 * object is an invalid instance according to the schema
\r
162 public void validate(
\r
164 throws org.exolab.castor.xml.ValidationException {
\r
165 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
166 validator.validate(this);
\r