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;
20 * @version $Revision$ $Date$
22 public class SeqPointMin implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
35 * keeps track of state for field: _xPos
37 private boolean _has_xPos;
45 * keeps track of state for field: _yPos
47 private boolean _has_yPos;
55 * keeps track of state for field: _zPos
57 private boolean _has_zPos;
74 public void deleteXPos()
76 this._has_xPos = false;
81 public void deleteYPos()
83 this._has_yPos = false;
88 public void deleteZPos()
90 this._has_zPos = false;
94 * Returns the value of field 'xPos'.
96 * @return the value of field 'XPos'.
98 public float getXPos()
104 * Returns the value of field 'yPos'.
106 * @return the value of field 'YPos'.
108 public float getYPos()
114 * Returns the value of field 'zPos'.
116 * @return the value of field 'ZPos'.
118 public float getZPos()
126 * @return true if at least one XPos has been added
128 public boolean hasXPos()
130 return this._has_xPos;
136 * @return true if at least one YPos has been added
138 public boolean hasYPos()
140 return this._has_yPos;
146 * @return true if at least one ZPos has been added
148 public boolean hasZPos()
150 return this._has_zPos;
156 * @return true if this object is valid according to the schema
158 public boolean isValid()
163 } catch (org.exolab.castor.xml.ValidationException vex)
174 * @throws org.exolab.castor.xml.MarshalException
175 * if object is null or if any SAXException is thrown during
177 * @throws org.exolab.castor.xml.ValidationException
178 * if this object is an invalid instance according to the schema
180 public void marshal(final java.io.Writer out)
181 throws org.exolab.castor.xml.MarshalException,
182 org.exolab.castor.xml.ValidationException
184 Marshaller.marshal(this, out);
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
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
204 Marshaller.marshal(this, handler);
208 * Sets the value of field 'xPos'.
211 * the value of field 'xPos'.
213 public void setXPos(final float xPos)
216 this._has_xPos = true;
220 * Sets the value of field 'yPos'.
223 * the value of field 'yPos'.
225 public void setYPos(final float yPos)
228 this._has_yPos = true;
232 * Sets the value of field 'zPos'.
235 * the value of field 'zPos'.
237 public void setZPos(final float zPos)
240 this._has_zPos = true;
247 * @throws org.exolab.castor.xml.MarshalException
248 * if object is null or if any SAXException is thrown during
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.SeqPointMin
254 public static jalview.schemabinding.version2.SeqPointMin unmarshal(
255 final java.io.Reader reader)
256 throws org.exolab.castor.xml.MarshalException,
257 org.exolab.castor.xml.ValidationException
259 return (jalview.schemabinding.version2.SeqPointMin) Unmarshaller
260 .unmarshal(jalview.schemabinding.version2.SeqPointMin.class,
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);