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 SequenceType implements java.io.Serializable
44 // --------------------------/
45 // - Class/Member Variables -/
46 // --------------------------/
51 private java.lang.String _id;
56 private java.lang.String _description;
61 private java.lang.String _sequence;
66 private java.lang.String _name;
82 * Returns the value of field 'description'.
84 * @return the value of field 'Description'.
86 public java.lang.String getDescription()
88 return this._description;
92 * Returns the value of field 'id'.
94 * @return the value of field 'Id'.
96 public java.lang.String getId()
102 * Returns the value of field 'name'.
104 * @return the value of field 'Name'.
106 public java.lang.String getName()
112 * Returns the value of field 'sequence'.
114 * @return the value of field 'Sequence'.
116 public java.lang.String getSequence()
118 return this._sequence;
124 * @return true if this object is valid according to the schema
126 public boolean isValid()
131 } catch (org.exolab.castor.xml.ValidationException vex)
142 * @throws org.exolab.castor.xml.MarshalException
143 * if object is null or if any SAXException is thrown during
145 * @throws org.exolab.castor.xml.ValidationException
146 * if this object is an invalid instance according to the schema
148 public void marshal(final java.io.Writer out)
149 throws org.exolab.castor.xml.MarshalException,
150 org.exolab.castor.xml.ValidationException
152 Marshaller.marshal(this, out);
159 * @throws java.io.IOException
160 * if an IOException occurs during marshaling
161 * @throws org.exolab.castor.xml.ValidationException
162 * if this object is an invalid instance according to the schema
163 * @throws org.exolab.castor.xml.MarshalException
164 * if object is null or if any SAXException is thrown during
167 public void marshal(final org.xml.sax.ContentHandler handler)
168 throws java.io.IOException,
169 org.exolab.castor.xml.MarshalException,
170 org.exolab.castor.xml.ValidationException
172 Marshaller.marshal(this, handler);
176 * Sets the value of field 'description'.
179 * the value of field 'description'.
181 public void setDescription(final java.lang.String description)
183 this._description = description;
187 * Sets the value of field 'id'.
190 * the value of field 'id'.
192 public void setId(final java.lang.String id)
198 * Sets the value of field 'name'.
201 * the value of field 'name'.
203 public void setName(final java.lang.String name)
209 * Sets the value of field 'sequence'.
212 * the value of field 'sequence'.
214 public void setSequence(final java.lang.String sequence)
216 this._sequence = sequence;
223 * @throws org.exolab.castor.xml.MarshalException
224 * if object is null or if any SAXException is thrown during
226 * @throws org.exolab.castor.xml.ValidationException
227 * if this object is an invalid instance according to the schema
228 * @return the unmarshaled jalview.schemabinding.version2.SequenceType
230 public static jalview.schemabinding.version2.SequenceType unmarshal(
231 final java.io.Reader reader)
232 throws org.exolab.castor.xml.MarshalException,
233 org.exolab.castor.xml.ValidationException
235 return (jalview.schemabinding.version2.SequenceType) Unmarshaller
236 .unmarshal(jalview.schemabinding.version2.SequenceType.class,
243 * @throws org.exolab.castor.xml.ValidationException
244 * if this object is an invalid instance according to the schema
246 public void validate() throws org.exolab.castor.xml.ValidationException
248 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
249 validator.validate(this);