1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) 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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.schemabinding.version2;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class SequenceType implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
52 private java.lang.String _id;
57 private java.lang.String _description;
62 private java.lang.String _sequence;
67 private java.lang.String _name;
83 * Returns the value of field 'description'.
85 * @return the value of field 'Description'.
87 public java.lang.String getDescription()
89 return this._description;
93 * Returns the value of field 'id'.
95 * @return the value of field 'Id'.
97 public java.lang.String getId()
103 * Returns the value of field 'name'.
105 * @return the value of field 'Name'.
107 public java.lang.String getName()
113 * Returns the value of field 'sequence'.
115 * @return the value of field 'Sequence'.
117 public java.lang.String getSequence()
119 return this._sequence;
125 * @return true if this object is valid according to the schema
127 public boolean isValid()
132 } catch (org.exolab.castor.xml.ValidationException vex)
143 * @throws org.exolab.castor.xml.MarshalException
144 * if object is null or if any SAXException is thrown during
146 * @throws org.exolab.castor.xml.ValidationException
147 * if this object is an invalid instance according to the schema
149 public void marshal(final java.io.Writer out)
150 throws org.exolab.castor.xml.MarshalException,
151 org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, out);
160 * @throws java.io.IOException
161 * if an IOException occurs during marshaling
162 * @throws org.exolab.castor.xml.ValidationException
163 * if this object is an invalid instance according to the schema
164 * @throws org.exolab.castor.xml.MarshalException
165 * if object is null or if any SAXException is thrown during
168 public void marshal(final org.xml.sax.ContentHandler handler)
169 throws java.io.IOException,
170 org.exolab.castor.xml.MarshalException,
171 org.exolab.castor.xml.ValidationException
173 Marshaller.marshal(this, handler);
177 * Sets the value of field 'description'.
180 * the value of field 'description'.
182 public void setDescription(final java.lang.String description)
184 this._description = description;
188 * Sets the value of field 'id'.
191 * the value of field 'id'.
193 public void setId(final java.lang.String id)
199 * Sets the value of field 'name'.
202 * the value of field 'name'.
204 public void setName(final java.lang.String name)
210 * Sets the value of field 'sequence'.
213 * the value of field 'sequence'.
215 public void setSequence(final java.lang.String sequence)
217 this._sequence = sequence;
224 * @throws org.exolab.castor.xml.MarshalException
225 * if object is null or if any SAXException is thrown during
227 * @throws org.exolab.castor.xml.ValidationException
228 * if this object is an invalid instance according to the schema
229 * @return the unmarshaled jalview.schemabinding.version2.SequenceType
231 public static jalview.schemabinding.version2.SequenceType unmarshal(
232 final java.io.Reader reader)
233 throws org.exolab.castor.xml.MarshalException,
234 org.exolab.castor.xml.ValidationException
236 return (jalview.schemabinding.version2.SequenceType) Unmarshaller
237 .unmarshal(jalview.schemabinding.version2.SequenceType.class,
244 * @throws org.exolab.castor.xml.ValidationException
245 * if this object is an invalid instance according to the schema
247 public void validate() throws org.exolab.castor.xml.ValidationException
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
250 validator.validate(this);