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 HiddenColumns.
20 * @version $Revision$ $Date$
22 public class HiddenColumns implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
35 * keeps track of state for field: _start
37 private boolean _has_start;
45 * keeps track of state for field: _end
47 private boolean _has_end;
54 public HiddenColumns() {
65 public void deleteEnd(
72 public void deleteStart(
74 this._has_start= false;
78 * Returns the value of field 'end'.
80 * @return the value of field 'End'.
88 * Returns the value of field 'start'.
90 * @return the value of field 'Start'.
100 * @return true if at least one End has been added
102 public boolean hasEnd(
104 return this._has_end;
110 * @return true if at least one Start has been added
112 public boolean hasStart(
114 return this._has_start;
120 * @return true if this object is valid according to the schema
122 public boolean isValid(
126 } catch (org.exolab.castor.xml.ValidationException vex) {
136 * @throws org.exolab.castor.xml.MarshalException if object is
137 * null or if any SAXException is thrown during marshaling
138 * @throws org.exolab.castor.xml.ValidationException if this
139 * object is an invalid instance according to the schema
142 final java.io.Writer out)
143 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
144 Marshaller.marshal(this, out);
151 * @throws java.io.IOException if an IOException occurs during
153 * @throws org.exolab.castor.xml.ValidationException if this
154 * object is an invalid instance according to the schema
155 * @throws org.exolab.castor.xml.MarshalException if object is
156 * null or if any SAXException is thrown during marshaling
159 final org.xml.sax.ContentHandler handler)
160 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
161 Marshaller.marshal(this, handler);
165 * Sets the value of field 'end'.
167 * @param end the value of field 'end'.
172 this._has_end = true;
176 * Sets the value of field 'start'.
178 * @param start the value of field 'start'.
180 public void setStart(
183 this._has_start = true;
190 * @throws org.exolab.castor.xml.MarshalException if object is
191 * null or if any SAXException is thrown during marshaling
192 * @throws org.exolab.castor.xml.ValidationException if this
193 * object is an invalid instance according to the schema
194 * @return the unmarshaled
195 * jalview.schemabinding.version2.HiddenColumns
197 public static jalview.schemabinding.version2.HiddenColumns unmarshal(
198 final java.io.Reader reader)
199 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
200 return (jalview.schemabinding.version2.HiddenColumns) Unmarshaller.unmarshal(jalview.schemabinding.version2.HiddenColumns.class, reader);
206 * @throws org.exolab.castor.xml.ValidationException if this
207 * object is an invalid instance according to the schema
209 public void validate(
211 throws org.exolab.castor.xml.ValidationException {
212 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
213 validator.validate(this);