2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
8 package org.vamsas.objects.core;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler;
27 * @version $Revision$ $Date$
29 public class Map extends org.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
55 private int _from = 0;
58 * keeps track of state for field: _from
60 private boolean _has_from;
82 * keeps track of state for field: _to
84 private boolean _has_to;
107 * keeps track of state for field: _start
109 private boolean _has_start;
130 * keeps track of state for field: _end
132 private boolean _has_end;
142 } //-- org.vamsas.objects.core.Map()
153 public void deleteEnd()
155 this._has_end= false;
156 } //-- void deleteEnd()
162 public void deleteFrom()
164 this._has_from= false;
165 } //-- void deleteFrom()
171 public void deleteStart()
173 this._has_start= false;
174 } //-- void deleteStart()
180 public void deleteTo()
183 } //-- void deleteTo()
186 * Note: hashCode() has not been overriden
191 public boolean equals(java.lang.Object obj)
196 if (super.equals(obj)==false)
199 if (obj instanceof Map) {
202 if (this._from != temp._from)
204 if (this._has_from != temp._has_from)
206 if (this._to != temp._to)
208 if (this._has_to != temp._has_to)
210 if (this._start != temp._start)
212 if (this._has_start != temp._has_start)
214 if (this._end != temp._end)
216 if (this._has_end != temp._has_end)
221 } //-- boolean equals(java.lang.Object)
224 * Returns the value of field 'end'. The field 'end' has the
225 * following description: Offset
241 * @return the value of field 'end'.
249 * Returns the value of field 'from'. The field 'from' has the
250 * following description: Offset
267 * @return the value of field 'from'.
275 * Returns the value of field 'start'. The field 'start' has
276 * the following description: Offset
294 * @return the value of field 'start'.
296 public int getStart()
299 } //-- int getStart()
302 * Returns the value of field 'to'. The field 'to' has the
303 * following description: Offset
320 * @return the value of field 'to'.
334 public boolean hasEnd()
336 return this._has_end;
337 } //-- boolean hasEnd()
346 public boolean hasFrom()
348 return this._has_from;
349 } //-- boolean hasFrom()
358 public boolean hasStart()
360 return this._has_start;
361 } //-- boolean hasStart()
370 public boolean hasTo()
373 } //-- boolean hasTo()
382 public boolean isValid()
387 catch (org.exolab.castor.xml.ValidationException vex) {
391 } //-- boolean isValid()
400 public void marshal(java.io.Writer out)
401 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
404 Marshaller.marshal(this, out);
405 } //-- void marshal(java.io.Writer)
414 public void marshal(org.xml.sax.ContentHandler handler)
415 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
418 Marshaller.marshal(this, handler);
419 } //-- void marshal(org.xml.sax.ContentHandler)
422 * Sets the value of field 'end'. The field 'end' has the
423 * following description: Offset
438 * @param end the value of field 'end'.
440 public void setEnd(int end)
443 this._has_end = true;
444 } //-- void setEnd(int)
447 * Sets the value of field 'from'. The field 'from' has the
448 * following description: Offset
464 * @param from the value of field 'from'.
466 public void setFrom(int from)
469 this._has_from = true;
470 } //-- void setFrom(int)
473 * Sets the value of field 'start'. The field 'start' has the
474 * following description: Offset
491 * @param start the value of field 'start'.
493 public void setStart(int start)
496 this._has_start = true;
497 } //-- void setStart(int)
500 * Sets the value of field 'to'. The field 'to' has the
501 * following description: Offset
517 * @param to the value of field 'to'.
519 public void setTo(int to)
523 } //-- void setTo(int)
533 public static org.vamsas.objects.core.Map unmarshal(java.io.Reader reader)
534 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
536 return (org.vamsas.objects.core.Map) Unmarshaller.unmarshal(org.vamsas.objects.core.Map.class, reader);
537 } //-- org.vamsas.objects.core.Map unmarshal(java.io.Reader)
543 public void validate()
544 throws org.exolab.castor.xml.ValidationException
546 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
547 validator.validate(this);
548 } //-- void validate()