1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview.
17 * If not, see <http://www.gnu.org/licenses/>.
18 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 ******************************************************************************/
21 * This class was automatically generated with
22 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
27 package jalview.schemabinding.version2;
29 //---------------------------------/
30 //- Imported classes and packages -/
31 //---------------------------------/
33 import org.exolab.castor.xml.Marshaller;
34 import org.exolab.castor.xml.Unmarshaller;
37 * Class UserColourScheme.
39 * @version $Revision$ $Date$
41 public class UserColourScheme extends JalviewUserColours implements
49 public UserColourScheme()
61 * @return true if this object is valid according to the schema
63 public boolean isValid()
68 } catch (org.exolab.castor.xml.ValidationException vex)
79 * @throws org.exolab.castor.xml.MarshalException
80 * if object is null or if any SAXException is thrown during
82 * @throws org.exolab.castor.xml.ValidationException
83 * if this object is an invalid instance according to the schema
85 public void marshal(final java.io.Writer out)
86 throws org.exolab.castor.xml.MarshalException,
87 org.exolab.castor.xml.ValidationException
89 Marshaller.marshal(this, out);
96 * @throws java.io.IOException
97 * if an IOException occurs during marshaling
98 * @throws org.exolab.castor.xml.ValidationException
99 * if this object is an invalid instance according to the schema
100 * @throws org.exolab.castor.xml.MarshalException
101 * if object is null or if any SAXException is thrown during
104 public void marshal(final org.xml.sax.ContentHandler handler)
105 throws java.io.IOException,
106 org.exolab.castor.xml.MarshalException,
107 org.exolab.castor.xml.ValidationException
109 Marshaller.marshal(this, handler);
116 * @throws org.exolab.castor.xml.MarshalException
117 * if object is null or if any SAXException is thrown during
119 * @throws org.exolab.castor.xml.ValidationException
120 * if this object is an invalid instance according to the schema
121 * @return the unmarshaled jalview.schemabinding.version2.JalviewUserColours
123 public static jalview.schemabinding.version2.JalviewUserColours unmarshal(
124 final java.io.Reader reader)
125 throws org.exolab.castor.xml.MarshalException,
126 org.exolab.castor.xml.ValidationException
128 return (jalview.schemabinding.version2.JalviewUserColours) Unmarshaller
130 jalview.schemabinding.version2.UserColourScheme.class,
137 * @throws org.exolab.castor.xml.ValidationException
138 * if this object is an invalid instance according to the schema
140 public void validate() throws org.exolab.castor.xml.ValidationException
142 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
143 validator.validate(this);