2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
18 * Class UserColourScheme.
20 * @version $Revision$ $Date$
22 public class UserColourScheme extends JalviewUserColours implements
30 public UserColourScheme()
42 * @return true if this object is valid according to the schema
44 public boolean isValid()
49 } catch (org.exolab.castor.xml.ValidationException vex)
60 * @throws org.exolab.castor.xml.MarshalException
61 * if object is null or if any SAXException is thrown during
63 * @throws org.exolab.castor.xml.ValidationException
64 * if this object is an invalid instance according to the schema
66 public void marshal(final java.io.Writer out)
67 throws org.exolab.castor.xml.MarshalException,
68 org.exolab.castor.xml.ValidationException
70 Marshaller.marshal(this, out);
77 * @throws java.io.IOException
78 * if an IOException occurs during marshaling
79 * @throws org.exolab.castor.xml.ValidationException
80 * if this object is an invalid instance according to the schema
81 * @throws org.exolab.castor.xml.MarshalException
82 * if object is null or if any SAXException is thrown during
85 public void marshal(final org.xml.sax.ContentHandler handler)
86 throws java.io.IOException,
87 org.exolab.castor.xml.MarshalException,
88 org.exolab.castor.xml.ValidationException
90 Marshaller.marshal(this, handler);
97 * @throws org.exolab.castor.xml.MarshalException
98 * if object is null or if any SAXException is thrown during
100 * @throws org.exolab.castor.xml.ValidationException
101 * if this object is an invalid instance according to the schema
102 * @return the unmarshaled jalview.schemabinding.version2.JalviewUserColours
104 public static jalview.schemabinding.version2.JalviewUserColours unmarshal(
105 final java.io.Reader reader)
106 throws org.exolab.castor.xml.MarshalException,
107 org.exolab.castor.xml.ValidationException
109 return (jalview.schemabinding.version2.JalviewUserColours) Unmarshaller
111 jalview.schemabinding.version2.UserColourScheme.class,
118 * @throws org.exolab.castor.xml.ValidationException
119 * if this object is an invalid instance according to the schema
121 public void validate() throws org.exolab.castor.xml.ValidationException
123 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
124 validator.validate(this);