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 Feature implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
35 * keeps track of state for field: _begin
37 private boolean _has_begin;
45 * keeps track of state for field: _end
47 private boolean _has_end;
52 private java.lang.String _type;
57 private java.lang.String _description;
62 private java.lang.String _status;
80 public void deleteBegin(
82 this._has_begin= false;
87 public void deleteEnd(
93 * Returns the value of field 'begin'.
95 * @return the value of field 'Begin'.
103 * Returns the value of field 'description'.
105 * @return the value of field 'Description'.
107 public java.lang.String getDescription(
109 return this._description;
113 * Returns the value of field 'end'.
115 * @return the value of field 'End'.
123 * Returns the value of field 'status'.
125 * @return the value of field 'Status'.
127 public java.lang.String getStatus(
133 * Returns the value of field 'type'.
135 * @return the value of field 'Type'.
137 public java.lang.String getType(
145 * @return true if at least one Begin has been added
147 public boolean hasBegin(
149 return this._has_begin;
155 * @return true if at least one End has been added
157 public boolean hasEnd(
159 return this._has_end;
165 * @return true if this object is valid according to the schema
167 public boolean isValid(
171 } catch (org.exolab.castor.xml.ValidationException vex) {
181 * @throws org.exolab.castor.xml.MarshalException if object is
182 * null or if any SAXException is thrown during marshaling
183 * @throws org.exolab.castor.xml.ValidationException if this
184 * object is an invalid instance according to the schema
187 final java.io.Writer out)
188 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
189 Marshaller.marshal(this, out);
196 * @throws java.io.IOException if an IOException occurs during
198 * @throws org.exolab.castor.xml.ValidationException if this
199 * object is an invalid instance according to the schema
200 * @throws org.exolab.castor.xml.MarshalException if object is
201 * null or if any SAXException is thrown during marshaling
204 final org.xml.sax.ContentHandler handler)
205 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
206 Marshaller.marshal(this, handler);
210 * Sets the value of field 'begin'.
212 * @param begin the value of field 'begin'.
214 public void setBegin(
217 this._has_begin = true;
221 * Sets the value of field 'description'.
223 * @param description the value of field 'description'.
225 public void setDescription(
226 final java.lang.String description) {
227 this._description = description;
231 * Sets the value of field 'end'.
233 * @param end the value of field 'end'.
238 this._has_end = true;
242 * Sets the value of field 'status'.
244 * @param status the value of field 'status'.
246 public void setStatus(
247 final java.lang.String status) {
248 this._status = status;
252 * Sets the value of field 'type'.
254 * @param type the value of field 'type'.
257 final java.lang.String type) {
265 * @throws org.exolab.castor.xml.MarshalException if object is
266 * null or if any SAXException is thrown during marshaling
267 * @throws org.exolab.castor.xml.ValidationException if this
268 * object is an invalid instance according to the schema
269 * @return the unmarshaled jalview.binding.Feature
271 public static jalview.binding.Feature unmarshal(
272 final java.io.Reader reader)
273 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
274 return (jalview.binding.Feature) Unmarshaller.unmarshal(jalview.binding.Feature.class, reader);
280 * @throws org.exolab.castor.xml.ValidationException if this
281 * object is an invalid instance according to the schema
283 public void validate(
285 throws org.exolab.castor.xml.ValidationException {
286 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
287 validator.validate(this);