1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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. If not, see <http://www.gnu.org/licenses/>.
17 *******************************************************************************/
19 * This class was automatically generated with
20 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
25 package jalview.binding;
27 //---------------------------------/
28 //- Imported classes and packages -/
29 //---------------------------------/
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
37 * @version $Revision$ $Date$
39 public class UserColours implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
49 private java.lang.String _id;
52 * Field _userColourScheme.
54 private jalview.binding.UserColourScheme _userColourScheme;
61 public UserColours() {
71 * Returns the value of field 'id'.
73 * @return the value of field 'Id'.
75 public java.lang.String getId(
81 * Returns the value of field 'userColourScheme'.
83 * @return the value of field 'UserColourScheme'.
85 public jalview.binding.UserColourScheme getUserColourScheme(
87 return this._userColourScheme;
93 * @return true if this object is valid according to the schema
95 public boolean isValid(
99 } catch (org.exolab.castor.xml.ValidationException vex) {
109 * @throws org.exolab.castor.xml.MarshalException if object is
110 * null or if any SAXException is thrown during marshaling
111 * @throws org.exolab.castor.xml.ValidationException if this
112 * object is an invalid instance according to the schema
115 final java.io.Writer out)
116 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
117 Marshaller.marshal(this, out);
124 * @throws java.io.IOException if an IOException occurs during
126 * @throws org.exolab.castor.xml.ValidationException if this
127 * object is an invalid instance according to the schema
128 * @throws org.exolab.castor.xml.MarshalException if object is
129 * null or if any SAXException is thrown during marshaling
132 final org.xml.sax.ContentHandler handler)
133 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
134 Marshaller.marshal(this, handler);
138 * Sets the value of field 'id'.
140 * @param id the value of field 'id'.
143 final java.lang.String id) {
148 * Sets the value of field 'userColourScheme'.
150 * @param userColourScheme the value of field 'userColourScheme'
152 public void setUserColourScheme(
153 final jalview.binding.UserColourScheme userColourScheme) {
154 this._userColourScheme = userColourScheme;
161 * @throws org.exolab.castor.xml.MarshalException if object is
162 * null or if any SAXException is thrown during marshaling
163 * @throws org.exolab.castor.xml.ValidationException if this
164 * object is an invalid instance according to the schema
165 * @return the unmarshaled jalview.binding.UserColours
167 public static jalview.binding.UserColours unmarshal(
168 final java.io.Reader reader)
169 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
170 return (jalview.binding.UserColours) Unmarshaller.unmarshal(jalview.binding.UserColours.class, reader);
176 * @throws org.exolab.castor.xml.ValidationException if this
177 * object is an invalid instance according to the schema
179 public void validate(
181 throws org.exolab.castor.xml.ValidationException {
182 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
183 validator.validate(this);