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
72 * Field _featureGroup
\r
74 private java.lang.String _featureGroup;
\r
83 } //-- jalview.binding.Feature()
\r
91 * Method deleteBegin
\r
94 public void deleteBegin()
\r
96 this._has_begin= false;
\r
97 } //-- void deleteBegin()
\r
103 public void deleteEnd()
\r
105 this._has_end= false;
\r
106 } //-- void deleteEnd()
\r
109 * Returns the value of field 'begin'.
\r
112 * @return the value of field 'begin'.
\r
114 public int getBegin()
\r
116 return this._begin;
\r
117 } //-- int getBegin()
\r
120 * Returns the value of field 'description'.
\r
123 * @return the value of field 'description'.
\r
125 public java.lang.String getDescription()
\r
127 return this._description;
\r
128 } //-- java.lang.String getDescription()
\r
131 * Returns the value of field 'end'.
\r
134 * @return the value of field 'end'.
\r
136 public int getEnd()
\r
139 } //-- int getEnd()
\r
142 * Returns the value of field 'featureGroup'.
\r
145 * @return the value of field 'featureGroup'.
\r
147 public java.lang.String getFeatureGroup()
\r
149 return this._featureGroup;
\r
150 } //-- java.lang.String getFeatureGroup()
\r
153 * Returns the value of field 'status'.
\r
156 * @return the value of field 'status'.
\r
158 public java.lang.String getStatus()
\r
160 return this._status;
\r
161 } //-- java.lang.String getStatus()
\r
164 * Returns the value of field 'type'.
\r
167 * @return the value of field 'type'.
\r
169 public java.lang.String getType()
\r
172 } //-- java.lang.String getType()
\r
181 public boolean hasBegin()
\r
183 return this._has_begin;
\r
184 } //-- boolean hasBegin()
\r
193 public boolean hasEnd()
\r
195 return this._has_end;
\r
196 } //-- boolean hasEnd()
\r
205 public boolean isValid()
\r
210 catch (org.exolab.castor.xml.ValidationException vex) {
\r
214 } //-- boolean isValid()
\r
223 public void marshal(java.io.Writer out)
\r
224 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
227 Marshaller.marshal(this, out);
\r
228 } //-- void marshal(java.io.Writer)
\r
237 public void marshal(org.xml.sax.ContentHandler handler)
\r
238 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
241 Marshaller.marshal(this, handler);
\r
242 } //-- void marshal(org.xml.sax.ContentHandler)
\r
245 * Sets the value of field 'begin'.
\r
247 * @param begin the value of field 'begin'.
\r
249 public void setBegin(int begin)
\r
251 this._begin = begin;
\r
252 this._has_begin = true;
\r
253 } //-- void setBegin(int)
\r
256 * Sets the value of field 'description'.
\r
258 * @param description the value of field 'description'.
\r
260 public void setDescription(java.lang.String description)
\r
262 this._description = description;
\r
263 } //-- void setDescription(java.lang.String)
\r
266 * Sets the value of field 'end'.
\r
268 * @param end the value of field 'end'.
\r
270 public void setEnd(int end)
\r
273 this._has_end = true;
\r
274 } //-- void setEnd(int)
\r
277 * Sets the value of field 'featureGroup'.
\r
279 * @param featureGroup the value of field 'featureGroup'.
\r
281 public void setFeatureGroup(java.lang.String featureGroup)
\r
283 this._featureGroup = featureGroup;
\r
284 } //-- void setFeatureGroup(java.lang.String)
\r
287 * Sets the value of field 'status'.
\r
289 * @param status the value of field 'status'.
\r
291 public void setStatus(java.lang.String status)
\r
293 this._status = status;
\r
294 } //-- void setStatus(java.lang.String)
\r
297 * Sets the value of field 'type'.
\r
299 * @param type the value of field 'type'.
\r
301 public void setType(java.lang.String type)
\r
304 } //-- void setType(java.lang.String)
\r
314 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
315 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
317 return (jalview.binding.Feature) Unmarshaller.unmarshal(jalview.binding.Feature.class, reader);
\r
318 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
324 public void validate()
\r
325 throws org.exolab.castor.xml.ValidationException
\r
327 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
328 validator.validate(this);
\r
329 } //-- void validate()
\r