1732401b2cce861b458acd90e8c6ba1605696725
[jalview.git] / src / jalview / schemabinding / version2 / Alcodon.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.schemabinding.version2;
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 Alcodon.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Alcodon implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _pos1.
31      */
32     private long _pos1;
33
34     /**
35      * keeps track of state for field: _pos1
36      */
37     private boolean _has_pos1;
38
39     /**
40      * Field _pos2.
41      */
42     private long _pos2;
43
44     /**
45      * keeps track of state for field: _pos2
46      */
47     private boolean _has_pos2;
48
49     /**
50      * Field _pos3.
51      */
52     private long _pos3;
53
54     /**
55      * keeps track of state for field: _pos3
56      */
57     private boolean _has_pos3;
58
59
60       //----------------/
61      //- Constructors -/
62     //----------------/
63
64     public Alcodon() {
65         super();
66     }
67
68
69       //-----------/
70      //- Methods -/
71     //-----------/
72
73     /**
74      */
75     public void deletePos1(
76     ) {
77         this._has_pos1= false;
78     }
79
80     /**
81      */
82     public void deletePos2(
83     ) {
84         this._has_pos2= false;
85     }
86
87     /**
88      */
89     public void deletePos3(
90     ) {
91         this._has_pos3= false;
92     }
93
94     /**
95      * Returns the value of field 'pos1'.
96      * 
97      * @return the value of field 'Pos1'.
98      */
99     public long getPos1(
100     ) {
101         return this._pos1;
102     }
103
104     /**
105      * Returns the value of field 'pos2'.
106      * 
107      * @return the value of field 'Pos2'.
108      */
109     public long getPos2(
110     ) {
111         return this._pos2;
112     }
113
114     /**
115      * Returns the value of field 'pos3'.
116      * 
117      * @return the value of field 'Pos3'.
118      */
119     public long getPos3(
120     ) {
121         return this._pos3;
122     }
123
124     /**
125      * Method hasPos1.
126      * 
127      * @return true if at least one Pos1 has been added
128      */
129     public boolean hasPos1(
130     ) {
131         return this._has_pos1;
132     }
133
134     /**
135      * Method hasPos2.
136      * 
137      * @return true if at least one Pos2 has been added
138      */
139     public boolean hasPos2(
140     ) {
141         return this._has_pos2;
142     }
143
144     /**
145      * Method hasPos3.
146      * 
147      * @return true if at least one Pos3 has been added
148      */
149     public boolean hasPos3(
150     ) {
151         return this._has_pos3;
152     }
153
154     /**
155      * Method isValid.
156      * 
157      * @return true if this object is valid according to the schema
158      */
159     public boolean isValid(
160     ) {
161         try {
162             validate();
163         } catch (org.exolab.castor.xml.ValidationException vex) {
164             return false;
165         }
166         return true;
167     }
168
169     /**
170      * 
171      * 
172      * @param out
173      * @throws org.exolab.castor.xml.MarshalException if object is
174      * null or if any SAXException is thrown during marshaling
175      * @throws org.exolab.castor.xml.ValidationException if this
176      * object is an invalid instance according to the schema
177      */
178     public void marshal(
179             final java.io.Writer out)
180     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
181         Marshaller.marshal(this, out);
182     }
183
184     /**
185      * 
186      * 
187      * @param handler
188      * @throws java.io.IOException if an IOException occurs during
189      * marshaling
190      * @throws org.exolab.castor.xml.ValidationException if this
191      * object is an invalid instance according to the schema
192      * @throws org.exolab.castor.xml.MarshalException if object is
193      * null or if any SAXException is thrown during marshaling
194      */
195     public void marshal(
196             final org.xml.sax.ContentHandler handler)
197     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
198         Marshaller.marshal(this, handler);
199     }
200
201     /**
202      * Sets the value of field 'pos1'.
203      * 
204      * @param pos1 the value of field 'pos1'.
205      */
206     public void setPos1(
207             final long pos1) {
208         this._pos1 = pos1;
209         this._has_pos1 = true;
210     }
211
212     /**
213      * Sets the value of field 'pos2'.
214      * 
215      * @param pos2 the value of field 'pos2'.
216      */
217     public void setPos2(
218             final long pos2) {
219         this._pos2 = pos2;
220         this._has_pos2 = true;
221     }
222
223     /**
224      * Sets the value of field 'pos3'.
225      * 
226      * @param pos3 the value of field 'pos3'.
227      */
228     public void setPos3(
229             final long pos3) {
230         this._pos3 = pos3;
231         this._has_pos3 = true;
232     }
233
234     /**
235      * Method unmarshal.
236      * 
237      * @param reader
238      * @throws org.exolab.castor.xml.MarshalException if object is
239      * null or if any SAXException is thrown during marshaling
240      * @throws org.exolab.castor.xml.ValidationException if this
241      * object is an invalid instance according to the schema
242      * @return the unmarshaled jalview.schemabinding.version2.Alcodo
243      */
244     public static jalview.schemabinding.version2.Alcodon unmarshal(
245             final java.io.Reader reader)
246     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
247         return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(jalview.schemabinding.version2.Alcodon.class, reader);
248     }
249
250     /**
251      * 
252      * 
253      * @throws org.exolab.castor.xml.ValidationException if this
254      * object is an invalid instance according to the schema
255      */
256     public void validate(
257     )
258     throws org.exolab.castor.xml.ValidationException {
259         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
260         validator.validate(this);
261     }
262
263 }