jalview XML schema update for 2.4.1 (or 2.5?) introducing IDs for views and treepanel...
[jalview.git] / src / jalview / schemabinding / version2 / MapListTo.java
1 /*\r
2  * This class was automatically generated with \r
3  * <a href="http://www.castor.org">Castor 1.1</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 org.exolab.castor.xml.Marshaller;\r
15 import org.exolab.castor.xml.Unmarshaller;\r
16 \r
17 /**\r
18  * a region from start to end inclusive\r
19  * \r
20  * @version $Revision$ $Date$\r
21  */\r
22 public class MapListTo implements java.io.Serializable {\r
23 \r
24 \r
25       //--------------------------/\r
26      //- Class/Member Variables -/\r
27     //--------------------------/\r
28 \r
29     /**\r
30      * Field _start.\r
31      */\r
32     private int _start;\r
33 \r
34     /**\r
35      * keeps track of state for field: _start\r
36      */\r
37     private boolean _has_start;\r
38 \r
39     /**\r
40      * Field _end.\r
41      */\r
42     private int _end;\r
43 \r
44     /**\r
45      * keeps track of state for field: _end\r
46      */\r
47     private boolean _has_end;\r
48 \r
49 \r
50       //----------------/\r
51      //- Constructors -/\r
52     //----------------/\r
53 \r
54     public MapListTo() {\r
55         super();\r
56     }\r
57 \r
58 \r
59       //-----------/\r
60      //- Methods -/\r
61     //-----------/\r
62 \r
63     /**\r
64      */\r
65     public void deleteEnd(\r
66     ) {\r
67         this._has_end= false;\r
68     }\r
69 \r
70     /**\r
71      */\r
72     public void deleteStart(\r
73     ) {\r
74         this._has_start= false;\r
75     }\r
76 \r
77     /**\r
78      * Returns the value of field 'end'.\r
79      * \r
80      * @return the value of field 'End'.\r
81      */\r
82     public int getEnd(\r
83     ) {\r
84         return this._end;\r
85     }\r
86 \r
87     /**\r
88      * Returns the value of field 'start'.\r
89      * \r
90      * @return the value of field 'Start'.\r
91      */\r
92     public int getStart(\r
93     ) {\r
94         return this._start;\r
95     }\r
96 \r
97     /**\r
98      * Method hasEnd.\r
99      * \r
100      * @return true if at least one End has been added\r
101      */\r
102     public boolean hasEnd(\r
103     ) {\r
104         return this._has_end;\r
105     }\r
106 \r
107     /**\r
108      * Method hasStart.\r
109      * \r
110      * @return true if at least one Start has been added\r
111      */\r
112     public boolean hasStart(\r
113     ) {\r
114         return this._has_start;\r
115     }\r
116 \r
117     /**\r
118      * Method isValid.\r
119      * \r
120      * @return true if this object is valid according to the schema\r
121      */\r
122     public boolean isValid(\r
123     ) {\r
124         try {\r
125             validate();\r
126         } catch (org.exolab.castor.xml.ValidationException vex) {\r
127             return false;\r
128         }\r
129         return true;\r
130     }\r
131 \r
132     /**\r
133      * \r
134      * \r
135      * @param out\r
136      * @throws org.exolab.castor.xml.MarshalException if object is\r
137      * null or if any SAXException is thrown during marshaling\r
138      * @throws org.exolab.castor.xml.ValidationException if this\r
139      * object is an invalid instance according to the schema\r
140      */\r
141     public void marshal(\r
142             final java.io.Writer out)\r
143     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
144         Marshaller.marshal(this, out);\r
145     }\r
146 \r
147     /**\r
148      * \r
149      * \r
150      * @param handler\r
151      * @throws java.io.IOException if an IOException occurs during\r
152      * marshaling\r
153      * @throws org.exolab.castor.xml.ValidationException if this\r
154      * object is an invalid instance according to the schema\r
155      * @throws org.exolab.castor.xml.MarshalException if object is\r
156      * null or if any SAXException is thrown during marshaling\r
157      */\r
158     public void marshal(\r
159             final org.xml.sax.ContentHandler handler)\r
160     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
161         Marshaller.marshal(this, handler);\r
162     }\r
163 \r
164     /**\r
165      * Sets the value of field 'end'.\r
166      * \r
167      * @param end the value of field 'end'.\r
168      */\r
169     public void setEnd(\r
170             final int end) {\r
171         this._end = end;\r
172         this._has_end = true;\r
173     }\r
174 \r
175     /**\r
176      * Sets the value of field 'start'.\r
177      * \r
178      * @param start the value of field 'start'.\r
179      */\r
180     public void setStart(\r
181             final int start) {\r
182         this._start = start;\r
183         this._has_start = true;\r
184     }\r
185 \r
186     /**\r
187      * Method unmarshal.\r
188      * \r
189      * @param reader\r
190      * @throws org.exolab.castor.xml.MarshalException if object is\r
191      * null or if any SAXException is thrown during marshaling\r
192      * @throws org.exolab.castor.xml.ValidationException if this\r
193      * object is an invalid instance according to the schema\r
194      * @return the unmarshaled\r
195      * jalview.schemabinding.version2.MapListTo\r
196      */\r
197     public static jalview.schemabinding.version2.MapListTo unmarshal(\r
198             final java.io.Reader reader)\r
199     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {\r
200         return (jalview.schemabinding.version2.MapListTo) Unmarshaller.unmarshal(jalview.schemabinding.version2.MapListTo.class, reader);\r
201     }\r
202 \r
203     /**\r
204      * \r
205      * \r
206      * @throws org.exolab.castor.xml.ValidationException if this\r
207      * object is an invalid instance according to the schema\r
208      */\r
209     public void validate(\r
210     )\r
211     throws org.exolab.castor.xml.ValidationException {\r
212         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
213         validator.validate(this);\r
214     }\r
215 \r
216 }\r