1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) 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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.binding;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class UserColours implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
52 private java.lang.String _id;
55 * Field _userColourScheme.
57 private jalview.binding.UserColourScheme _userColourScheme;
73 * Returns the value of field 'id'.
75 * @return the value of field 'Id'.
77 public java.lang.String getId()
83 * Returns the value of field 'userColourScheme'.
85 * @return the value of field 'UserColourScheme'.
87 public jalview.binding.UserColourScheme getUserColourScheme()
89 return this._userColourScheme;
95 * @return true if this object is valid according to the schema
97 public boolean isValid()
102 } catch (org.exolab.castor.xml.ValidationException vex)
113 * @throws org.exolab.castor.xml.MarshalException
114 * if object is null or if any SAXException is thrown during
116 * @throws org.exolab.castor.xml.ValidationException
117 * if this object is an invalid instance according to the schema
119 public void marshal(final java.io.Writer out)
120 throws org.exolab.castor.xml.MarshalException,
121 org.exolab.castor.xml.ValidationException
123 Marshaller.marshal(this, out);
130 * @throws java.io.IOException
131 * if an IOException occurs during marshaling
132 * @throws org.exolab.castor.xml.ValidationException
133 * if this object is an invalid instance according to the schema
134 * @throws org.exolab.castor.xml.MarshalException
135 * if object is null or if any SAXException is thrown during
138 public void marshal(final org.xml.sax.ContentHandler handler)
139 throws java.io.IOException,
140 org.exolab.castor.xml.MarshalException,
141 org.exolab.castor.xml.ValidationException
143 Marshaller.marshal(this, handler);
147 * Sets the value of field 'id'.
150 * the value of field 'id'.
152 public void setId(final java.lang.String id)
158 * Sets the value of field 'userColourScheme'.
160 * @param userColourScheme
161 * the value of field 'userColourScheme'
163 public void setUserColourScheme(
164 final jalview.binding.UserColourScheme userColourScheme)
166 this._userColourScheme = userColourScheme;
173 * @throws org.exolab.castor.xml.MarshalException
174 * if object is null or if any SAXException is thrown during
176 * @throws org.exolab.castor.xml.ValidationException
177 * if this object is an invalid instance according to the schema
178 * @return the unmarshaled jalview.binding.UserColours
180 public static jalview.binding.UserColours unmarshal(
181 final java.io.Reader reader)
182 throws org.exolab.castor.xml.MarshalException,
183 org.exolab.castor.xml.ValidationException
185 return (jalview.binding.UserColours) Unmarshaller
186 .unmarshal(jalview.binding.UserColours.class, reader);
192 * @throws org.exolab.castor.xml.ValidationException
193 * if this object is an invalid instance according to the schema
195 public void validate() throws org.exolab.castor.xml.ValidationException
197 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
198 validator.validate(this);