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 * Class SequencePoint.
20 * @version $Revision$ $Date$
22 public class SequencePoint implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
32 private java.lang.String _sequenceRef;
40 * keeps track of state for field: _xPos
42 private boolean _has_xPos;
50 * keeps track of state for field: _yPos
52 private boolean _has_yPos;
60 * keeps track of state for field: _zPos
62 private boolean _has_zPos;
68 public SequencePoint()
79 public void deleteXPos()
81 this._has_xPos = false;
86 public void deleteYPos()
88 this._has_yPos = false;
93 public void deleteZPos()
95 this._has_zPos = false;
99 * Returns the value of field 'sequenceRef'.
101 * @return the value of field 'SequenceRef'.
103 public java.lang.String getSequenceRef()
105 return this._sequenceRef;
109 * Returns the value of field 'xPos'.
111 * @return the value of field 'XPos'.
113 public float getXPos()
119 * Returns the value of field 'yPos'.
121 * @return the value of field 'YPos'.
123 public float getYPos()
129 * Returns the value of field 'zPos'.
131 * @return the value of field 'ZPos'.
133 public float getZPos()
141 * @return true if at least one XPos has been added
143 public boolean hasXPos()
145 return this._has_xPos;
151 * @return true if at least one YPos has been added
153 public boolean hasYPos()
155 return this._has_yPos;
161 * @return true if at least one ZPos has been added
163 public boolean hasZPos()
165 return this._has_zPos;
171 * @return true if this object is valid according to the schema
173 public boolean isValid()
178 } catch (org.exolab.castor.xml.ValidationException vex)
189 * @throws org.exolab.castor.xml.MarshalException
190 * if object is null or if any SAXException is thrown during
192 * @throws org.exolab.castor.xml.ValidationException
193 * if this object is an invalid instance according to the schema
195 public void marshal(final java.io.Writer out)
196 throws org.exolab.castor.xml.MarshalException,
197 org.exolab.castor.xml.ValidationException
199 Marshaller.marshal(this, out);
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
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
219 Marshaller.marshal(this, handler);
223 * Sets the value of field 'sequenceRef'.
226 * the value of field 'sequenceRef'.
228 public void setSequenceRef(final java.lang.String sequenceRef)
230 this._sequenceRef = sequenceRef;
234 * Sets the value of field 'xPos'.
237 * the value of field 'xPos'.
239 public void setXPos(final float xPos)
242 this._has_xPos = true;
246 * Sets the value of field 'yPos'.
249 * the value of field 'yPos'.
251 public void setYPos(final float yPos)
254 this._has_yPos = true;
258 * Sets the value of field 'zPos'.
261 * the value of field 'zPos'.
263 public void setZPos(final float zPos)
266 this._has_zPos = true;
273 * @throws org.exolab.castor.xml.MarshalException
274 * if object is null or if any SAXException is thrown during
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
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
285 return (jalview.schemabinding.version2.SequencePoint) Unmarshaller
286 .unmarshal(jalview.schemabinding.version2.SequencePoint.class,
293 * @throws org.exolab.castor.xml.ValidationException
294 * if this object is an invalid instance according to the schema
296 public void validate() throws org.exolab.castor.xml.ValidationException
298 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
299 validator.validate(this);