Merge branch 'features/pca_jaxb_datasetrefs_JAL-3171_JAL-3063_JAL-1767' into develop
[jalview.git] / src / jalview / schemabinding / version2 / SeqPointMax.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 SeqPointMax.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class SeqPointMax implements java.io.Serializable
23 {
24
25   // --------------------------/
26   // - Class/Member Variables -/
27   // --------------------------/
28
29   /**
30    * Field _xPos.
31    */
32   private float _xPos;
33
34   /**
35    * keeps track of state for field: _xPos
36    */
37   private boolean _has_xPos;
38
39   /**
40    * Field _yPos.
41    */
42   private float _yPos;
43
44   /**
45    * keeps track of state for field: _yPos
46    */
47   private boolean _has_yPos;
48
49   /**
50    * Field _zPos.
51    */
52   private float _zPos;
53
54   /**
55    * keeps track of state for field: _zPos
56    */
57   private boolean _has_zPos;
58
59   // ----------------/
60   // - Constructors -/
61   // ----------------/
62
63   public SeqPointMax()
64   {
65     super();
66   }
67
68   // -----------/
69   // - Methods -/
70   // -----------/
71
72   /**
73    */
74   public void deleteXPos()
75   {
76     this._has_xPos = false;
77   }
78
79   /**
80    */
81   public void deleteYPos()
82   {
83     this._has_yPos = false;
84   }
85
86   /**
87    */
88   public void deleteZPos()
89   {
90     this._has_zPos = false;
91   }
92
93   /**
94    * Returns the value of field 'xPos'.
95    * 
96    * @return the value of field 'XPos'.
97    */
98   public float getXPos()
99   {
100     return this._xPos;
101   }
102
103   /**
104    * Returns the value of field 'yPos'.
105    * 
106    * @return the value of field 'YPos'.
107    */
108   public float getYPos()
109   {
110     return this._yPos;
111   }
112
113   /**
114    * Returns the value of field 'zPos'.
115    * 
116    * @return the value of field 'ZPos'.
117    */
118   public float getZPos()
119   {
120     return this._zPos;
121   }
122
123   /**
124    * Method hasXPos.
125    * 
126    * @return true if at least one XPos has been added
127    */
128   public boolean hasXPos()
129   {
130     return this._has_xPos;
131   }
132
133   /**
134    * Method hasYPos.
135    * 
136    * @return true if at least one YPos has been added
137    */
138   public boolean hasYPos()
139   {
140     return this._has_yPos;
141   }
142
143   /**
144    * Method hasZPos.
145    * 
146    * @return true if at least one ZPos has been added
147    */
148   public boolean hasZPos()
149   {
150     return this._has_zPos;
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 'xPos'.
209    * 
210    * @param xPos
211    *          the value of field 'xPos'.
212    */
213   public void setXPos(final float xPos)
214   {
215     this._xPos = xPos;
216     this._has_xPos = true;
217   }
218
219   /**
220    * Sets the value of field 'yPos'.
221    * 
222    * @param yPos
223    *          the value of field 'yPos'.
224    */
225   public void setYPos(final float yPos)
226   {
227     this._yPos = yPos;
228     this._has_yPos = true;
229   }
230
231   /**
232    * Sets the value of field 'zPos'.
233    * 
234    * @param zPos
235    *          the value of field 'zPos'.
236    */
237   public void setZPos(final float zPos)
238   {
239     this._zPos = zPos;
240     this._has_zPos = 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.SeqPointMax
253    */
254   public static jalview.schemabinding.version2.SeqPointMax 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.SeqPointMax) Unmarshaller
260             .unmarshal(jalview.schemabinding.version2.SeqPointMax.class,
261                     reader);
262   }
263
264   /**
265    * 
266    * 
267    * @throws org.exolab.castor.xml.ValidationException
268    *           if this object is an invalid instance according to the schema
269    */
270   public void validate() throws org.exolab.castor.xml.ValidationException
271   {
272     org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
273     validator.validate(this);
274   }
275
276 }