1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 *******************************************************************************/
19 * This class was automatically generated with
20 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
25 package jalview.schemabinding.version2;
27 //---------------------------------/
28 //- Imported classes and packages -/
29 //---------------------------------/
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
35 * Class HiddenColumns.
37 * @version $Revision$ $Date$
39 public class HiddenColumns implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
52 * keeps track of state for field: _start
54 private boolean _has_start;
62 * keeps track of state for field: _end
64 private boolean _has_end;
71 public HiddenColumns() {
82 public void deleteEnd(
89 public void deleteStart(
91 this._has_start= false;
95 * Returns the value of field 'end'.
97 * @return the value of field 'End'.
105 * Returns the value of field 'start'.
107 * @return the value of field 'Start'.
117 * @return true if at least one End has been added
119 public boolean hasEnd(
121 return this._has_end;
127 * @return true if at least one Start has been added
129 public boolean hasStart(
131 return this._has_start;
137 * @return true if this object is valid according to the schema
139 public boolean isValid(
143 } catch (org.exolab.castor.xml.ValidationException vex) {
153 * @throws org.exolab.castor.xml.MarshalException if object is
154 * null or if any SAXException is thrown during marshaling
155 * @throws org.exolab.castor.xml.ValidationException if this
156 * object is an invalid instance according to the schema
159 final java.io.Writer out)
160 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
161 Marshaller.marshal(this, out);
168 * @throws java.io.IOException if an IOException occurs during
170 * @throws org.exolab.castor.xml.ValidationException if this
171 * object is an invalid instance according to the schema
172 * @throws org.exolab.castor.xml.MarshalException if object is
173 * null or if any SAXException is thrown during marshaling
176 final org.xml.sax.ContentHandler handler)
177 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
178 Marshaller.marshal(this, handler);
182 * Sets the value of field 'end'.
184 * @param end the value of field 'end'.
189 this._has_end = true;
193 * Sets the value of field 'start'.
195 * @param start the value of field 'start'.
197 public void setStart(
200 this._has_start = true;
207 * @throws org.exolab.castor.xml.MarshalException if object is
208 * null or if any SAXException is thrown during marshaling
209 * @throws org.exolab.castor.xml.ValidationException if this
210 * object is an invalid instance according to the schema
211 * @return the unmarshaled
212 * jalview.schemabinding.version2.HiddenColumns
214 public static jalview.schemabinding.version2.HiddenColumns unmarshal(
215 final java.io.Reader reader)
216 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
217 return (jalview.schemabinding.version2.HiddenColumns) Unmarshaller.unmarshal(jalview.schemabinding.version2.HiddenColumns.class, reader);
223 * @throws org.exolab.castor.xml.ValidationException if this
224 * object is an invalid instance according to the schema
226 public void validate(
228 throws org.exolab.castor.xml.ValidationException {
229 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230 validator.validate(this);