2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.binding;
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 _sequence;
42 private java.lang.String _name;
49 public SequenceType() {
59 * Returns the value of field 'id'.
61 * @return the value of field 'Id'.
63 public java.lang.String getId(
69 * Returns the value of field 'name'.
71 * @return the value of field 'Name'.
73 public java.lang.String getName(
79 * Returns the value of field 'sequence'.
81 * @return the value of field 'Sequence'.
83 public java.lang.String getSequence(
85 return this._sequence;
91 * @return true if this object is valid according to the schema
93 public boolean isValid(
97 } catch (org.exolab.castor.xml.ValidationException vex) {
107 * @throws org.exolab.castor.xml.MarshalException if object is
108 * null or if any SAXException is thrown during marshaling
109 * @throws org.exolab.castor.xml.ValidationException if this
110 * object is an invalid instance according to the schema
113 final java.io.Writer out)
114 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
115 Marshaller.marshal(this, out);
122 * @throws java.io.IOException if an IOException occurs during
124 * @throws org.exolab.castor.xml.ValidationException if this
125 * object is an invalid instance according to the schema
126 * @throws org.exolab.castor.xml.MarshalException if object is
127 * null or if any SAXException is thrown during marshaling
130 final org.xml.sax.ContentHandler handler)
131 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
132 Marshaller.marshal(this, handler);
136 * Sets the value of field 'id'.
138 * @param id the value of field 'id'.
141 final java.lang.String id) {
146 * Sets the value of field 'name'.
148 * @param name the value of field 'name'.
151 final java.lang.String name) {
156 * Sets the value of field 'sequence'.
158 * @param sequence the value of field 'sequence'.
160 public void setSequence(
161 final java.lang.String sequence) {
162 this._sequence = sequence;
169 * @throws org.exolab.castor.xml.MarshalException if object is
170 * null or if any SAXException is thrown during marshaling
171 * @throws org.exolab.castor.xml.ValidationException if this
172 * object is an invalid instance according to the schema
173 * @return the unmarshaled jalview.binding.SequenceType
175 public static jalview.binding.SequenceType unmarshal(
176 final java.io.Reader reader)
177 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
178 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);
184 * @throws org.exolab.castor.xml.ValidationException if this
185 * object is an invalid instance according to the schema
187 public void validate(
189 throws org.exolab.castor.xml.ValidationException {
190 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
191 validator.validate(this);