JAL-3178 include non-positional features in their group on export
[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   // - Constructors -/
61   // ----------------/
62
63   public Alcodon()
64   {
65     super();
66   }
67
68   // -----------/
69   // - Methods -/
70   // -----------/
71
72   /**
73      */
74   public void deletePos1()
75   {
76     this._has_pos1 = false;
77   }
78
79   /**
80      */
81   public void deletePos2()
82   {
83     this._has_pos2 = false;
84   }
85
86   /**
87      */
88   public void deletePos3()
89   {
90     this._has_pos3 = false;
91   }
92
93   /**
94    * Returns the value of field 'pos1'.
95    * 
96    * @return the value of field 'Pos1'.
97    */
98   public long getPos1()
99   {
100     return this._pos1;
101   }
102
103   /**
104    * Returns the value of field 'pos2'.
105    * 
106    * @return the value of field 'Pos2'.
107    */
108   public long getPos2()
109   {
110     return this._pos2;
111   }
112
113   /**
114    * Returns the value of field 'pos3'.
115    * 
116    * @return the value of field 'Pos3'.
117    */
118   public long getPos3()
119   {
120     return this._pos3;
121   }
122
123   /**
124    * Method hasPos1.
125    * 
126    * @return true if at least one Pos1 has been added
127    */
128   public boolean hasPos1()
129   {
130     return this._has_pos1;
131   }
132
133   /**
134    * Method hasPos2.
135    * 
136    * @return true if at least one Pos2 has been added
137    */
138   public boolean hasPos2()
139   {
140     return this._has_pos2;
141   }
142
143   /**
144    * Method hasPos3.
145    * 
146    * @return true if at least one Pos3 has been added
147    */
148   public boolean hasPos3()
149   {
150     return this._has_pos3;
151   }
152
153   /**
154    * Method isValid.
155    * 
156    * @return true if this object is valid according to the schema
157    */
158   public boolean isValid()
159   {
160     try
161     {
162       validate();
163     } catch (org.exolab.castor.xml.ValidationException vex)
164     {
165       return false;
166     }
167     return true;
168   }
169
170   /**
171    * 
172    * 
173    * @param out
174    * @throws org.exolab.castor.xml.MarshalException
175    *           if object is null or if any SAXException is thrown during
176    *           marshaling
177    * @throws org.exolab.castor.xml.ValidationException
178    *           if this object is an invalid instance according to the schema
179    */
180   public void marshal(final java.io.Writer out)
181           throws org.exolab.castor.xml.MarshalException,
182           org.exolab.castor.xml.ValidationException
183   {
184     Marshaller.marshal(this, out);
185   }
186
187   /**
188    * 
189    * 
190    * @param handler
191    * @throws java.io.IOException
192    *           if an IOException occurs during marshaling
193    * @throws org.exolab.castor.xml.ValidationException
194    *           if this object is an invalid instance according to the schema
195    * @throws org.exolab.castor.xml.MarshalException
196    *           if object is null or if any SAXException is thrown during
197    *           marshaling
198    */
199   public void marshal(final org.xml.sax.ContentHandler handler)
200           throws java.io.IOException,
201           org.exolab.castor.xml.MarshalException,
202           org.exolab.castor.xml.ValidationException
203   {
204     Marshaller.marshal(this, handler);
205   }
206
207   /**
208    * Sets the value of field 'pos1'.
209    * 
210    * @param pos1
211    *          the value of field 'pos1'.
212    */
213   public void setPos1(final long pos1)
214   {
215     this._pos1 = pos1;
216     this._has_pos1 = true;
217   }
218
219   /**
220    * Sets the value of field 'pos2'.
221    * 
222    * @param pos2
223    *          the value of field 'pos2'.
224    */
225   public void setPos2(final long pos2)
226   {
227     this._pos2 = pos2;
228     this._has_pos2 = true;
229   }
230
231   /**
232    * Sets the value of field 'pos3'.
233    * 
234    * @param pos3
235    *          the value of field 'pos3'.
236    */
237   public void setPos3(final long pos3)
238   {
239     this._pos3 = pos3;
240     this._has_pos3 = true;
241   }
242
243   /**
244    * Method unmarshal.
245    * 
246    * @param reader
247    * @throws org.exolab.castor.xml.MarshalException
248    *           if object is null or if any SAXException is thrown during
249    *           marshaling
250    * @throws org.exolab.castor.xml.ValidationException
251    *           if this object is an invalid instance according to the schema
252    * @return the unmarshaled jalview.schemabinding.version2.Alcodo
253    */
254   public static jalview.schemabinding.version2.Alcodon unmarshal(
255           final java.io.Reader reader)
256           throws org.exolab.castor.xml.MarshalException,
257           org.exolab.castor.xml.ValidationException
258   {
259     return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(
260             jalview.schemabinding.version2.Alcodon.class, reader);
261   }
262
263   /**
264    * 
265    * 
266    * @throws org.exolab.castor.xml.ValidationException
267    *           if this object is an invalid instance according to the schema
268    */
269   public void validate() throws org.exolab.castor.xml.ValidationException
270   {
271     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
272     validator.validate(this);
273   }
274
275 }