update author list in license for (JAL-826)
[jalview.git] / src / jalview / schemabinding / version2 / HiddenColumns.java
1 /*******************************************************************************
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3  * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
4  *
5  * This file is part of Jalview.
6  *
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.
10  *
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.
15  *
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  *******************************************************************************/
18 /*
19  * This class was automatically generated with 
20  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
21  * Schema.
22  * $Id$
23  */
24
25 package jalview.schemabinding.version2;
26
27   //---------------------------------/
28  //- Imported classes and packages -/
29 //---------------------------------/
30
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
33
34 /**
35  * Class HiddenColumns.
36  * 
37  * @version $Revision$ $Date$
38  */
39 public class HiddenColumns implements java.io.Serializable {
40
41
42       //--------------------------/
43      //- Class/Member Variables -/
44     //--------------------------/
45
46     /**
47      * Field _start.
48      */
49     private int _start;
50
51     /**
52      * keeps track of state for field: _start
53      */
54     private boolean _has_start;
55
56     /**
57      * Field _end.
58      */
59     private int _end;
60
61     /**
62      * keeps track of state for field: _end
63      */
64     private boolean _has_end;
65
66
67       //----------------/
68      //- Constructors -/
69     //----------------/
70
71     public HiddenColumns() {
72         super();
73     }
74
75
76       //-----------/
77      //- Methods -/
78     //-----------/
79
80     /**
81      */
82     public void deleteEnd(
83     ) {
84         this._has_end= false;
85     }
86
87     /**
88      */
89     public void deleteStart(
90     ) {
91         this._has_start= false;
92     }
93
94     /**
95      * Returns the value of field 'end'.
96      * 
97      * @return the value of field 'End'.
98      */
99     public int getEnd(
100     ) {
101         return this._end;
102     }
103
104     /**
105      * Returns the value of field 'start'.
106      * 
107      * @return the value of field 'Start'.
108      */
109     public int getStart(
110     ) {
111         return this._start;
112     }
113
114     /**
115      * Method hasEnd.
116      * 
117      * @return true if at least one End has been added
118      */
119     public boolean hasEnd(
120     ) {
121         return this._has_end;
122     }
123
124     /**
125      * Method hasStart.
126      * 
127      * @return true if at least one Start has been added
128      */
129     public boolean hasStart(
130     ) {
131         return this._has_start;
132     }
133
134     /**
135      * Method isValid.
136      * 
137      * @return true if this object is valid according to the schema
138      */
139     public boolean isValid(
140     ) {
141         try {
142             validate();
143         } catch (org.exolab.castor.xml.ValidationException vex) {
144             return false;
145         }
146         return true;
147     }
148
149     /**
150      * 
151      * 
152      * @param out
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
157      */
158     public void marshal(
159             final java.io.Writer out)
160     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
161         Marshaller.marshal(this, out);
162     }
163
164     /**
165      * 
166      * 
167      * @param handler
168      * @throws java.io.IOException if an IOException occurs during
169      * marshaling
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
174      */
175     public void marshal(
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);
179     }
180
181     /**
182      * Sets the value of field 'end'.
183      * 
184      * @param end the value of field 'end'.
185      */
186     public void setEnd(
187             final int end) {
188         this._end = end;
189         this._has_end = true;
190     }
191
192     /**
193      * Sets the value of field 'start'.
194      * 
195      * @param start the value of field 'start'.
196      */
197     public void setStart(
198             final int start) {
199         this._start = start;
200         this._has_start = true;
201     }
202
203     /**
204      * Method unmarshal.
205      * 
206      * @param reader
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
213      */
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);
218     }
219
220     /**
221      * 
222      * 
223      * @throws org.exolab.castor.xml.ValidationException if this
224      * object is an invalid instance according to the schema
225      */
226     public void validate(
227     )
228     throws org.exolab.castor.xml.ValidationException {
229         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
230         validator.validate(this);
231     }
232
233 }