2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.binding;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
25 * Class SequenceType.
\r
27 * @version $Revision$ $Date$
\r
29 public class SequenceType implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
39 private java.lang.String _id;
\r
42 * Field _description
\r
44 private java.lang.String _description;
\r
49 private java.lang.String _sequence;
\r
54 private java.lang.String _name;
\r
61 public SequenceType() {
\r
63 } //-- jalview.binding.SequenceType()
\r
71 * Returns the value of field 'description'.
\r
74 * @return the value of field 'description'.
\r
76 public java.lang.String getDescription()
\r
78 return this._description;
\r
79 } //-- java.lang.String getDescription()
\r
82 * Returns the value of field 'id'.
\r
85 * @return the value of field 'id'.
\r
87 public java.lang.String getId()
\r
90 } //-- java.lang.String getId()
\r
93 * Returns the value of field 'name'.
\r
96 * @return the value of field 'name'.
\r
98 public java.lang.String getName()
\r
101 } //-- java.lang.String getName()
\r
104 * Returns the value of field 'sequence'.
\r
107 * @return the value of field 'sequence'.
\r
109 public java.lang.String getSequence()
\r
111 return this._sequence;
\r
112 } //-- java.lang.String getSequence()
\r
121 public boolean isValid()
\r
126 catch (org.exolab.castor.xml.ValidationException vex) {
\r
130 } //-- boolean isValid()
\r
139 public void marshal(java.io.Writer out)
\r
140 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
143 Marshaller.marshal(this, out);
\r
144 } //-- void marshal(java.io.Writer)
\r
153 public void marshal(org.xml.sax.ContentHandler handler)
\r
154 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
157 Marshaller.marshal(this, handler);
\r
158 } //-- void marshal(org.xml.sax.ContentHandler)
\r
161 * Sets the value of field 'description'.
\r
163 * @param description the value of field 'description'.
\r
165 public void setDescription(java.lang.String description)
\r
167 this._description = description;
\r
168 } //-- void setDescription(java.lang.String)
\r
171 * Sets the value of field 'id'.
\r
173 * @param id the value of field 'id'.
\r
175 public void setId(java.lang.String id)
\r
178 } //-- void setId(java.lang.String)
\r
181 * Sets the value of field 'name'.
\r
183 * @param name the value of field 'name'.
\r
185 public void setName(java.lang.String name)
\r
188 } //-- void setName(java.lang.String)
\r
191 * Sets the value of field 'sequence'.
\r
193 * @param sequence the value of field 'sequence'.
\r
195 public void setSequence(java.lang.String sequence)
\r
197 this._sequence = sequence;
\r
198 } //-- void setSequence(java.lang.String)
\r
208 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
209 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
211 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);
\r
212 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
218 public void validate()
\r
219 throws org.exolab.castor.xml.ValidationException
\r
221 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
222 validator.validate(this);
\r
223 } //-- void validate()
\r