5b83e647875a862aa7eaeced9a9436aecef3b2d0
[jalview.git] / src / jalview / schemabinding / version2 / HiddenColumns.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
4  * Schema.\r
5  * $Id$\r
6  */\r
7 \r
8 package jalview.schemabinding.version2;\r
9 \r
10   //---------------------------------/\r
11  //- Imported classes and packages -/\r
12 //---------------------------------/\r
13 \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
23 \r
24 /**\r
25  * Class HiddenColumns.\r
26  * \r
27  * @version $Revision$ $Date$\r
28  */\r
29 public class HiddenColumns implements java.io.Serializable {\r
30 \r
31 \r
32       //--------------------------/\r
33      //- Class/Member Variables -/\r
34     //--------------------------/\r
35 \r
36     /**\r
37      * Field _start\r
38      */\r
39     private int _start;\r
40 \r
41     /**\r
42      * keeps track of state for field: _start\r
43      */\r
44     private boolean _has_start;\r
45 \r
46     /**\r
47      * Field _end\r
48      */\r
49     private int _end;\r
50 \r
51     /**\r
52      * keeps track of state for field: _end\r
53      */\r
54     private boolean _has_end;\r
55 \r
56 \r
57       //----------------/\r
58      //- Constructors -/\r
59     //----------------/\r
60 \r
61     public HiddenColumns() {\r
62         super();\r
63     } //-- jalview.schemabinding.version2.HiddenColumns()\r
64 \r
65 \r
66       //-----------/\r
67      //- Methods -/\r
68     //-----------/\r
69 \r
70     /**\r
71      * Method deleteEnd\r
72      * \r
73      */\r
74     public void deleteEnd()\r
75     {\r
76         this._has_end= false;\r
77     } //-- void deleteEnd() \r
78 \r
79     /**\r
80      * Method deleteStart\r
81      * \r
82      */\r
83     public void deleteStart()\r
84     {\r
85         this._has_start= false;\r
86     } //-- void deleteStart() \r
87 \r
88     /**\r
89      * Returns the value of field 'end'.\r
90      * \r
91      * @return int\r
92      * @return the value of field 'end'.\r
93      */\r
94     public int getEnd()\r
95     {\r
96         return this._end;\r
97     } //-- int getEnd() \r
98 \r
99     /**\r
100      * Returns the value of field 'start'.\r
101      * \r
102      * @return int\r
103      * @return the value of field 'start'.\r
104      */\r
105     public int getStart()\r
106     {\r
107         return this._start;\r
108     } //-- int getStart() \r
109 \r
110     /**\r
111      * Method hasEnd\r
112      * \r
113      * \r
114      * \r
115      * @return boolean\r
116      */\r
117     public boolean hasEnd()\r
118     {\r
119         return this._has_end;\r
120     } //-- boolean hasEnd() \r
121 \r
122     /**\r
123      * Method hasStart\r
124      * \r
125      * \r
126      * \r
127      * @return boolean\r
128      */\r
129     public boolean hasStart()\r
130     {\r
131         return this._has_start;\r
132     } //-- boolean hasStart() \r
133 \r
134     /**\r
135      * Method isValid\r
136      * \r
137      * \r
138      * \r
139      * @return boolean\r
140      */\r
141     public boolean isValid()\r
142     {\r
143         try {\r
144             validate();\r
145         }\r
146         catch (org.exolab.castor.xml.ValidationException vex) {\r
147             return false;\r
148         }\r
149         return true;\r
150     } //-- boolean isValid() \r
151 \r
152     /**\r
153      * Method marshal\r
154      * \r
155      * \r
156      * \r
157      * @param out\r
158      */\r
159     public void marshal(java.io.Writer out)\r
160         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
161     {\r
162         \r
163         Marshaller.marshal(this, out);\r
164     } //-- void marshal(java.io.Writer) \r
165 \r
166     /**\r
167      * Method marshal\r
168      * \r
169      * \r
170      * \r
171      * @param handler\r
172      */\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
175     {\r
176         \r
177         Marshaller.marshal(this, handler);\r
178     } //-- void marshal(org.xml.sax.ContentHandler) \r
179 \r
180     /**\r
181      * Sets the value of field 'end'.\r
182      * \r
183      * @param end the value of field 'end'.\r
184      */\r
185     public void setEnd(int end)\r
186     {\r
187         this._end = end;\r
188         this._has_end = true;\r
189     } //-- void setEnd(int) \r
190 \r
191     /**\r
192      * Sets the value of field 'start'.\r
193      * \r
194      * @param start the value of field 'start'.\r
195      */\r
196     public void setStart(int start)\r
197     {\r
198         this._start = start;\r
199         this._has_start = true;\r
200     } //-- void setStart(int) \r
201 \r
202     /**\r
203      * Method unmarshal\r
204      * \r
205      * \r
206      * \r
207      * @param reader\r
208      * @return Object\r
209      */\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
212     {\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
215 \r
216     /**\r
217      * Method validate\r
218      * \r
219      */\r
220     public void validate()\r
221         throws org.exolab.castor.xml.ValidationException\r
222     {\r
223         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
224         validator.validate(this);\r
225     } //-- void validate() \r
226 \r
227 }\r