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.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.*;
\r
17 * Class SequenceType.
\r
19 * @version $Revision$ $Date$
\r
21 public class SequenceType
\r
22 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
53 public SequenceType()
\r
56 } //-- jalview.schemabinding.version2.SequenceType()
\r
63 * 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
71 } //-- java.lang.String getDescription()
\r
74 * Returns the value of field 'id'.
\r
77 * @return the value of field 'id'.
\r
79 public java.lang.String getId()
\r
82 } //-- java.lang.String getId()
\r
85 * Returns the value of field 'name'.
\r
88 * @return the value of field 'name'.
\r
90 public java.lang.String getName()
\r
93 } //-- java.lang.String getName()
\r
96 * Returns the value of field 'sequence'.
\r
99 * @return the value of field 'sequence'.
\r
101 public java.lang.String getSequence()
\r
103 return this._sequence;
\r
104 } //-- java.lang.String getSequence()
\r
113 public boolean isValid()
\r
119 catch (org.exolab.castor.xml.ValidationException vex)
\r
124 } //-- boolean isValid()
\r
133 public void marshal(java.io.Writer out)
\r
134 throws org.exolab.castor.xml.MarshalException,
\r
135 org.exolab.castor.xml.ValidationException
\r
138 Marshaller.marshal(this, out);
\r
139 } //-- void marshal(java.io.Writer)
\r
148 public void marshal(org.xml.sax.ContentHandler handler)
\r
149 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
150 org.exolab.castor.xml.ValidationException
\r
153 Marshaller.marshal(this, handler);
\r
154 } //-- void marshal(org.xml.sax.ContentHandler)
\r
157 * Sets the value of field 'description'.
\r
159 * @param description the value of field 'description'.
\r
161 public void setDescription(java.lang.String description)
\r
163 this._description = description;
\r
164 } //-- void setDescription(java.lang.String)
\r
167 * Sets the value of field 'id'.
\r
169 * @param id the value of field 'id'.
\r
171 public void setId(java.lang.String id)
\r
174 } //-- void setId(java.lang.String)
\r
177 * Sets the value of field 'name'.
\r
179 * @param name the value of field 'name'.
\r
181 public void setName(java.lang.String name)
\r
184 } //-- void setName(java.lang.String)
\r
187 * Sets the value of field 'sequence'.
\r
189 * @param sequence the value of field 'sequence'.
\r
191 public void setSequence(java.lang.String sequence)
\r
193 this._sequence = sequence;
\r
194 } //-- void setSequence(java.lang.String)
\r
204 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
205 throws org.exolab.castor.xml.MarshalException,
\r
206 org.exolab.castor.xml.ValidationException
\r
208 return (jalview.schemabinding.version2.SequenceType) Unmarshaller.unmarshal(
\r
209 jalview.schemabinding.version2.SequenceType.class, reader);
\r
210 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
216 public void validate()
\r
217 throws org.exolab.castor.xml.ValidationException
\r
219 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
221 validator.validate(this);
\r
222 } //-- void validate()
\r