2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.schemabinding.version2;
23 //---------------------------------/
24 //- Imported classes and packages -/
25 //---------------------------------/
27 import org.exolab.castor.xml.Marshaller;
28 import org.exolab.castor.xml.Unmarshaller;
31 * Class HiddenColumns.
33 * @version $Revision$ $Date$
35 public class HiddenColumns implements java.io.Serializable
38 // --------------------------/
39 // - Class/Member Variables -/
40 // --------------------------/
48 * keeps track of state for field: _start
50 private boolean _has_start;
58 * keeps track of state for field: _end
60 private boolean _has_end;
66 public HiddenColumns()
77 public void deleteEnd()
79 this._has_end = false;
84 public void deleteStart()
86 this._has_start = false;
90 * Returns the value of field 'end'.
92 * @return the value of field 'End'.
100 * Returns the value of field 'start'.
102 * @return the value of field 'Start'.
104 public int getStart()
112 * @return true if at least one End has been added
114 public boolean hasEnd()
116 return this._has_end;
122 * @return true if at least one Start has been added
124 public boolean hasStart()
126 return this._has_start;
132 * @return true if this object is valid according to the schema
134 public boolean isValid()
139 } catch (org.exolab.castor.xml.ValidationException vex)
150 * @throws org.exolab.castor.xml.MarshalException
151 * if object is null or if any SAXException is thrown during
153 * @throws org.exolab.castor.xml.ValidationException
154 * if this object is an invalid instance according to the schema
156 public void marshal(final java.io.Writer out)
157 throws org.exolab.castor.xml.MarshalException,
158 org.exolab.castor.xml.ValidationException
160 Marshaller.marshal(this, out);
167 * @throws java.io.IOException
168 * if an IOException occurs during marshaling
169 * @throws org.exolab.castor.xml.ValidationException
170 * if this object is an invalid instance according to the schema
171 * @throws org.exolab.castor.xml.MarshalException
172 * if object is null or if any SAXException is thrown during
175 public void marshal(final org.xml.sax.ContentHandler handler)
176 throws java.io.IOException,
177 org.exolab.castor.xml.MarshalException,
178 org.exolab.castor.xml.ValidationException
180 Marshaller.marshal(this, handler);
184 * Sets the value of field 'end'.
187 * the value of field 'end'.
189 public void setEnd(final int end)
192 this._has_end = true;
196 * Sets the value of field 'start'.
199 * the value of field 'start'.
201 public void setStart(final int start)
204 this._has_start = true;
211 * @throws org.exolab.castor.xml.MarshalException
212 * if object is null or if any SAXException is thrown during
214 * @throws org.exolab.castor.xml.ValidationException
215 * if this object is an invalid instance according to the schema
216 * @return the unmarshaled jalview.schemabinding.version2.HiddenColumns
218 public static jalview.schemabinding.version2.HiddenColumns unmarshal(
219 final java.io.Reader reader)
220 throws org.exolab.castor.xml.MarshalException,
221 org.exolab.castor.xml.ValidationException
223 return (jalview.schemabinding.version2.HiddenColumns) Unmarshaller
224 .unmarshal(jalview.schemabinding.version2.HiddenColumns.class,
231 * @throws org.exolab.castor.xml.ValidationException
232 * if this object is an invalid instance according to the schema
234 public void validate() throws org.exolab.castor.xml.ValidationException
236 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
237 validator.validate(this);