2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
\r
8 package uk.ac.vamsas.objects.core;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\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
27 * @version $Revision$ $Date$
\r
29 public class MapList extends uk.ac.vamsas.client.Vobject
\r
30 implements java.io.Serializable
\r
34 //--------------------------/
\r
35 //- Class/Member Variables -/
\r
36 //--------------------------/
\r
39 * Offset to first position in dataset sequence record that
\r
41 * position on 'onto' maps to
\r
43 private int _from = 0;
\r
46 * keeps track of state for field: _from
\r
48 private boolean _has_from;
\r
51 * Offset to last position in dataset sequence record that end
\r
52 * position on 'onto' maps to
\r
54 private int _to = 0;
\r
57 * keeps track of state for field: _to
\r
59 private boolean _has_to;
\r
62 * Offset to first position in database entry that first (or
\r
64 * position in sequence maps to
\r
69 * keeps track of state for field: _start
\r
71 private boolean _has_start;
\r
74 * Offset to last position in database entry that last (offset)
\r
75 * position in sequence maps to
\r
80 * keeps track of state for field: _end
\r
82 private boolean _has_end;
\r
92 } //-- uk.ac.vamsas.objects.core.MapList()
\r
103 public void deleteEnd()
\r
105 this._has_end= false;
\r
106 } //-- void deleteEnd()
\r
109 * Method deleteFrom
\r
112 public void deleteFrom()
\r
114 this._has_from= false;
\r
115 } //-- void deleteFrom()
\r
118 * Method deleteStart
\r
121 public void deleteStart()
\r
123 this._has_start= false;
\r
124 } //-- void deleteStart()
\r
130 public void deleteTo()
\r
132 this._has_to= false;
\r
133 } //-- void deleteTo()
\r
136 * Note: hashCode() has not been overriden
\r
141 public boolean equals(java.lang.Object obj)
\r
146 if (super.equals(obj)==false)
\r
149 if (obj instanceof MapList) {
\r
151 MapList temp = (MapList)obj;
\r
152 if (this._from != temp._from)
\r
154 if (this._has_from != temp._has_from)
\r
156 if (this._to != temp._to)
\r
158 if (this._has_to != temp._has_to)
\r
160 if (this._start != temp._start)
\r
162 if (this._has_start != temp._has_start)
\r
164 if (this._end != temp._end)
\r
166 if (this._has_end != temp._has_end)
\r
171 } //-- boolean equals(java.lang.Object)
\r
174 * Returns the value of field 'end'. The field 'end' has the
\r
175 * following description: Offset to last position in database
\r
176 * entry that last (offset)
\r
177 * position in sequence maps to
\r
180 * @return the value of field 'end'.
\r
182 public int getEnd()
\r
185 } //-- int getEnd()
\r
188 * Returns the value of field 'from'. The field 'from' has the
\r
189 * following description: Offset to first position in dataset
\r
190 * sequence record that start
\r
191 * position on 'onto' maps to
\r
194 * @return the value of field 'from'.
\r
196 public int getFrom()
\r
199 } //-- int getFrom()
\r
202 * Returns the value of field 'start'. The field 'start' has
\r
203 * the following description: Offset to first position in
\r
204 * database entry that first (or offset)
\r
205 * position in sequence maps to
\r
208 * @return the value of field 'start'.
\r
210 public int getStart()
\r
212 return this._start;
\r
213 } //-- int getStart()
\r
216 * Returns the value of field 'to'. The field 'to' has the
\r
217 * following description: Offset to last position in dataset
\r
218 * sequence record that end
\r
219 * position on 'onto' maps to
\r
222 * @return the value of field 'to'.
\r
227 } //-- int getTo()
\r
236 public boolean hasEnd()
\r
238 return this._has_end;
\r
239 } //-- boolean hasEnd()
\r
248 public boolean hasFrom()
\r
250 return this._has_from;
\r
251 } //-- boolean hasFrom()
\r
260 public boolean hasStart()
\r
262 return this._has_start;
\r
263 } //-- boolean hasStart()
\r
272 public boolean hasTo()
\r
274 return this._has_to;
\r
275 } //-- boolean hasTo()
\r
284 public boolean isValid()
\r
289 catch (org.exolab.castor.xml.ValidationException vex) {
\r
293 } //-- boolean isValid()
\r
302 public void marshal(java.io.Writer out)
\r
303 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
306 Marshaller.marshal(this, out);
\r
307 } //-- void marshal(java.io.Writer)
\r
316 public void marshal(org.xml.sax.ContentHandler handler)
\r
317 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
320 Marshaller.marshal(this, handler);
\r
321 } //-- void marshal(org.xml.sax.ContentHandler)
\r
324 * Sets the value of field 'end'. The field 'end' has the
\r
325 * following description: Offset to last position in database
\r
326 * entry that last (offset)
\r
327 * position in sequence maps to
\r
329 * @param end the value of field 'end'.
\r
331 public void setEnd(int end)
\r
334 this._has_end = true;
\r
335 } //-- void setEnd(int)
\r
338 * Sets the value of field 'from'. The field 'from' has the
\r
339 * following description: Offset to first position in dataset
\r
340 * sequence record that start
\r
341 * position on 'onto' maps to
\r
343 * @param from the value of field 'from'.
\r
345 public void setFrom(int from)
\r
348 this._has_from = true;
\r
349 } //-- void setFrom(int)
\r
352 * Sets the value of field 'start'. The field 'start' has the
\r
353 * following description: Offset to first position in database
\r
354 * entry that first (or offset)
\r
355 * position in sequence maps to
\r
357 * @param start the value of field 'start'.
\r
359 public void setStart(int start)
\r
361 this._start = start;
\r
362 this._has_start = true;
\r
363 } //-- void setStart(int)
\r
366 * Sets the value of field 'to'. The field 'to' has the
\r
367 * following description: Offset to last position in dataset
\r
368 * sequence record that end
\r
369 * position on 'onto' maps to
\r
371 * @param to the value of field 'to'.
\r
373 public void setTo(int to)
\r
376 this._has_to = true;
\r
377 } //-- void setTo(int)
\r
387 public static uk.ac.vamsas.objects.core.MapList unmarshal(java.io.Reader reader)
\r
388 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
390 return (uk.ac.vamsas.objects.core.MapList) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.MapList.class, reader);
\r
391 } //-- uk.ac.vamsas.objects.core.MapList unmarshal(java.io.Reader)
\r
397 public void validate()
\r
398 throws org.exolab.castor.xml.ValidationException
\r
400 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
401 validator.validate(this);
\r
402 } //-- void validate()
\r