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;
39 * @version $Revision$ $Date$
41 public class UserColours implements java.io.Serializable
44 // --------------------------/
45 // - Class/Member Variables -/
46 // --------------------------/
51 private java.lang.String _id;
54 * Field _userColourScheme.
56 private jalview.schemabinding.version2.UserColourScheme _userColourScheme;
72 * Returns the value of field 'id'.
74 * @return the value of field 'Id'.
76 public java.lang.String getId()
82 * Returns the value of field 'userColourScheme'.
84 * @return the value of field 'UserColourScheme'.
86 public jalview.schemabinding.version2.UserColourScheme getUserColourScheme()
88 return this._userColourScheme;
94 * @return true if this object is valid according to the schema
96 public boolean isValid()
101 } catch (org.exolab.castor.xml.ValidationException vex)
112 * @throws org.exolab.castor.xml.MarshalException
113 * if object is null or if any SAXException is thrown during
115 * @throws org.exolab.castor.xml.ValidationException
116 * if this object is an invalid instance according to the schema
118 public void marshal(final java.io.Writer out)
119 throws org.exolab.castor.xml.MarshalException,
120 org.exolab.castor.xml.ValidationException
122 Marshaller.marshal(this, out);
129 * @throws java.io.IOException
130 * if an IOException occurs during marshaling
131 * @throws org.exolab.castor.xml.ValidationException
132 * if this object is an invalid instance according to the schema
133 * @throws org.exolab.castor.xml.MarshalException
134 * if object is null or if any SAXException is thrown during
137 public void marshal(final org.xml.sax.ContentHandler handler)
138 throws java.io.IOException,
139 org.exolab.castor.xml.MarshalException,
140 org.exolab.castor.xml.ValidationException
142 Marshaller.marshal(this, handler);
146 * Sets the value of field 'id'.
149 * the value of field 'id'.
151 public void setId(final java.lang.String id)
157 * Sets the value of field 'userColourScheme'.
159 * @param userColourScheme
160 * the value of field 'userColourScheme'
162 public void setUserColourScheme(
163 final jalview.schemabinding.version2.UserColourScheme userColourScheme)
165 this._userColourScheme = userColourScheme;
172 * @throws org.exolab.castor.xml.MarshalException
173 * if object is null or if any SAXException is thrown during
175 * @throws org.exolab.castor.xml.ValidationException
176 * if this object is an invalid instance according to the schema
177 * @return the unmarshaled jalview.schemabinding.version2.UserColours
179 public static jalview.schemabinding.version2.UserColours unmarshal(
180 final java.io.Reader reader)
181 throws org.exolab.castor.xml.MarshalException,
182 org.exolab.castor.xml.ValidationException
184 return (jalview.schemabinding.version2.UserColours) Unmarshaller
185 .unmarshal(jalview.schemabinding.version2.UserColours.class,
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);