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;
25 * a position within the associated object's
29 * @version $Revision$ $Date$
31 public class Pos extends org.vamsas.client.Vobject
32 implements java.io.Serializable
36 //--------------------------/
37 //- Class/Member Variables -/
38 //--------------------------/
46 * keeps track of state for field: _i
48 private boolean _has_i;
58 } //-- org.vamsas.objects.core.Pos()
75 * Note: hashCode() has not been overriden
80 public boolean equals(java.lang.Object obj)
85 if (super.equals(obj)==false)
88 if (obj instanceof Pos) {
91 if (this._i != temp._i)
93 if (this._has_i != temp._has_i)
98 } //-- boolean equals(java.lang.Object)
101 * Returns the value of field 'i'.
104 * @return the value of field 'i'.
118 public boolean hasI()
121 } //-- boolean hasI()
130 public boolean isValid()
135 catch (org.exolab.castor.xml.ValidationException vex) {
139 } //-- boolean isValid()
148 public void marshal(java.io.Writer out)
149 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
152 Marshaller.marshal(this, out);
153 } //-- void marshal(java.io.Writer)
162 public void marshal(org.xml.sax.ContentHandler handler)
163 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
166 Marshaller.marshal(this, handler);
167 } //-- void marshal(org.xml.sax.ContentHandler)
170 * Sets the value of field 'i'.
172 * @param i the value of field 'i'.
174 public void setI(int i)
178 } //-- void setI(int)
188 public static org.vamsas.objects.core.Pos unmarshal(java.io.Reader reader)
189 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
191 return (org.vamsas.objects.core.Pos) Unmarshaller.unmarshal(org.vamsas.objects.core.Pos.class, reader);
192 } //-- org.vamsas.objects.core.Pos unmarshal(java.io.Reader)
198 public void validate()
199 throws org.exolab.castor.xml.ValidationException
201 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
202 validator.validate(this);
203 } //-- void validate()