/* * This class was automatically generated with * Castor 0.9.9M2, using an XML * Schema. * $Id$ */ package org.vamsas.objects.core; //---------------------------------/ //- 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 Entry. * * @version $Revision$ $Date$ */ public class Entry extends org.vamsas.client.Vobject implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _id */ private java.lang.String _id; /** * Field _user */ private java.lang.String _user; /** * Field _action */ private java.lang.String _action; /** * Field _date */ private org.exolab.castor.types.Date _date; //----------------/ //- Constructors -/ //----------------/ public Entry() { super(); } //-- org.vamsas.objects.core.Entry() //-----------/ //- 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 Entry) { Entry temp = (Entry)obj; if (this._id != null) { if (temp._id == null) return false; else if (!(this._id.equals(temp._id))) return false; } else if (temp._id != null) return false; if (this._user != null) { if (temp._user == null) return false; else if (!(this._user.equals(temp._user))) return false; } else if (temp._user != null) return false; if (this._action != null) { if (temp._action == null) return false; else if (!(this._action.equals(temp._action))) return false; } else if (temp._action != null) return false; if (this._date != null) { if (temp._date == null) return false; else if (!(this._date.equals(temp._date))) return false; } else if (temp._date != null) return false; return true; } return false; } //-- boolean equals(java.lang.Object) /** * Returns the value of field 'action'. * * @return String * @return the value of field 'action'. */ public java.lang.String getAction() { return this._action; } //-- java.lang.String getAction() /** * Returns the value of field 'date'. * * @return Date * @return the value of field 'date'. */ public org.exolab.castor.types.Date getDate() { return this._date; } //-- org.exolab.castor.types.Date getDate() /** * Returns the value of field 'id'. * * @return String * @return the value of field 'id'. */ public java.lang.String getId() { return this._id; } //-- java.lang.String getId() /** * Returns the value of field 'user'. * * @return String * @return the value of field 'user'. */ public java.lang.String getUser() { return this._user; } //-- java.lang.String getUser() /** * 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 'action'. * * @param action the value of field 'action'. */ public void setAction(java.lang.String action) { this._action = action; } //-- void setAction(java.lang.String) /** * Sets the value of field 'date'. * * @param date the value of field 'date'. */ public void setDate(org.exolab.castor.types.Date date) { this._date = date; } //-- void setDate(org.exolab.castor.types.Date) /** * Sets the value of field 'id'. * * @param id the value of field 'id'. */ public void setId(java.lang.String id) { this._id = id; } //-- void setId(java.lang.String) /** * Sets the value of field 'user'. * * @param user the value of field 'user'. */ public void setUser(java.lang.String user) { this._user = user; } //-- void setUser(java.lang.String) /** * Method unmarshal * * * * @param reader * @return Entry */ public static org.vamsas.objects.core.Entry unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.vamsas.objects.core.Entry) Unmarshaller.unmarshal(org.vamsas.objects.core.Entry.class, reader); } //-- org.vamsas.objects.core.Entry 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() }