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;
58 * Returns the value of field 'id'.
60 * @return the value of field 'Id'.
62 public java.lang.String getId()
68 * Returns the value of field 'name'.
70 * @return the value of field 'Name'.
72 public java.lang.String getName()
78 * Returns the value of field 'sequence'.
80 * @return the value of field 'Sequence'.
82 public java.lang.String getSequence()
84 return this._sequence;
90 * @return true if this object is valid according to the schema
92 public boolean isValid()
97 } catch (org.exolab.castor.xml.ValidationException vex)
108 * @throws org.exolab.castor.xml.MarshalException
109 * if object is null or if any SAXException is thrown during
111 * @throws org.exolab.castor.xml.ValidationException
112 * if this object is an invalid instance according to the schema
114 public void marshal(final java.io.Writer out)
115 throws org.exolab.castor.xml.MarshalException,
116 org.exolab.castor.xml.ValidationException
118 Marshaller.marshal(this, out);
125 * @throws java.io.IOException
126 * if an IOException occurs during marshaling
127 * @throws org.exolab.castor.xml.ValidationException
128 * if this object is an invalid instance according to the schema
129 * @throws org.exolab.castor.xml.MarshalException
130 * if object is null or if any SAXException is thrown during
133 public void marshal(final org.xml.sax.ContentHandler handler)
134 throws java.io.IOException,
135 org.exolab.castor.xml.MarshalException,
136 org.exolab.castor.xml.ValidationException
138 Marshaller.marshal(this, handler);
142 * Sets the value of field 'id'.
145 * the value of field 'id'.
147 public void setId(final java.lang.String id)
153 * Sets the value of field 'name'.
156 * the value of field 'name'.
158 public void setName(final java.lang.String name)
164 * Sets the value of field 'sequence'.
167 * the value of field 'sequence'.
169 public void setSequence(final java.lang.String sequence)
171 this._sequence = sequence;
178 * @throws org.exolab.castor.xml.MarshalException
179 * if object is null or if any SAXException is thrown during
181 * @throws org.exolab.castor.xml.ValidationException
182 * if this object is an invalid instance according to the schema
183 * @return the unmarshaled jalview.binding.SequenceType
185 public static jalview.binding.SequenceType unmarshal(
186 final java.io.Reader reader)
187 throws org.exolab.castor.xml.MarshalException,
188 org.exolab.castor.xml.ValidationException
190 return (jalview.binding.SequenceType) Unmarshaller
191 .unmarshal(jalview.binding.SequenceType.class, reader);
197 * @throws org.exolab.castor.xml.ValidationException
198 * if this object is an invalid instance according to the schema
200 public void validate() throws org.exolab.castor.xml.ValidationException
202 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
203 validator.validate(this);