2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import java.io.IOException;
\r
15 import java.io.Reader;
\r
16 import java.io.Serializable;
\r
17 import java.io.Writer;
\r
18 import org.exolab.castor.xml.MarshalException;
\r
19 import org.exolab.castor.xml.Marshaller;
\r
20 import org.exolab.castor.xml.Unmarshaller;
\r
21 import org.exolab.castor.xml.ValidationException;
\r
22 import org.xml.sax.ContentHandler;
\r
25 * Class HiddenColumns.
\r
27 * @version $Revision$ $Date$
\r
29 public class HiddenColumns implements java.io.Serializable {
\r
32 //--------------------------/
\r
33 //- Class/Member Variables -/
\r
34 //--------------------------/
\r
42 * keeps track of state for field: _start
\r
44 private boolean _has_start;
\r
52 * keeps track of state for field: _end
\r
54 private boolean _has_end;
\r
61 public HiddenColumns() {
\r
63 } //-- jalview.schemabinding.version2.HiddenColumns()
\r
74 public void deleteEnd()
\r
76 this._has_end= false;
\r
77 } //-- void deleteEnd()
\r
80 * Method deleteStart
\r
83 public void deleteStart()
\r
85 this._has_start= false;
\r
86 } //-- void deleteStart()
\r
89 * Returns the value of field 'end'.
\r
92 * @return the value of field 'end'.
\r
97 } //-- int getEnd()
\r
100 * Returns the value of field 'start'.
\r
103 * @return the value of field 'start'.
\r
105 public int getStart()
\r
107 return this._start;
\r
108 } //-- int getStart()
\r
117 public boolean hasEnd()
\r
119 return this._has_end;
\r
120 } //-- boolean hasEnd()
\r
129 public boolean hasStart()
\r
131 return this._has_start;
\r
132 } //-- boolean hasStart()
\r
141 public boolean isValid()
\r
146 catch (org.exolab.castor.xml.ValidationException vex) {
\r
150 } //-- boolean isValid()
\r
159 public void marshal(java.io.Writer out)
\r
160 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
163 Marshaller.marshal(this, out);
\r
164 } //-- void marshal(java.io.Writer)
\r
173 public void marshal(org.xml.sax.ContentHandler handler)
\r
174 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
177 Marshaller.marshal(this, handler);
\r
178 } //-- void marshal(org.xml.sax.ContentHandler)
\r
181 * Sets the value of field 'end'.
\r
183 * @param end the value of field 'end'.
\r
185 public void setEnd(int end)
\r
188 this._has_end = true;
\r
189 } //-- void setEnd(int)
\r
192 * Sets the value of field 'start'.
\r
194 * @param start the value of field 'start'.
\r
196 public void setStart(int start)
\r
198 this._start = start;
\r
199 this._has_start = true;
\r
200 } //-- void setStart(int)
\r
210 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
211 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
213 return (jalview.schemabinding.version2.HiddenColumns) Unmarshaller.unmarshal(jalview.schemabinding.version2.HiddenColumns.class, reader);
\r
214 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
220 public void validate()
\r
221 throws org.exolab.castor.xml.ValidationException
\r
223 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
224 validator.validate(this);
\r
225 } //-- void validate()
\r