2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
18 * endpoints of X, Y and Z axes in that order
21 * @version $Revision$ $Date$
23 public class Axis implements java.io.Serializable
26 // --------------------------/
27 // - Class/Member Variables -/
28 // --------------------------/
36 * keeps track of state for field: _xPos
38 private boolean _has_xPos;
46 * keeps track of state for field: _yPos
48 private boolean _has_yPos;
56 * keeps track of state for field: _zPos
58 private boolean _has_zPos;
75 public void deleteXPos()
77 this._has_xPos = false;
82 public void deleteYPos()
84 this._has_yPos = false;
89 public void deleteZPos()
91 this._has_zPos = false;
95 * Returns the value of field 'xPos'.
97 * @return the value of field 'XPos'.
99 public float getXPos()
105 * Returns the value of field 'yPos'.
107 * @return the value of field 'YPos'.
109 public float getYPos()
115 * Returns the value of field 'zPos'.
117 * @return the value of field 'ZPos'.
119 public float getZPos()
127 * @return true if at least one XPos has been added
129 public boolean hasXPos()
131 return this._has_xPos;
137 * @return true if at least one YPos has been added
139 public boolean hasYPos()
141 return this._has_yPos;
147 * @return true if at least one ZPos has been added
149 public boolean hasZPos()
151 return this._has_zPos;
157 * @return true if this object is valid according to the schema
159 public boolean isValid()
164 } catch (org.exolab.castor.xml.ValidationException vex)
175 * @throws org.exolab.castor.xml.MarshalException
176 * if object is null or if any SAXException is thrown during
178 * @throws org.exolab.castor.xml.ValidationException
179 * if this object is an invalid instance according to the schema
181 public void marshal(final java.io.Writer out)
182 throws org.exolab.castor.xml.MarshalException,
183 org.exolab.castor.xml.ValidationException
185 Marshaller.marshal(this, out);
192 * @throws java.io.IOException
193 * if an IOException occurs during marshaling
194 * @throws org.exolab.castor.xml.ValidationException
195 * if this object is an invalid instance according to the schema
196 * @throws org.exolab.castor.xml.MarshalException
197 * if object is null or if any SAXException is thrown during
200 public void marshal(final org.xml.sax.ContentHandler handler)
201 throws java.io.IOException,
202 org.exolab.castor.xml.MarshalException,
203 org.exolab.castor.xml.ValidationException
205 Marshaller.marshal(this, handler);
209 * Sets the value of field 'xPos'.
212 * the value of field 'xPos'.
214 public void setXPos(final float xPos)
217 this._has_xPos = true;
221 * Sets the value of field 'yPos'.
224 * the value of field 'yPos'.
226 public void setYPos(final float yPos)
229 this._has_yPos = true;
233 * Sets the value of field 'zPos'.
236 * the value of field 'zPos'.
238 public void setZPos(final float zPos)
241 this._has_zPos = true;
248 * @throws org.exolab.castor.xml.MarshalException
249 * if object is null or if any SAXException is thrown during
251 * @throws org.exolab.castor.xml.ValidationException
252 * if this object is an invalid instance according to the schema
253 * @return the unmarshaled jalview.schemabinding.version2.Axis
255 public static jalview.schemabinding.version2.Axis unmarshal(
256 final java.io.Reader reader)
257 throws org.exolab.castor.xml.MarshalException,
258 org.exolab.castor.xml.ValidationException
260 return (jalview.schemabinding.version2.Axis) Unmarshaller
261 .unmarshal(jalview.schemabinding.version2.Axis.class, reader);
267 * @throws org.exolab.castor.xml.ValidationException
268 * if this object is an invalid instance according to the schema
270 public void validate() throws org.exolab.castor.xml.ValidationException
272 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
273 validator.validate(this);