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 org.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
25 * a position within the associated object's coordinate system
\r
28 * @version $Revision$ $Date$
\r
30 public class Pos extends org.vamsas.client.Vobject
\r
31 implements java.io.Serializable
\r
35 //--------------------------/
\r
36 //- Class/Member Variables -/
\r
37 //--------------------------/
\r
45 * keeps track of state for field: _i
\r
47 private boolean _has_i;
\r
57 } //-- org.vamsas.objects.core.Pos()
\r
68 public void deleteI()
\r
71 } //-- void deleteI()
\r
74 * Note: hashCode() has not been overriden
\r
79 public boolean equals(java.lang.Object obj)
\r
84 if (super.equals(obj)==false)
\r
87 if (obj instanceof Pos) {
\r
89 Pos temp = (Pos)obj;
\r
90 if (this._i != temp._i)
\r
92 if (this._has_i != temp._has_i)
\r
97 } //-- boolean equals(java.lang.Object)
\r
100 * Returns the value of field 'i'.
\r
103 * @return the value of field 'i'.
\r
117 public boolean hasI()
\r
119 return this._has_i;
\r
120 } //-- boolean hasI()
\r
129 public boolean isValid()
\r
134 catch (org.exolab.castor.xml.ValidationException vex) {
\r
138 } //-- boolean isValid()
\r
147 public void marshal(java.io.Writer out)
\r
148 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
151 Marshaller.marshal(this, out);
\r
152 } //-- void marshal(java.io.Writer)
\r
161 public void marshal(org.xml.sax.ContentHandler handler)
\r
162 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
165 Marshaller.marshal(this, handler);
\r
166 } //-- void marshal(org.xml.sax.ContentHandler)
\r
169 * Sets the value of field 'i'.
\r
171 * @param i the value of field 'i'.
\r
173 public void setI(int i)
\r
176 this._has_i = true;
\r
177 } //-- void setI(int)
\r
187 public static org.vamsas.objects.core.Pos unmarshal(java.io.Reader reader)
\r
188 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
190 return (org.vamsas.objects.core.Pos) Unmarshaller.unmarshal(org.vamsas.objects.core.Pos.class, reader);
\r
191 } //-- org.vamsas.objects.core.Pos unmarshal(java.io.Reader)
\r
197 public void validate()
\r
198 throws org.exolab.castor.xml.ValidationException
\r
200 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
201 validator.validate(this);
\r
202 } //-- void validate()
\r