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
18 * Class UserColourScheme.
\r
20 * @version $Revision$ $Date$
\r
22 public class UserColourScheme extends JalviewUserColours
\r
23 implements java.io.Serializable
\r
31 public UserColourScheme() {
\r
43 * @return true if this object is valid according to the schema
\r
45 public boolean isValid(
\r
49 } catch (org.exolab.castor.xml.ValidationException vex) {
\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
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
74 * @throws java.io.IOException if an IOException occurs during
\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
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
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
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
107 * @throws org.exolab.castor.xml.ValidationException if this
\r
108 * object is an invalid instance according to the schema
\r
110 public void validate(
\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