1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, 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.schemabinding.version2;
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 SequenceType implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
49 private java.lang.String _id;
54 private java.lang.String _description;
59 private java.lang.String _sequence;
64 private java.lang.String _name;
71 public SequenceType() {
81 * Returns the value of field 'description'.
83 * @return the value of field 'Description'.
85 public java.lang.String getDescription(
87 return this._description;
91 * Returns the value of field 'id'.
93 * @return the value of field 'Id'.
95 public java.lang.String getId(
101 * Returns the value of field 'name'.
103 * @return the value of field 'Name'.
105 public java.lang.String getName(
111 * Returns the value of field 'sequence'.
113 * @return the value of field 'Sequence'.
115 public java.lang.String getSequence(
117 return this._sequence;
123 * @return true if this object is valid according to the schema
125 public boolean isValid(
129 } catch (org.exolab.castor.xml.ValidationException vex) {
139 * @throws org.exolab.castor.xml.MarshalException if object is
140 * null or if any SAXException is thrown during marshaling
141 * @throws org.exolab.castor.xml.ValidationException if this
142 * object is an invalid instance according to the schema
145 final java.io.Writer out)
146 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147 Marshaller.marshal(this, out);
154 * @throws java.io.IOException if an IOException occurs during
156 * @throws org.exolab.castor.xml.ValidationException if this
157 * object is an invalid instance according to the schema
158 * @throws org.exolab.castor.xml.MarshalException if object is
159 * null or if any SAXException is thrown during marshaling
162 final org.xml.sax.ContentHandler handler)
163 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
164 Marshaller.marshal(this, handler);
168 * Sets the value of field 'description'.
170 * @param description the value of field 'description'.
172 public void setDescription(
173 final java.lang.String description) {
174 this._description = description;
178 * Sets the value of field 'id'.
180 * @param id the value of field 'id'.
183 final java.lang.String id) {
188 * Sets the value of field 'name'.
190 * @param name the value of field 'name'.
193 final java.lang.String name) {
198 * Sets the value of field 'sequence'.
200 * @param sequence the value of field 'sequence'.
202 public void setSequence(
203 final java.lang.String sequence) {
204 this._sequence = sequence;
211 * @throws org.exolab.castor.xml.MarshalException if object is
212 * null or if any SAXException is thrown during marshaling
213 * @throws org.exolab.castor.xml.ValidationException if this
214 * object is an invalid instance according to the schema
215 * @return the unmarshaled
216 * jalview.schemabinding.version2.SequenceType
218 public static jalview.schemabinding.version2.SequenceType unmarshal(
219 final java.io.Reader reader)
220 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
221 return (jalview.schemabinding.version2.SequenceType) Unmarshaller.unmarshal(jalview.schemabinding.version2.SequenceType.class, reader);
227 * @throws org.exolab.castor.xml.ValidationException if this
228 * object is an invalid instance according to the schema
230 public void validate(
232 throws org.exolab.castor.xml.ValidationException {
233 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
234 validator.validate(this);