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;
63 * Returns the value of field 'description'.
65 * @return the value of field 'Description'.
67 public java.lang.String getDescription()
69 return this._description;
73 * Returns the value of field 'id'.
75 * @return the value of field 'Id'.
77 public java.lang.String getId()
83 * Returns the value of field 'name'.
85 * @return the value of field 'Name'.
87 public java.lang.String getName()
93 * Returns the value of field 'sequence'.
95 * @return the value of field 'Sequence'.
97 public java.lang.String getSequence()
99 return this._sequence;
105 * @return true if this object is valid according to the schema
107 public boolean isValid()
112 } catch (org.exolab.castor.xml.ValidationException vex)
123 * @throws org.exolab.castor.xml.MarshalException
124 * if object is null or if any SAXException is thrown during
126 * @throws org.exolab.castor.xml.ValidationException
127 * if this object is an invalid instance according to the schema
129 public void marshal(final java.io.Writer out)
130 throws org.exolab.castor.xml.MarshalException,
131 org.exolab.castor.xml.ValidationException
133 Marshaller.marshal(this, out);
140 * @throws java.io.IOException
141 * if an IOException occurs during marshaling
142 * @throws org.exolab.castor.xml.ValidationException
143 * if this object is an invalid instance according to the schema
144 * @throws org.exolab.castor.xml.MarshalException
145 * if object is null or if any SAXException is thrown during
148 public void marshal(final org.xml.sax.ContentHandler handler)
149 throws java.io.IOException,
150 org.exolab.castor.xml.MarshalException,
151 org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, handler);
157 * Sets the value of field 'description'.
160 * the value of field 'description'.
162 public void setDescription(final java.lang.String description)
164 this._description = description;
168 * Sets the value of field 'id'.
171 * the value of field 'id'.
173 public void setId(final java.lang.String id)
179 * Sets the value of field 'name'.
182 * the value of field 'name'.
184 public void setName(final java.lang.String name)
190 * Sets the value of field 'sequence'.
193 * the value of field 'sequence'.
195 public void setSequence(final java.lang.String sequence)
197 this._sequence = sequence;
204 * @throws org.exolab.castor.xml.MarshalException
205 * if object is null or if any SAXException is thrown during
207 * @throws org.exolab.castor.xml.ValidationException
208 * if this object is an invalid instance according to the schema
209 * @return the unmarshaled jalview.schemabinding.version2.SequenceType
211 public static jalview.schemabinding.version2.SequenceType unmarshal(
212 final java.io.Reader reader)
213 throws org.exolab.castor.xml.MarshalException,
214 org.exolab.castor.xml.ValidationException
216 return (jalview.schemabinding.version2.SequenceType) Unmarshaller
217 .unmarshal(jalview.schemabinding.version2.SequenceType.class,
224 * @throws org.exolab.castor.xml.ValidationException
225 * if this object is an invalid instance according to the schema
227 public void validate() throws org.exolab.castor.xml.ValidationException
229 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230 validator.validate(this);