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
44 private java.lang.String _sequence;
\r
49 private java.lang.String _name;
\r
56 public SequenceType() {
\r
58 } //-- jalview.binding.SequenceType()
\r
66 * Returns the value of field 'id'.
\r
69 * @return the value of field 'id'.
\r
71 public java.lang.String getId()
\r
74 } //-- java.lang.String getId()
\r
77 * Returns the value of field 'name'.
\r
80 * @return the value of field 'name'.
\r
82 public java.lang.String getName()
\r
85 } //-- java.lang.String getName()
\r
88 * Returns the value of field 'sequence'.
\r
91 * @return the value of field 'sequence'.
\r
93 public java.lang.String getSequence()
\r
95 return this._sequence;
\r
96 } //-- java.lang.String getSequence()
\r
105 public boolean isValid()
\r
110 catch (org.exolab.castor.xml.ValidationException vex) {
\r
114 } //-- boolean isValid()
\r
123 public void marshal(java.io.Writer out)
\r
124 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
127 Marshaller.marshal(this, out);
\r
128 } //-- void marshal(java.io.Writer)
\r
137 public void marshal(org.xml.sax.ContentHandler handler)
\r
138 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
141 Marshaller.marshal(this, handler);
\r
142 } //-- void marshal(org.xml.sax.ContentHandler)
\r
145 * Sets the value of field 'id'.
\r
147 * @param id the value of field 'id'.
\r
149 public void setId(java.lang.String id)
\r
152 } //-- void setId(java.lang.String)
\r
155 * Sets the value of field 'name'.
\r
157 * @param name the value of field 'name'.
\r
159 public void setName(java.lang.String name)
\r
162 } //-- void setName(java.lang.String)
\r
165 * Sets the value of field 'sequence'.
\r
167 * @param sequence the value of field 'sequence'.
\r
169 public void setSequence(java.lang.String sequence)
\r
171 this._sequence = sequence;
\r
172 } //-- void setSequence(java.lang.String)
\r
182 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
183 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
185 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.binding.SequenceType.class, reader);
\r
186 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
192 public void validate()
\r
193 throws org.exolab.castor.xml.ValidationException
\r
195 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
196 validator.validate(this);
\r
197 } //-- void validate()
\r