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.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 SequenceType implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
49 private java.lang.String _id;
54 private java.lang.String _sequence;
59 private java.lang.String _name;
66 public SequenceType() {
76 * Returns the value of field 'id'.
78 * @return the value of field 'Id'.
80 public java.lang.String getId(
86 * Returns the value of field 'name'.
88 * @return the value of field 'Name'.
90 public java.lang.String getName(
96 * Returns the value of field 'sequence'.
98 * @return the value of field 'Sequence'.
100 public java.lang.String getSequence(
102 return this._sequence;
108 * @return true if this object is valid according to the schema
110 public boolean isValid(
114 } catch (org.exolab.castor.xml.ValidationException vex) {
124 * @throws org.exolab.castor.xml.MarshalException if object is
125 * null or if any SAXException is thrown during marshaling
126 * @throws org.exolab.castor.xml.ValidationException if this
127 * object is an invalid instance according to the schema
130 final java.io.Writer out)
131 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
132 Marshaller.marshal(this, out);
139 * @throws java.io.IOException if an IOException occurs during
141 * @throws org.exolab.castor.xml.ValidationException if this
142 * object is an invalid instance according to the schema
143 * @throws org.exolab.castor.xml.MarshalException if object is
144 * null or if any SAXException is thrown during marshaling
147 final org.xml.sax.ContentHandler handler)
148 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
149 Marshaller.marshal(this, handler);
153 * Sets the value of field 'id'.
155 * @param id the value of field 'id'.
158 final java.lang.String id) {
163 * Sets the value of field 'name'.
165 * @param name the value of field 'name'.
168 final java.lang.String name) {
173 * Sets the value of field 'sequence'.
175 * @param sequence the value of field 'sequence'.
177 public void setSequence(
178 final java.lang.String sequence) {
179 this._sequence = sequence;
186 * @throws org.exolab.castor.xml.MarshalException if object is
187 * null or if any SAXException is thrown during marshaling
188 * @throws org.exolab.castor.xml.ValidationException if this
189 * object is an invalid instance according to the schema
190 * @return the unmarshaled jalview.binding.SequenceType
192 public static jalview.binding.SequenceType unmarshal(
193 final java.io.Reader reader)
194 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
195 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);
201 * @throws org.exolab.castor.xml.ValidationException if this
202 * object is an invalid instance according to the schema
204 public void validate(
206 throws org.exolab.castor.xml.ValidationException {
207 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
208 validator.validate(this);