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