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;
75 public void deletePos1(
77 this._has_pos1= false;
82 public void deletePos2(
84 this._has_pos2= false;
89 public void deletePos3(
91 this._has_pos3= false;
95 * Returns the value of field 'pos1'.
97 * @return the value of field 'Pos1'.
105 * Returns the value of field 'pos2'.
107 * @return the value of field 'Pos2'.
115 * Returns the value of field 'pos3'.
117 * @return the value of field 'Pos3'.
127 * @return true if at least one Pos1 has been added
129 public boolean hasPos1(
131 return this._has_pos1;
137 * @return true if at least one Pos2 has been added
139 public boolean hasPos2(
141 return this._has_pos2;
147 * @return true if at least one Pos3 has been added
149 public boolean hasPos3(
151 return this._has_pos3;
157 * @return true if this object is valid according to the schema
159 public boolean isValid(
163 } catch (org.exolab.castor.xml.ValidationException vex) {
173 * @throws org.exolab.castor.xml.MarshalException if object is
174 * null or if any SAXException is thrown during marshaling
175 * @throws org.exolab.castor.xml.ValidationException if this
176 * object is an invalid instance according to the schema
179 final java.io.Writer out)
180 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
181 Marshaller.marshal(this, out);
188 * @throws java.io.IOException if an IOException occurs during
190 * @throws org.exolab.castor.xml.ValidationException if this
191 * object is an invalid instance according to the schema
192 * @throws org.exolab.castor.xml.MarshalException if object is
193 * null or if any SAXException is thrown during marshaling
196 final org.xml.sax.ContentHandler handler)
197 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
198 Marshaller.marshal(this, handler);
202 * Sets the value of field 'pos1'.
204 * @param pos1 the value of field 'pos1'.
209 this._has_pos1 = true;
213 * Sets the value of field 'pos2'.
215 * @param pos2 the value of field 'pos2'.
220 this._has_pos2 = true;
224 * Sets the value of field 'pos3'.
226 * @param pos3 the value of field 'pos3'.
231 this._has_pos3 = true;
238 * @throws org.exolab.castor.xml.MarshalException if object is
239 * null or if any SAXException is thrown during marshaling
240 * @throws org.exolab.castor.xml.ValidationException if this
241 * object is an invalid instance according to the schema
242 * @return the unmarshaled jalview.schemabinding.version2.Alcodo
244 public static jalview.schemabinding.version2.Alcodon unmarshal(
245 final java.io.Reader reader)
246 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
247 return (jalview.schemabinding.version2.Alcodon) Unmarshaller.unmarshal(jalview.schemabinding.version2.Alcodon.class, reader);
253 * @throws org.exolab.castor.xml.ValidationException if this
254 * object is an invalid instance according to the schema
256 public void validate(
258 throws org.exolab.castor.xml.ValidationException {
259 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
260 validator.validate(this);