2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M1</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 * Class ApplicationData.
27 * @version $Revision$ $Date$
29 public class ApplicationData extends org.vamsas.client.object
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private org.vamsas.objects.core.Application _application;
48 public ApplicationData()
51 } //-- org.vamsas.objects.core.ApplicationData()
59 * Note: hashCode() has not been overriden
64 public boolean equals(java.lang.Object obj)
69 if (super.equals(obj)==false)
72 if (obj instanceof ApplicationData) {
74 ApplicationData temp = (ApplicationData)obj;
75 if (this._application != null) {
76 if (temp._application == null) return false;
77 else if (!(this._application.equals(temp._application)))
80 else if (temp._application != null)
85 } //-- boolean equals(java.lang.Object)
88 * Returns the value of field 'application'.
91 * @return the value of field 'application'.
93 public org.vamsas.objects.core.Application getApplication()
95 return this._application;
96 } //-- org.vamsas.objects.core.Application getApplication()
105 public boolean isValid()
110 catch (org.exolab.castor.xml.ValidationException vex) {
114 } //-- boolean isValid()
123 public void marshal(java.io.Writer out)
124 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
127 Marshaller.marshal(this, out);
128 } //-- void marshal(java.io.Writer)
137 public void marshal(org.xml.sax.ContentHandler handler)
138 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
141 Marshaller.marshal(this, handler);
142 } //-- void marshal(org.xml.sax.ContentHandler)
145 * Sets the value of field 'application'.
147 * @param application the value of field 'application'.
149 public void setApplication(org.vamsas.objects.core.Application application)
151 this._application = application;
152 } //-- void setApplication(org.vamsas.objects.core.Application)
160 * @return ApplicationData
162 public static org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader reader)
163 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
165 return (org.vamsas.objects.core.ApplicationData) Unmarshaller.unmarshal(org.vamsas.objects.core.ApplicationData.class, reader);
166 } //-- org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader)
172 public void validate()
173 throws org.exolab.castor.xml.ValidationException
175 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
176 validator.validate(this);
177 } //-- void validate()