d429df3c5a54f0dffb2c9c75ded95835edf9cbdd
[jalview.git] / src / jalview / binding / Feature.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.binding;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class Feature.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Feature implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _begin.
31      */
32     private int _begin;
33
34     /**
35      * keeps track of state for field: _begin
36      */
37     private boolean _has_begin;
38
39     /**
40      * Field _end.
41      */
42     private int _end;
43
44     /**
45      * keeps track of state for field: _end
46      */
47     private boolean _has_end;
48
49     /**
50      * Field _type.
51      */
52     private java.lang.String _type;
53
54     /**
55      * Field _description.
56      */
57     private java.lang.String _description;
58
59     /**
60      * Field _status.
61      */
62     private java.lang.String _status;
63
64
65       //----------------/
66      //- Constructors -/
67     //----------------/
68
69     public Feature() {
70         super();
71     }
72
73
74       //-----------/
75      //- Methods -/
76     //-----------/
77
78     /**
79      */
80     public void deleteBegin(
81     ) {
82         this._has_begin= false;
83     }
84
85     /**
86      */
87     public void deleteEnd(
88     ) {
89         this._has_end= false;
90     }
91
92     /**
93      * Returns the value of field 'begin'.
94      * 
95      * @return the value of field 'Begin'.
96      */
97     public int getBegin(
98     ) {
99         return this._begin;
100     }
101
102     /**
103      * Returns the value of field 'description'.
104      * 
105      * @return the value of field 'Description'.
106      */
107     public java.lang.String getDescription(
108     ) {
109         return this._description;
110     }
111
112     /**
113      * Returns the value of field 'end'.
114      * 
115      * @return the value of field 'End'.
116      */
117     public int getEnd(
118     ) {
119         return this._end;
120     }
121
122     /**
123      * Returns the value of field 'status'.
124      * 
125      * @return the value of field 'Status'.
126      */
127     public java.lang.String getStatus(
128     ) {
129         return this._status;
130     }
131
132     /**
133      * Returns the value of field 'type'.
134      * 
135      * @return the value of field 'Type'.
136      */
137     public java.lang.String getType(
138     ) {
139         return this._type;
140     }
141
142     /**
143      * Method hasBegin.
144      * 
145      * @return true if at least one Begin has been added
146      */
147     public boolean hasBegin(
148     ) {
149         return this._has_begin;
150     }
151
152     /**
153      * Method hasEnd.
154      * 
155      * @return true if at least one End has been added
156      */
157     public boolean hasEnd(
158     ) {
159         return this._has_end;
160     }
161
162     /**
163      * Method isValid.
164      * 
165      * @return true if this object is valid according to the schema
166      */
167     public boolean isValid(
168     ) {
169         try {
170             validate();
171         } catch (org.exolab.castor.xml.ValidationException vex) {
172             return false;
173         }
174         return true;
175     }
176
177     /**
178      * 
179      * 
180      * @param out
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
185      */
186     public void marshal(
187             final java.io.Writer out)
188     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
189         Marshaller.marshal(this, out);
190     }
191
192     /**
193      * 
194      * 
195      * @param handler
196      * @throws java.io.IOException if an IOException occurs during
197      * marshaling
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
202      */
203     public void marshal(
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);
207     }
208
209     /**
210      * Sets the value of field 'begin'.
211      * 
212      * @param begin the value of field 'begin'.
213      */
214     public void setBegin(
215             final int begin) {
216         this._begin = begin;
217         this._has_begin = true;
218     }
219
220     /**
221      * Sets the value of field 'description'.
222      * 
223      * @param description the value of field 'description'.
224      */
225     public void setDescription(
226             final java.lang.String description) {
227         this._description = description;
228     }
229
230     /**
231      * Sets the value of field 'end'.
232      * 
233      * @param end the value of field 'end'.
234      */
235     public void setEnd(
236             final int end) {
237         this._end = end;
238         this._has_end = true;
239     }
240
241     /**
242      * Sets the value of field 'status'.
243      * 
244      * @param status the value of field 'status'.
245      */
246     public void setStatus(
247             final java.lang.String status) {
248         this._status = status;
249     }
250
251     /**
252      * Sets the value of field 'type'.
253      * 
254      * @param type the value of field 'type'.
255      */
256     public void setType(
257             final java.lang.String type) {
258         this._type = type;
259     }
260
261     /**
262      * Method unmarshal.
263      * 
264      * @param reader
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
270      */
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);
275     }
276
277     /**
278      * 
279      * 
280      * @throws org.exolab.castor.xml.ValidationException if this
281      * object is an invalid instance according to the schema
282      */
283     public void validate(
284     )
285     throws org.exolab.castor.xml.ValidationException {
286         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
287         validator.validate(this);
288     }
289
290 }