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 java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
27 * @version $Revision$ $Date$
\r
29 public class Feature implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
42 * keeps track of state for field: _begin
\r
44 private boolean _has_begin;
\r
52 * keeps track of state for field: _end
\r
54 private boolean _has_end;
\r
59 private java.lang.String _type;
\r
62 * Field _description
\r
64 private java.lang.String _description;
\r
69 private java.lang.String _status;
\r
78 } //-- jalview.binding.Feature()
\r
86 * Method deleteBegin
\r
89 public void deleteBegin()
\r
91 this._has_begin= false;
\r
92 } //-- void deleteBegin()
\r
98 public void deleteEnd()
\r
100 this._has_end= false;
\r
101 } //-- void deleteEnd()
\r
104 * Returns the value of field 'begin'.
\r
107 * @return the value of field 'begin'.
\r
109 public int getBegin()
\r
111 return this._begin;
\r
112 } //-- int getBegin()
\r
115 * Returns the value of field 'description'.
\r
118 * @return the value of field 'description'.
\r
120 public java.lang.String getDescription()
\r
122 return this._description;
\r
123 } //-- java.lang.String getDescription()
\r
126 * Returns the value of field 'end'.
\r
129 * @return the value of field 'end'.
\r
131 public int getEnd()
\r
134 } //-- int getEnd()
\r
137 * Returns the value of field 'status'.
\r
140 * @return the value of field 'status'.
\r
142 public java.lang.String getStatus()
\r
144 return this._status;
\r
145 } //-- java.lang.String getStatus()
\r
148 * Returns the value of field 'type'.
\r
151 * @return the value of field 'type'.
\r
153 public java.lang.String getType()
\r
156 } //-- java.lang.String getType()
\r
165 public boolean hasBegin()
\r
167 return this._has_begin;
\r
168 } //-- boolean hasBegin()
\r
177 public boolean hasEnd()
\r
179 return this._has_end;
\r
180 } //-- boolean hasEnd()
\r
189 public boolean isValid()
\r
194 catch (org.exolab.castor.xml.ValidationException vex) {
\r
198 } //-- boolean isValid()
\r
207 public void marshal(java.io.Writer out)
\r
208 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
211 Marshaller.marshal(this, out);
\r
212 } //-- void marshal(java.io.Writer)
\r
221 public void marshal(org.xml.sax.ContentHandler handler)
\r
222 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
225 Marshaller.marshal(this, handler);
\r
226 } //-- void marshal(org.xml.sax.ContentHandler)
\r
229 * Sets the value of field 'begin'.
\r
231 * @param begin the value of field 'begin'.
\r
233 public void setBegin(int begin)
\r
235 this._begin = begin;
\r
236 this._has_begin = true;
\r
237 } //-- void setBegin(int)
\r
240 * Sets the value of field 'description'.
\r
242 * @param description the value of field 'description'.
\r
244 public void setDescription(java.lang.String description)
\r
246 this._description = description;
\r
247 } //-- void setDescription(java.lang.String)
\r
250 * Sets the value of field 'end'.
\r
252 * @param end the value of field 'end'.
\r
254 public void setEnd(int end)
\r
257 this._has_end = true;
\r
258 } //-- void setEnd(int)
\r
261 * Sets the value of field 'status'.
\r
263 * @param status the value of field 'status'.
\r
265 public void setStatus(java.lang.String status)
\r
267 this._status = status;
\r
268 } //-- void setStatus(java.lang.String)
\r
271 * Sets the value of field 'type'.
\r
273 * @param type the value of field 'type'.
\r
275 public void setType(java.lang.String type)
\r
278 } //-- void setType(java.lang.String)
\r
288 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
289 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
291 return (jalview.binding.Feature) Unmarshaller.unmarshal(jalview.binding.Feature.class, reader);
\r
292 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
298 public void validate()
\r
299 throws org.exolab.castor.xml.ValidationException
\r
301 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
302 validator.validate(this);
\r
303 } //-- void validate()
\r