Merge branch 'features/pca_jaxb_datasetrefs_JAL-3171_JAL-3063_JAL-1767' into develop
[jalview.git] / src / jalview / schemabinding / version2 / SequencePoint.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 SequencePoint.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class SequencePoint implements java.io.Serializable
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _sequenceRef.
31    */
32   private java.lang.String _sequenceRef;
33
34   /**
35    * Field _xPos.
36    */
37   private float _xPos;
38
39   /**
40    * keeps track of state for field: _xPos
41    */
42   private boolean _has_xPos;
43
44   /**
45    * Field _yPos.
46    */
47   private float _yPos;
48
49   /**
50    * keeps track of state for field: _yPos
51    */
52   private boolean _has_yPos;
53
54   /**
55    * Field _zPos.
56    */
57   private float _zPos;
58
59   /**
60    * keeps track of state for field: _zPos
61    */
62   private boolean _has_zPos;
63
64   // ----------------/
65   // - Constructors -/
66   // ----------------/
67
68   public SequencePoint()
69   {
70     super();
71   }
72
73   // -----------/
74   // - Methods -/
75   // -----------/
76
77   /**
78    */
79   public void deleteXPos()
80   {
81     this._has_xPos = false;
82   }
83
84   /**
85    */
86   public void deleteYPos()
87   {
88     this._has_yPos = false;
89   }
90
91   /**
92    */
93   public void deleteZPos()
94   {
95     this._has_zPos = false;
96   }
97
98   /**
99    * Returns the value of field 'sequenceRef'.
100    * 
101    * @return the value of field 'SequenceRef'.
102    */
103   public java.lang.String getSequenceRef()
104   {
105     return this._sequenceRef;
106   }
107
108   /**
109    * Returns the value of field 'xPos'.
110    * 
111    * @return the value of field 'XPos'.
112    */
113   public float getXPos()
114   {
115     return this._xPos;
116   }
117
118   /**
119    * Returns the value of field 'yPos'.
120    * 
121    * @return the value of field 'YPos'.
122    */
123   public float getYPos()
124   {
125     return this._yPos;
126   }
127
128   /**
129    * Returns the value of field 'zPos'.
130    * 
131    * @return the value of field 'ZPos'.
132    */
133   public float getZPos()
134   {
135     return this._zPos;
136   }
137
138   /**
139    * Method hasXPos.
140    * 
141    * @return true if at least one XPos has been added
142    */
143   public boolean hasXPos()
144   {
145     return this._has_xPos;
146   }
147
148   /**
149    * Method hasYPos.
150    * 
151    * @return true if at least one YPos has been added
152    */
153   public boolean hasYPos()
154   {
155     return this._has_yPos;
156   }
157
158   /**
159    * Method hasZPos.
160    * 
161    * @return true if at least one ZPos has been added
162    */
163   public boolean hasZPos()
164   {
165     return this._has_zPos;
166   }
167
168   /**
169    * Method isValid.
170    * 
171    * @return true if this object is valid according to the schema
172    */
173   public boolean isValid()
174   {
175     try
176     {
177       validate();
178     } catch (org.exolab.castor.xml.ValidationException vex)
179     {
180       return false;
181     }
182     return true;
183   }
184
185   /**
186    * 
187    * 
188    * @param out
189    * @throws org.exolab.castor.xml.MarshalException
190    *           if object is null or if any SAXException is thrown during
191    *           marshaling
192    * @throws org.exolab.castor.xml.ValidationException
193    *           if this object is an invalid instance according to the schema
194    */
195   public void marshal(final java.io.Writer out)
196           throws org.exolab.castor.xml.MarshalException,
197           org.exolab.castor.xml.ValidationException
198   {
199     Marshaller.marshal(this, out);
200   }
201
202   /**
203    * 
204    * 
205    * @param handler
206    * @throws java.io.IOException
207    *           if an IOException occurs during marshaling
208    * @throws org.exolab.castor.xml.ValidationException
209    *           if this object is an invalid instance according to the schema
210    * @throws org.exolab.castor.xml.MarshalException
211    *           if object is null or if any SAXException is thrown during
212    *           marshaling
213    */
214   public void marshal(final org.xml.sax.ContentHandler handler)
215           throws java.io.IOException,
216           org.exolab.castor.xml.MarshalException,
217           org.exolab.castor.xml.ValidationException
218   {
219     Marshaller.marshal(this, handler);
220   }
221
222   /**
223    * Sets the value of field 'sequenceRef'.
224    * 
225    * @param sequenceRef
226    *          the value of field 'sequenceRef'.
227    */
228   public void setSequenceRef(final java.lang.String sequenceRef)
229   {
230     this._sequenceRef = sequenceRef;
231   }
232
233   /**
234    * Sets the value of field 'xPos'.
235    * 
236    * @param xPos
237    *          the value of field 'xPos'.
238    */
239   public void setXPos(final float xPos)
240   {
241     this._xPos = xPos;
242     this._has_xPos = true;
243   }
244
245   /**
246    * Sets the value of field 'yPos'.
247    * 
248    * @param yPos
249    *          the value of field 'yPos'.
250    */
251   public void setYPos(final float yPos)
252   {
253     this._yPos = yPos;
254     this._has_yPos = true;
255   }
256
257   /**
258    * Sets the value of field 'zPos'.
259    * 
260    * @param zPos
261    *          the value of field 'zPos'.
262    */
263   public void setZPos(final float zPos)
264   {
265     this._zPos = zPos;
266     this._has_zPos = true;
267   }
268
269   /**
270    * Method unmarshal.
271    * 
272    * @param reader
273    * @throws org.exolab.castor.xml.MarshalException
274    *           if object is null or if any SAXException is thrown during
275    *           marshaling
276    * @throws org.exolab.castor.xml.ValidationException
277    *           if this object is an invalid instance according to the schema
278    * @return the unmarshaled jalview.schemabinding.version2.SequencePoint
279    */
280   public static jalview.schemabinding.version2.SequencePoint unmarshal(
281           final java.io.Reader reader)
282           throws org.exolab.castor.xml.MarshalException,
283           org.exolab.castor.xml.ValidationException
284   {
285     return (jalview.schemabinding.version2.SequencePoint) Unmarshaller
286             .unmarshal(jalview.schemabinding.version2.SequencePoint.class,
287                     reader);
288   }
289
290   /**
291    * 
292    * 
293    * @throws org.exolab.castor.xml.ValidationException
294    *           if this object is an invalid instance according to the schema
295    */
296   public void validate() throws org.exolab.castor.xml.ValidationException
297   {
298     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
299     validator.validate(this);
300   }
301
302 }