2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
27 package jalview.binding;
\r
29 //---------------------------------/
\r
30 //- Imported classes and packages -/
\r
31 //---------------------------------/
\r
33 import java.io.IOException;
\r
34 import java.io.Reader;
\r
35 import java.io.Serializable;
\r
36 import java.io.Writer;
\r
37 import org.exolab.castor.xml.MarshalException;
\r
38 import org.exolab.castor.xml.Marshaller;
\r
39 import org.exolab.castor.xml.Unmarshaller;
\r
40 import org.exolab.castor.xml.ValidationException;
\r
41 import org.xml.sax.ContentHandler;
\r
44 * Class SequenceType.
\r
46 * @version $Revision$ $Date$
\r
48 public class SequenceType implements java.io.Serializable {
\r
51 //--------------------------/
\r
52 //- Class/Member Variables -/
\r
53 //--------------------------/
\r
58 private java.lang.String _id;
\r
63 private java.lang.String _sequence;
\r
68 private java.lang.String _name;
\r
75 public SequenceType() {
\r
77 } //-- jalview.binding.SequenceType()
\r
85 * Returns the value of field 'id'.
\r
88 * @return the value of field 'id'.
\r
90 public java.lang.String getId()
\r
93 } //-- java.lang.String getId()
\r
96 * Returns the value of field 'name'.
\r
99 * @return the value of field 'name'.
\r
101 public java.lang.String getName()
\r
104 } //-- java.lang.String getName()
\r
107 * Returns the value of field 'sequence'.
\r
110 * @return the value of field 'sequence'.
\r
112 public java.lang.String getSequence()
\r
114 return this._sequence;
\r
115 } //-- java.lang.String getSequence()
\r
124 public boolean isValid()
\r
129 catch (org.exolab.castor.xml.ValidationException vex) {
\r
133 } //-- boolean isValid()
\r
142 public void marshal(java.io.Writer out)
\r
143 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
146 Marshaller.marshal(this, out);
\r
147 } //-- void marshal(java.io.Writer)
\r
156 public void marshal(org.xml.sax.ContentHandler handler)
\r
157 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
160 Marshaller.marshal(this, handler);
\r
161 } //-- void marshal(org.xml.sax.ContentHandler)
\r
164 * Sets the value of field 'id'.
\r
166 * @param id the value of field 'id'.
\r
168 public void setId(java.lang.String id)
\r
171 } //-- void setId(java.lang.String)
\r
174 * Sets the value of field 'name'.
\r
176 * @param name the value of field 'name'.
\r
178 public void setName(java.lang.String name)
\r
181 } //-- void setName(java.lang.String)
\r
184 * Sets the value of field 'sequence'.
\r
186 * @param sequence the value of field 'sequence'.
\r
188 public void setSequence(java.lang.String sequence)
\r
190 this._sequence = sequence;
\r
191 } //-- void setSequence(java.lang.String)
\r
201 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
202 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
204 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);
\r
205 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
211 public void validate()
\r
212 throws org.exolab.castor.xml.ValidationException
\r
214 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
215 validator.validate(this);
\r
216 } //-- void validate()
\r