2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class Alcodon implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
35 * keeps track of state for field: _pos1
\r
37 private boolean _has_pos1;
\r
45 * keeps track of state for field: _pos2
\r
47 private boolean _has_pos2;
\r
55 * keeps track of state for field: _pos3
\r
57 private boolean _has_pos3;
\r
75 public void deletePos1(
\r
77 this._has_pos1= false;
\r
82 public void deletePos2(
\r
84 this._has_pos2= false;
\r
89 public void deletePos3(
\r
91 this._has_pos3= false;
\r
95 * Returns the value of field 'pos1'.
\r
97 * @return the value of field 'Pos1'.
\r
99 public long getPos1(
\r
105 * Returns the value of field 'pos2'.
\r
107 * @return the value of field 'Pos2'.
\r
109 public long getPos2(
\r
115 * Returns the value of field 'pos3'.
\r
117 * @return the value of field 'Pos3'.
\r
119 public long getPos3(
\r
127 * @return true if at least one Pos1 has been added
\r
129 public boolean hasPos1(
\r
131 return this._has_pos1;
\r
137 * @return true if at least one Pos2 has been added
\r
139 public boolean hasPos2(
\r
141 return this._has_pos2;
\r
147 * @return true if at least one Pos3 has been added
\r
149 public boolean hasPos3(
\r
151 return this._has_pos3;
\r
157 * @return true if this object is valid according to the schema
\r
159 public boolean isValid(
\r
163 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
173 * @throws org.exolab.castor.xml.MarshalException if object is
\r
174 * null or if any SAXException is thrown during marshaling
\r
175 * @throws org.exolab.castor.xml.ValidationException if this
\r
176 * object is an invalid instance according to the schema
\r
178 public void marshal(
\r
179 final java.io.Writer out)
\r
180 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
181 Marshaller.marshal(this, out);
\r
188 * @throws java.io.IOException if an IOException occurs during
\r
190 * @throws org.exolab.castor.xml.ValidationException if this
\r
191 * object is an invalid instance according to the schema
\r
192 * @throws org.exolab.castor.xml.MarshalException if object is
\r
193 * null or if any SAXException is thrown during marshaling
\r
195 public void marshal(
\r
196 final org.xml.sax.ContentHandler handler)
\r
197 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
198 Marshaller.marshal(this, handler);
\r
202 * Sets the value of field 'pos1'.
\r
204 * @param pos1 the value of field 'pos1'.
\r
206 public void setPos1(
\r
209 this._has_pos1 = true;
\r
213 * Sets the value of field 'pos2'.
\r
215 * @param pos2 the value of field 'pos2'.
\r
217 public void setPos2(
\r
220 this._has_pos2 = true;
\r
224 * Sets the value of field 'pos3'.
\r
226 * @param pos3 the value of field 'pos3'.
\r
228 public void setPos3(
\r
231 this._has_pos3 = true;
\r
235 * Method unmarshal.
\r
238 * @throws org.exolab.castor.xml.MarshalException if object is
\r
239 * null or if any SAXException is thrown during marshaling
\r
240 * @throws org.exolab.castor.xml.ValidationException if this
\r
241 * object is an invalid instance according to the schema
\r
242 * @return the unmarshaled jalview.schemabinding.version2.Alcodo
\r
244 public static jalview.schemabinding.version2.Alcodon unmarshal(
\r
245 final java.io.Reader reader)
\r
246 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
247 return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(jalview.schemabinding.version2.Alcodon.class, reader);
\r
253 * @throws org.exolab.castor.xml.ValidationException if this
\r
254 * object is an invalid instance according to the schema
\r
256 public void validate(
\r
258 throws org.exolab.castor.xml.ValidationException {
\r
259 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
260 validator.validate(this);
\r