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 _session;
56 private java.lang.String _data;
66 } //-- org.vamsas.objects.core.Application()
74 * Note: hashCode() has not been overriden
79 public boolean equals(java.lang.Object obj)
84 if (super.equals(obj)==false)
87 if (obj instanceof Application) {
89 Application temp = (Application)obj;
90 if (this._version != null) {
91 if (temp._version == null) return false;
92 else if (!(this._version.equals(temp._version)))
95 else if (temp._version != null)
97 if (this._name != null) {
98 if (temp._name == null) return false;
99 else if (!(this._name.equals(temp._name)))
102 else if (temp._name != null)
104 if (this._session != null) {
105 if (temp._session == null) return false;
106 else if (!(this._session.equals(temp._session)))
109 else if (temp._session != null)
111 if (this._data != null) {
112 if (temp._data == null) return false;
113 else if (!(this._data.equals(temp._data)))
116 else if (temp._data != null)
121 } //-- boolean equals(java.lang.Object)
124 * Returns the value of field 'data'.
127 * @return the value of field 'data'.
129 public java.lang.String getData()
132 } //-- java.lang.String getData()
135 * Returns the value of field 'name'.
138 * @return the value of field 'name'.
140 public java.lang.String getName()
143 } //-- java.lang.String getName()
146 * Returns the value of field 'session'.
149 * @return the value of field 'session'.
151 public java.lang.String getSession()
153 return this._session;
154 } //-- java.lang.String getSession()
157 * Returns the value of field 'version'.
160 * @return the value of field 'version'.
162 public java.lang.String getVersion()
164 return this._version;
165 } //-- java.lang.String getVersion()
174 public boolean isValid()
179 catch (org.exolab.castor.xml.ValidationException vex) {
183 } //-- boolean isValid()
192 public void marshal(java.io.Writer out)
193 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
196 Marshaller.marshal(this, out);
197 } //-- void marshal(java.io.Writer)
206 public void marshal(org.xml.sax.ContentHandler handler)
207 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
210 Marshaller.marshal(this, handler);
211 } //-- void marshal(org.xml.sax.ContentHandler)
214 * Sets the value of field 'data'.
216 * @param data the value of field 'data'.
218 public void setData(java.lang.String data)
221 } //-- void setData(java.lang.String)
224 * Sets the value of field 'name'.
226 * @param name the value of field 'name'.
228 public void setName(java.lang.String name)
231 } //-- void setName(java.lang.String)
234 * Sets the value of field 'session'.
236 * @param session the value of field 'session'.
238 public void setSession(java.lang.String session)
240 this._session = session;
241 } //-- void setSession(java.lang.String)
244 * Sets the value of field 'version'.
246 * @param version the value of field 'version'.
248 public void setVersion(java.lang.String version)
250 this._version = version;
251 } //-- void setVersion(java.lang.String)
259 * @return Application
261 public static org.vamsas.objects.core.Application unmarshal(java.io.Reader reader)
262 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
264 return (org.vamsas.objects.core.Application) Unmarshaller.unmarshal(org.vamsas.objects.core.Application.class, reader);
265 } //-- org.vamsas.objects.core.Application unmarshal(java.io.Reader)
271 public void validate()
272 throws org.exolab.castor.xml.ValidationException
274 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
275 validator.validate(this);
276 } //-- void validate()