2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
18 * Class SequenceType.
\r
20 * @version $Revision$ $Date$
\r
22 public class SequenceType implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
32 private java.lang.String _id;
\r
35 * Field _description.
\r
37 private java.lang.String _description;
\r
42 private java.lang.String _sequence;
\r
47 private java.lang.String _name;
\r
54 public SequenceType() {
\r
64 * Returns the value of field 'description'.
\r
66 * @return the value of field 'Description'.
\r
68 public java.lang.String getDescription(
\r
70 return this._description;
\r
74 * Returns the value of field 'id'.
\r
76 * @return the value of field 'Id'.
\r
78 public java.lang.String getId(
\r
84 * Returns the value of field 'name'.
\r
86 * @return the value of field 'Name'.
\r
88 public java.lang.String getName(
\r
94 * Returns the value of field 'sequence'.
\r
96 * @return the value of field 'Sequence'.
\r
98 public java.lang.String getSequence(
\r
100 return this._sequence;
\r
106 * @return true if this object is valid according to the schema
\r
108 public boolean isValid(
\r
112 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
122 * @throws org.exolab.castor.xml.MarshalException if object is
\r
123 * null or if any SAXException is thrown during marshaling
\r
124 * @throws org.exolab.castor.xml.ValidationException if this
\r
125 * object is an invalid instance according to the schema
\r
127 public void marshal(
\r
128 final java.io.Writer out)
\r
129 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
130 Marshaller.marshal(this, out);
\r
137 * @throws java.io.IOException if an IOException occurs during
\r
139 * @throws org.exolab.castor.xml.ValidationException if this
\r
140 * object is an invalid instance according to the schema
\r
141 * @throws org.exolab.castor.xml.MarshalException if object is
\r
142 * null or if any SAXException is thrown during marshaling
\r
144 public void marshal(
\r
145 final org.xml.sax.ContentHandler handler)
\r
146 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
147 Marshaller.marshal(this, handler);
\r
151 * Sets the value of field 'description'.
\r
153 * @param description the value of field 'description'.
\r
155 public void setDescription(
\r
156 final java.lang.String description) {
\r
157 this._description = description;
\r
161 * Sets the value of field 'id'.
\r
163 * @param id the value of field 'id'.
\r
166 final java.lang.String id) {
\r
171 * Sets the value of field 'name'.
\r
173 * @param name the value of field 'name'.
\r
175 public void setName(
\r
176 final java.lang.String name) {
\r
181 * Sets the value of field 'sequence'.
\r
183 * @param sequence the value of field 'sequence'.
\r
185 public void setSequence(
\r
186 final java.lang.String sequence) {
\r
187 this._sequence = sequence;
\r
191 * Method unmarshal.
\r
194 * @throws org.exolab.castor.xml.MarshalException if object is
\r
195 * null or if any SAXException is thrown during marshaling
\r
196 * @throws org.exolab.castor.xml.ValidationException if this
\r
197 * object is an invalid instance according to the schema
\r
198 * @return the unmarshaled
\r
199 * jalview.schemabinding.version2.SequenceType
\r
201 public static jalview.schemabinding.version2.SequenceType unmarshal(
\r
202 final java.io.Reader reader)
\r
203 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
204 return (jalview.schemabinding.version2.SequenceType) Unmarshaller.unmarshal(jalview.schemabinding.version2.SequenceType.class, reader);
\r
210 * @throws org.exolab.castor.xml.ValidationException if this
\r
211 * object is an invalid instance according to the schema
\r
213 public void validate(
\r
215 throws org.exolab.castor.xml.ValidationException {
\r
216 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
217 validator.validate(this);
\r