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