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 Application extends org.vamsas.client.object
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _version;
46 private java.lang.String _name;
51 private java.lang.String _urn;
56 private java.lang.String _data;
61 private org.vamsas.objects.core.User _user;
71 } //-- org.vamsas.objects.core.Application()
79 * Note: hashCode() has not been overriden
84 public boolean equals(java.lang.Object obj)
89 if (super.equals(obj)==false)
92 if (obj instanceof Application) {
94 Application temp = (Application)obj;
95 if (this._version != null) {
96 if (temp._version == null) return false;
97 else if (!(this._version.equals(temp._version)))
100 else if (temp._version != null)
102 if (this._name != null) {
103 if (temp._name == null) return false;
104 else if (!(this._name.equals(temp._name)))
107 else if (temp._name != null)
109 if (this._urn != null) {
110 if (temp._urn == null) return false;
111 else if (!(this._urn.equals(temp._urn)))
114 else if (temp._urn != null)
116 if (this._data != null) {
117 if (temp._data == null) return false;
118 else if (!(this._data.equals(temp._data)))
121 else if (temp._data != null)
123 if (this._user != null) {
124 if (temp._user == null) return false;
125 else if (!(this._user.equals(temp._user)))
128 else if (temp._user != null)
133 } //-- boolean equals(java.lang.Object)
136 * Returns the value of field 'data'.
139 * @return the value of field 'data'.
141 public java.lang.String getData()
144 } //-- java.lang.String getData()
147 * Returns the value of field 'name'.
150 * @return the value of field 'name'.
152 public java.lang.String getName()
155 } //-- java.lang.String getName()
158 * Returns the value of field 'urn'.
161 * @return the value of field 'urn'.
163 public java.lang.String getUrn()
166 } //-- java.lang.String getUrn()
169 * Returns the value of field 'user'.
172 * @return the value of field 'user'.
174 public org.vamsas.objects.core.User getUser()
177 } //-- org.vamsas.objects.core.User getUser()
180 * Returns the value of field 'version'.
183 * @return the value of field 'version'.
185 public java.lang.String getVersion()
187 return this._version;
188 } //-- java.lang.String getVersion()
197 public boolean isValid()
202 catch (org.exolab.castor.xml.ValidationException vex) {
206 } //-- boolean isValid()
215 public void marshal(java.io.Writer out)
216 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
219 Marshaller.marshal(this, out);
220 } //-- void marshal(java.io.Writer)
229 public void marshal(org.xml.sax.ContentHandler handler)
230 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
233 Marshaller.marshal(this, handler);
234 } //-- void marshal(org.xml.sax.ContentHandler)
237 * Sets the value of field 'data'.
239 * @param data the value of field 'data'.
241 public void setData(java.lang.String data)
244 } //-- void setData(java.lang.String)
247 * Sets the value of field 'name'.
249 * @param name the value of field 'name'.
251 public void setName(java.lang.String name)
254 } //-- void setName(java.lang.String)
257 * Sets the value of field 'urn'.
259 * @param urn the value of field 'urn'.
261 public void setUrn(java.lang.String urn)
264 } //-- void setUrn(java.lang.String)
267 * Sets the value of field 'user'.
269 * @param user the value of field 'user'.
271 public void setUser(org.vamsas.objects.core.User user)
274 } //-- void setUser(org.vamsas.objects.core.User)
277 * Sets the value of field 'version'.
279 * @param version the value of field 'version'.
281 public void setVersion(java.lang.String version)
283 this._version = version;
284 } //-- void setVersion(java.lang.String)
292 * @return Application
294 public static org.vamsas.objects.core.Application unmarshal(java.io.Reader reader)
295 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
297 return (org.vamsas.objects.core.Application) Unmarshaller.unmarshal(org.vamsas.objects.core.Application.class, reader);
298 } //-- org.vamsas.objects.core.Application unmarshal(java.io.Reader)
304 public void validate()
305 throws org.exolab.castor.xml.ValidationException
307 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
308 validator.validate(this);
309 } //-- void validate()