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 Alcodon implements java.io.Serializable
25 // --------------------------/
26 // - Class/Member Variables -/
27 // --------------------------/
35 * keeps track of state for field: _pos1
37 private boolean _has_pos1;
45 * keeps track of state for field: _pos2
47 private boolean _has_pos2;
55 * keeps track of state for field: _pos3
57 private boolean _has_pos3;
74 public void deletePos1()
76 this._has_pos1 = false;
81 public void deletePos2()
83 this._has_pos2 = false;
88 public void deletePos3()
90 this._has_pos3 = false;
94 * Returns the value of field 'pos1'.
96 * @return the value of field 'Pos1'.
104 * Returns the value of field 'pos2'.
106 * @return the value of field 'Pos2'.
108 public long getPos2()
114 * Returns the value of field 'pos3'.
116 * @return the value of field 'Pos3'.
118 public long getPos3()
126 * @return true if at least one Pos1 has been added
128 public boolean hasPos1()
130 return this._has_pos1;
136 * @return true if at least one Pos2 has been added
138 public boolean hasPos2()
140 return this._has_pos2;
146 * @return true if at least one Pos3 has been added
148 public boolean hasPos3()
150 return this._has_pos3;
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 'pos1'.
211 * the value of field 'pos1'.
213 public void setPos1(final long pos1)
216 this._has_pos1 = true;
220 * Sets the value of field 'pos2'.
223 * the value of field 'pos2'.
225 public void setPos2(final long pos2)
228 this._has_pos2 = true;
232 * Sets the value of field 'pos3'.
235 * the value of field 'pos3'.
237 public void setPos3(final long pos3)
240 this._has_pos3 = 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.Alcodo
254 public static jalview.schemabinding.version2.Alcodon 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.Alcodon) Unmarshaller.unmarshal(
260 jalview.schemabinding.version2.Alcodon.class, reader);
266 * @throws org.exolab.castor.xml.ValidationException
267 * if this object is an invalid instance according to the schema
269 public void validate() throws org.exolab.castor.xml.ValidationException
271 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
272 validator.validate(this);