Formatting
[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 0.9.6</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.*;\r
15 \r
16 /**\r
17  * Class Colour.\r
18  *\r
19  * @version $Revision$ $Date$\r
20  */\r
21 public class Colour\r
22     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   //- Constructors -/\r
41   //----------------/\r
42 \r
43   public Colour()\r
44   {\r
45     super();\r
46   } //-- jalview.schemabinding.version2.Colour()\r
47 \r
48   //-----------/\r
49   //- Methods -/\r
50   //-----------/\r
51 \r
52   /**\r
53    * Returns the value of field 'name'.\r
54    *\r
55    * @return String\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   } //-- java.lang.String getName()\r
62 \r
63   /**\r
64    * Returns the value of field 'RGB'.\r
65    *\r
66    * @return String\r
67    * @return the value of field 'RGB'.\r
68    */\r
69   public java.lang.String getRGB()\r
70   {\r
71     return this._RGB;\r
72   } //-- java.lang.String getRGB()\r
73 \r
74   /**\r
75    * Method isValid\r
76    *\r
77    *\r
78    *\r
79    * @return boolean\r
80    */\r
81   public boolean isValid()\r
82   {\r
83     try\r
84     {\r
85       validate();\r
86     }\r
87     catch (org.exolab.castor.xml.ValidationException vex)\r
88     {\r
89       return false;\r
90     }\r
91     return true;\r
92   } //-- boolean isValid()\r
93 \r
94   /**\r
95    * Method marshal\r
96    *\r
97    *\r
98    *\r
99    * @param out\r
100    */\r
101   public void marshal(java.io.Writer out)\r
102       throws org.exolab.castor.xml.MarshalException,\r
103       org.exolab.castor.xml.ValidationException\r
104   {\r
105 \r
106     Marshaller.marshal(this, out);\r
107   } //-- void marshal(java.io.Writer)\r
108 \r
109   /**\r
110    * Method marshal\r
111    *\r
112    *\r
113    *\r
114    * @param handler\r
115    */\r
116   public void marshal(org.xml.sax.ContentHandler handler)\r
117       throws java.io.IOException, org.exolab.castor.xml.MarshalException,\r
118       org.exolab.castor.xml.ValidationException\r
119   {\r
120 \r
121     Marshaller.marshal(this, handler);\r
122   } //-- void marshal(org.xml.sax.ContentHandler)\r
123 \r
124   /**\r
125    * Sets the value of field 'name'.\r
126    *\r
127    * @param name the value of field 'name'.\r
128    */\r
129   public void setName(java.lang.String name)\r
130   {\r
131     this._name = name;\r
132   } //-- void setName(java.lang.String)\r
133 \r
134   /**\r
135    * Sets the value of field 'RGB'.\r
136    *\r
137    * @param RGB the value of field 'RGB'.\r
138    */\r
139   public void setRGB(java.lang.String RGB)\r
140   {\r
141     this._RGB = RGB;\r
142   } //-- void setRGB(java.lang.String)\r
143 \r
144   /**\r
145    * Method unmarshal\r
146    *\r
147    *\r
148    *\r
149    * @param reader\r
150    * @return Object\r
151    */\r
152   public static java.lang.Object unmarshal(java.io.Reader reader)\r
153       throws org.exolab.castor.xml.MarshalException,\r
154       org.exolab.castor.xml.ValidationException\r
155   {\r
156     return (jalview.schemabinding.version2.Colour) Unmarshaller.unmarshal(\r
157         jalview.schemabinding.version2.Colour.class, reader);\r
158   } //-- java.lang.Object unmarshal(java.io.Reader)\r
159 \r
160   /**\r
161    * Method validate\r
162    *\r
163    */\r
164   public void validate()\r
165       throws org.exolab.castor.xml.ValidationException\r
166   {\r
167     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.\r
168         Validator();\r
169     validator.validate(this);\r
170   } //-- void validate()\r
171 \r
172 }\r