2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
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.binding.JalviewUserColours
104 public static jalview.binding.JalviewUserColours unmarshal(
105 final java.io.Reader reader)
106 throws org.exolab.castor.xml.MarshalException,
107 org.exolab.castor.xml.ValidationException
109 return (jalview.binding.JalviewUserColours) Unmarshaller.unmarshal(
110 jalview.binding.UserColourScheme.class, reader);
116 * @throws org.exolab.castor.xml.ValidationException
117 * if this object is an invalid instance according to the schema
119 public void validate() throws org.exolab.castor.xml.ValidationException
121 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
122 validator.validate(this);