jalview XML schema update for 2.4.1 (or 2.5?) introducing IDs for views and treepanel...
[jalview.git] / src / jalview / schemabinding / version2 / Colour.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.schemabinding.version2;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \r
14 import org.exolab.castor.xml.Marshaller;\r
15 import org.exolab.castor.xml.Unmarshaller;\r
16 \r
17 /**\r
18  * Class Colour.\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class Colour implements java.io.Serializable {\r
23 \r
24 \r
25       //--------------------------/\r
26      //- Class/Member Variables -/\r
27     //--------------------------/\r
28 \r
29     /**\r
30      * Field _name.\r
31      */\r
32     private java.lang.String _name;\r
33 \r
34     /**\r
35      * Field _RGB.\r
36      */\r
37     private java.lang.String _RGB;\r
38 \r
39 \r
40       //----------------/\r
41      //- Constructors -/\r
42     //----------------/\r
43 \r
44     public Colour() {\r
45         super();\r
46     }\r
47 \r
48 \r
49       //-----------/\r
50      //- Methods -/\r
51     //-----------/\r
52 \r
53     /**\r
54      * Returns the value of field 'name'.\r
55      * \r
56      * @return the value of field 'Name'.\r
57      */\r
58     public java.lang.String getName(\r
59     ) {\r
60         return this._name;\r
61     }\r
62 \r
63     /**\r
64      * Returns the value of field 'RGB'.\r
65      * \r
66      * @return the value of field 'RGB'.\r
67      */\r
68     public java.lang.String getRGB(\r
69     ) {\r
70         return this._RGB;\r
71     }\r
72 \r
73     /**\r
74      * Method isValid.\r
75      * \r
76      * @return true if this object is valid according to the schema\r
77      */\r
78     public boolean isValid(\r
79     ) {\r
80         try {\r
81             validate();\r
82         } catch (org.exolab.castor.xml.ValidationException vex) {\r
83             return false;\r
84         }\r
85         return true;\r
86     }\r
87 \r
88     /**\r
89      * \r
90      * \r
91      * @param out\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
96      */\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
101     }\r
102 \r
103     /**\r
104      * \r
105      * \r
106      * @param handler\r
107      * @throws java.io.IOException if an IOException occurs during\r
108      * marshaling\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
113      */\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
118     }\r
119 \r
120     /**\r
121      * Sets the value of field 'name'.\r
122      * \r
123      * @param name the value of field 'name'.\r
124      */\r
125     public void setName(\r
126             final java.lang.String name) {\r
127         this._name = name;\r
128     }\r
129 \r
130     /**\r
131      * Sets the value of field 'RGB'.\r
132      * \r
133      * @param RGB the value of field 'RGB'.\r
134      */\r
135     public void setRGB(\r
136             final java.lang.String RGB) {\r
137         this._RGB = RGB;\r
138     }\r
139 \r
140     /**\r
141      * Method unmarshal.\r
142      * \r
143      * @param reader\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
149      */\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
154     }\r
155 \r
156     /**\r
157      * \r
158      * \r
159      * @throws org.exolab.castor.xml.ValidationException if this\r
160      * object is an invalid instance according to the schema\r
161      */\r
162     public void validate(\r
163     )\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
167     }\r
168 \r
169 }\r