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;
79 public void deleteBegin()
81 this._has_begin = false;
86 public void deleteEnd()
88 this._has_end = false;
92 * Returns the value of field 'begin'.
94 * @return the value of field 'Begin'.
102 * Returns the value of field 'description'.
104 * @return the value of field 'Description'.
106 public java.lang.String getDescription()
108 return this._description;
112 * Returns the value of field 'end'.
114 * @return the value of field 'End'.
122 * Returns the value of field 'status'.
124 * @return the value of field 'Status'.
126 public java.lang.String getStatus()
132 * Returns the value of field 'type'.
134 * @return the value of field 'Type'.
136 public java.lang.String getType()
144 * @return true if at least one Begin has been added
146 public boolean hasBegin()
148 return this._has_begin;
154 * @return true if at least one End has been added
156 public boolean hasEnd()
158 return this._has_end;
164 * @return true if this object is valid according to the schema
166 public boolean isValid()
171 } catch (org.exolab.castor.xml.ValidationException vex)
182 * @throws org.exolab.castor.xml.MarshalException
183 * if object is null or if any SAXException is thrown during
185 * @throws org.exolab.castor.xml.ValidationException
186 * if this object is an invalid instance according to the schema
188 public void marshal(final java.io.Writer out)
189 throws org.exolab.castor.xml.MarshalException,
190 org.exolab.castor.xml.ValidationException
192 Marshaller.marshal(this, out);
199 * @throws java.io.IOException
200 * if an IOException occurs during marshaling
201 * @throws org.exolab.castor.xml.ValidationException
202 * if this object is an invalid instance according to the schema
203 * @throws org.exolab.castor.xml.MarshalException
204 * if object is null or if any SAXException is thrown during
207 public void marshal(final org.xml.sax.ContentHandler handler)
208 throws java.io.IOException,
209 org.exolab.castor.xml.MarshalException,
210 org.exolab.castor.xml.ValidationException
212 Marshaller.marshal(this, handler);
216 * Sets the value of field 'begin'.
219 * the value of field 'begin'.
221 public void setBegin(final int begin)
224 this._has_begin = true;
228 * Sets the value of field 'description'.
231 * the value of field 'description'.
233 public void setDescription(final java.lang.String description)
235 this._description = description;
239 * Sets the value of field 'end'.
242 * the value of field 'end'.
244 public void setEnd(final int end)
247 this._has_end = true;
251 * Sets the value of field 'status'.
254 * the value of field 'status'.
256 public void setStatus(final java.lang.String status)
258 this._status = status;
262 * Sets the value of field 'type'.
265 * the value of field 'type'.
267 public void setType(final java.lang.String type)
276 * @throws org.exolab.castor.xml.MarshalException
277 * if object is null or if any SAXException is thrown during
279 * @throws org.exolab.castor.xml.ValidationException
280 * if this object is an invalid instance according to the schema
281 * @return the unmarshaled jalview.binding.Feature
283 public static jalview.binding.Feature unmarshal(
284 final java.io.Reader reader)
285 throws org.exolab.castor.xml.MarshalException,
286 org.exolab.castor.xml.ValidationException
288 return (jalview.binding.Feature) Unmarshaller.unmarshal(
289 jalview.binding.Feature.class, reader);
295 * @throws org.exolab.castor.xml.ValidationException
296 * if this object is an invalid instance according to the schema
298 public void validate() throws org.exolab.castor.xml.ValidationException
300 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
301 validator.validate(this);