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 AnnotationColours.
20 * @version $Revision$ $Date$
22 public class AnnotationColours extends AnnotationColourScheme implements
30 public AnnotationColours()
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
103 * jalview.schemabinding.version2.AnnotationColourScheme
105 public static jalview.schemabinding.version2.AnnotationColourScheme unmarshal(
106 final java.io.Reader reader)
107 throws org.exolab.castor.xml.MarshalException,
108 org.exolab.castor.xml.ValidationException
110 return (jalview.schemabinding.version2.AnnotationColourScheme) Unmarshaller
112 jalview.schemabinding.version2.AnnotationColours.class,
119 * @throws org.exolab.castor.xml.ValidationException
120 * if this object is an invalid instance according to the schema
122 public void validate() throws org.exolab.castor.xml.ValidationException
124 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
125 validator.validate(this);