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 User extends org.vamsas.client.object
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _fullname;
46 private java.lang.String _organization;
51 private java.lang.String _data;
61 } //-- org.vamsas.objects.core.User()
69 * Note: hashCode() has not been overriden
74 public boolean equals(java.lang.Object obj)
79 if (super.equals(obj)==false)
82 if (obj instanceof User) {
84 User temp = (User)obj;
85 if (this._fullname != null) {
86 if (temp._fullname == null) return false;
87 else if (!(this._fullname.equals(temp._fullname)))
90 else if (temp._fullname != null)
92 if (this._organization != null) {
93 if (temp._organization == null) return false;
94 else if (!(this._organization.equals(temp._organization)))
97 else if (temp._organization != null)
99 if (this._data != null) {
100 if (temp._data == null) return false;
101 else if (!(this._data.equals(temp._data)))
104 else if (temp._data != null)
109 } //-- boolean equals(java.lang.Object)
112 * Returns the value of field 'data'.
115 * @return the value of field 'data'.
117 public java.lang.String getData()
120 } //-- java.lang.String getData()
123 * Returns the value of field 'fullname'.
126 * @return the value of field 'fullname'.
128 public java.lang.String getFullname()
130 return this._fullname;
131 } //-- java.lang.String getFullname()
134 * Returns the value of field 'organization'.
137 * @return the value of field 'organization'.
139 public java.lang.String getOrganization()
141 return this._organization;
142 } //-- java.lang.String getOrganization()
151 public boolean isValid()
156 catch (org.exolab.castor.xml.ValidationException vex) {
160 } //-- boolean isValid()
169 public void marshal(java.io.Writer out)
170 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
173 Marshaller.marshal(this, out);
174 } //-- void marshal(java.io.Writer)
183 public void marshal(org.xml.sax.ContentHandler handler)
184 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
187 Marshaller.marshal(this, handler);
188 } //-- void marshal(org.xml.sax.ContentHandler)
191 * Sets the value of field 'data'.
193 * @param data the value of field 'data'.
195 public void setData(java.lang.String data)
198 } //-- void setData(java.lang.String)
201 * Sets the value of field 'fullname'.
203 * @param fullname the value of field 'fullname'.
205 public void setFullname(java.lang.String fullname)
207 this._fullname = fullname;
208 } //-- void setFullname(java.lang.String)
211 * Sets the value of field 'organization'.
213 * @param organization the value of field 'organization'.
215 public void setOrganization(java.lang.String organization)
217 this._organization = organization;
218 } //-- void setOrganization(java.lang.String)
228 public static org.vamsas.objects.core.User unmarshal(java.io.Reader reader)
229 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
231 return (org.vamsas.objects.core.User) Unmarshaller.unmarshal(org.vamsas.objects.core.User.class, reader);
232 } //-- org.vamsas.objects.core.User unmarshal(java.io.Reader)
238 public void validate()
239 throws org.exolab.castor.xml.ValidationException
241 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
242 validator.validate(this);
243 } //-- void validate()