/* * This class was automatically generated with * Castor 0.9.9M1, using an XML * Schema. * $Id$ */ package org.vamsas.client.objects; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.io.Writer; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; import org.exolab.castor.xml.ValidationException; import org.xml.sax.ContentHandler; /** * Class ApplicationData. * * @version $Revision$ $Date$ */ public class ApplicationData extends org.vamsas.client.object implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _application */ private org.vamsas.client.objects.Application _application; //----------------/ //- Constructors -/ //----------------/ public ApplicationData() { super(); } //-- org.vamsas.client.objects.ApplicationData() //-----------/ //- Methods -/ //-----------/ /** * Note: hashCode() has not been overriden * * @param obj * @return boolean */ public boolean equals(java.lang.Object obj) { if ( this == obj ) return true; if (super.equals(obj)==false) return false; if (obj instanceof ApplicationData) { ApplicationData temp = (ApplicationData)obj; if (this._application != null) { if (temp._application == null) return false; else if (!(this._application.equals(temp._application))) return false; } else if (temp._application != null) return false; return true; } return false; } //-- boolean equals(java.lang.Object) /** * Returns the value of field 'application'. * * @return Application * @return the value of field 'application'. */ public org.vamsas.client.objects.Application getApplication() { return this._application; } //-- org.vamsas.client.objects.Application getApplication() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'application'. * * @param application the value of field 'application'. */ public void setApplication(org.vamsas.client.objects.Application application) { this._application = application; } //-- void setApplication(org.vamsas.client.objects.Application) /** * Method unmarshal * * * * @param reader * @return ApplicationData */ public static org.vamsas.client.objects.ApplicationData unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.vamsas.client.objects.ApplicationData) Unmarshaller.unmarshal(org.vamsas.client.objects.ApplicationData.class, reader); } //-- org.vamsas.client.objects.ApplicationData unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }