2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
27 package jalview.binding;
\r
29 //---------------------------------/
\r
30 //- Imported classes and packages -/
\r
31 //---------------------------------/
\r
33 import java.io.IOException;
\r
34 import java.io.Reader;
\r
35 import java.io.Serializable;
\r
36 import java.io.Writer;
\r
37 import org.exolab.castor.xml.MarshalException;
\r
38 import org.exolab.castor.xml.Marshaller;
\r
39 import org.exolab.castor.xml.Unmarshaller;
\r
40 import org.exolab.castor.xml.ValidationException;
\r
41 import org.xml.sax.ContentHandler;
\r
44 * Class UserColourScheme.
\r
46 * @version $Revision$ $Date$
\r
48 public class UserColourScheme extends JalviewUserColours
\r
49 implements java.io.Serializable
\r
57 public UserColourScheme() {
\r
59 } //-- jalview.binding.UserColourScheme()
\r
73 public boolean isValid()
\r
78 catch (org.exolab.castor.xml.ValidationException vex) {
\r
82 } //-- boolean isValid()
\r
91 public void marshal(java.io.Writer out)
\r
92 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
95 Marshaller.marshal(this, out);
\r
96 } //-- void marshal(java.io.Writer)
\r
105 public void marshal(org.xml.sax.ContentHandler handler)
\r
106 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
109 Marshaller.marshal(this, handler);
\r
110 } //-- void marshal(org.xml.sax.ContentHandler)
\r
120 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
121 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
123 return (jalview.binding.UserColourScheme) Unmarshaller.unmarshal(jalview.binding.UserColourScheme.class, reader);
\r
124 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
130 public void validate()
\r
131 throws org.exolab.castor.xml.ValidationException
\r
133 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
134 validator.validate(this);
\r
135 } //-- void validate()
\r