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