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 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
37 private java.lang.String _sequence;
\r
42 private java.lang.String _name;
\r
48 public SequenceType()
\r
51 } //-- jalview.binding.SequenceType()
\r
58 * Returns the value of field 'id'.
\r
61 * @return the value of field 'id'.
\r
63 public java.lang.String getId()
\r
66 } //-- java.lang.String getId()
\r
69 * Returns the value of field 'name'.
\r
72 * @return the value of field 'name'.
\r
74 public java.lang.String getName()
\r
77 } //-- java.lang.String getName()
\r
80 * Returns the value of field 'sequence'.
\r
83 * @return the value of field 'sequence'.
\r
85 public java.lang.String getSequence()
\r
87 return this._sequence;
\r
88 } //-- java.lang.String getSequence()
\r
97 public boolean isValid()
\r
103 catch (org.exolab.castor.xml.ValidationException vex)
\r
108 } //-- boolean isValid()
\r
117 public void marshal(java.io.Writer out)
\r
118 throws org.exolab.castor.xml.MarshalException,
\r
119 org.exolab.castor.xml.ValidationException
\r
122 Marshaller.marshal(this, out);
\r
123 } //-- void marshal(java.io.Writer)
\r
132 public void marshal(org.xml.sax.ContentHandler handler)
\r
133 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
134 org.exolab.castor.xml.ValidationException
\r
137 Marshaller.marshal(this, handler);
\r
138 } //-- void marshal(org.xml.sax.ContentHandler)
\r
141 * Sets the value of field 'id'.
\r
143 * @param id the value of field 'id'.
\r
145 public void setId(java.lang.String id)
\r
148 } //-- void setId(java.lang.String)
\r
151 * Sets the value of field 'name'.
\r
153 * @param name the value of field 'name'.
\r
155 public void setName(java.lang.String name)
\r
158 } //-- void setName(java.lang.String)
\r
161 * Sets the value of field 'sequence'.
\r
163 * @param sequence the value of field 'sequence'.
\r
165 public void setSequence(java.lang.String sequence)
\r
167 this._sequence = sequence;
\r
168 } //-- void setSequence(java.lang.String)
\r
178 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
179 throws org.exolab.castor.xml.MarshalException,
\r
180 org.exolab.castor.xml.ValidationException
\r
182 return (jalview.binding.SequenceType) Unmarshaller.unmarshal(jalview.
\r
183 binding.SequenceType.class, reader);
\r
184 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
190 public void validate()
\r
191 throws org.exolab.castor.xml.ValidationException
\r
193 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
195 validator.validate(this);
\r
196 } //-- void validate()
\r