modified castor-1.1 library and refactored uk.ac.vamsas
[jalview.git] / src / jalview / schemabinding / version2 / UserColourScheme.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 UserColourScheme.\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class UserColourScheme extends JalviewUserColours \r
23 implements java.io.Serializable\r
24 {\r
25 \r
26 \r
27       //----------------/\r
28      //- Constructors -/\r
29     //----------------/\r
30 \r
31     public UserColourScheme() {\r
32         super();\r
33     }\r
34 \r
35 \r
36       //-----------/\r
37      //- Methods -/\r
38     //-----------/\r
39 \r
40     /**\r
41      * Method isValid.\r
42      * \r
43      * @return true if this object is valid according to the schema\r
44      */\r
45     public boolean isValid(\r
46     ) {\r
47         try {\r
48             validate();\r
49         } catch (org.exolab.castor.xml.ValidationException vex) {\r
50             return false;\r
51         }\r
52         return true;\r
53     }\r
54 \r
55     /**\r
56      * \r
57      * \r
58      * @param out\r
59      * @throws org.exolab.castor.xml.MarshalException if object is\r
60      * null or if any SAXException is thrown during marshaling\r
61      * @throws org.exolab.castor.xml.ValidationException if this\r
62      * object is an invalid instance according to the schema\r
63      */\r
64     public void marshal(\r
65             final java.io.Writer out)\r
66     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
67         Marshaller.marshal(this, out);\r
68     }\r
69 \r
70     /**\r
71      * \r
72      * \r
73      * @param handler\r
74      * @throws java.io.IOException if an IOException occurs during\r
75      * marshaling\r
76      * @throws org.exolab.castor.xml.ValidationException if this\r
77      * object is an invalid instance according to the schema\r
78      * @throws org.exolab.castor.xml.MarshalException if object is\r
79      * null or if any SAXException is thrown during marshaling\r
80      */\r
81     public void marshal(\r
82             final org.xml.sax.ContentHandler handler)\r
83     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
84         Marshaller.marshal(this, handler);\r
85     }\r
86 \r
87     /**\r
88      * Method unmarshal.\r
89      * \r
90      * @param reader\r
91      * @throws org.exolab.castor.xml.MarshalException if object is\r
92      * null or if any SAXException is thrown during marshaling\r
93      * @throws org.exolab.castor.xml.ValidationException if this\r
94      * object is an invalid instance according to the schema\r
95      * @return the unmarshaled\r
96      * jalview.schemabinding.version2.JalviewUserColours\r
97      */\r
98     public static jalview.schemabinding.version2.JalviewUserColours unmarshal(\r
99             final java.io.Reader reader)\r
100     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
101         return (jalview.schemabinding.version2.JalviewUserColours) Unmarshaller.unmarshal(jalview.schemabinding.version2.UserColourScheme.class, reader);\r
102     }\r
103 \r
104     /**\r
105      * \r
106      * \r
107      * @throws org.exolab.castor.xml.ValidationException if this\r
108      * object is an invalid instance according to the schema\r
109      */\r
110     public void validate(\r
111     )\r
112     throws org.exolab.castor.xml.ValidationException {\r
113         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
114         validator.validate(this);\r
115     }\r
116 \r
117 }\r