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.client.objects;
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 Entry extends org.vamsas.client.object
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _user;
46 private java.lang.String _action;
51 private org.exolab.castor.types.Date _date;
61 } //-- org.vamsas.client.objects.Entry()
69 * Note: hashCode() has not been overriden
74 public boolean equals(java.lang.Object obj)
79 if (super.equals(obj)==false)
82 if (obj instanceof Entry) {
84 Entry temp = (Entry)obj;
85 if (this._user != null) {
86 if (temp._user == null) return false;
87 else if (!(this._user.equals(temp._user)))
90 else if (temp._user != null)
92 if (this._action != null) {
93 if (temp._action == null) return false;
94 else if (!(this._action.equals(temp._action)))
97 else if (temp._action != null)
99 if (this._date != null) {
100 if (temp._date == null) return false;
101 else if (!(this._date.equals(temp._date)))
104 else if (temp._date != null)
109 } //-- boolean equals(java.lang.Object)
112 * Returns the value of field 'action'.
115 * @return the value of field 'action'.
117 public java.lang.String getAction()
120 } //-- java.lang.String getAction()
123 * Returns the value of field 'date'.
126 * @return the value of field 'date'.
128 public org.exolab.castor.types.Date getDate()
131 } //-- org.exolab.castor.types.Date getDate()
134 * Returns the value of field 'user'.
137 * @return the value of field 'user'.
139 public java.lang.String getUser()
142 } //-- java.lang.String getUser()
151 public boolean isValid()
156 catch (org.exolab.castor.xml.ValidationException vex) {
160 } //-- boolean isValid()
169 public void marshal(java.io.Writer out)
170 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
173 Marshaller.marshal(this, out);
174 } //-- void marshal(java.io.Writer)
183 public void marshal(org.xml.sax.ContentHandler handler)
184 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
187 Marshaller.marshal(this, handler);
188 } //-- void marshal(org.xml.sax.ContentHandler)
191 * Sets the value of field 'action'.
193 * @param action the value of field 'action'.
195 public void setAction(java.lang.String action)
197 this._action = action;
198 } //-- void setAction(java.lang.String)
201 * Sets the value of field 'date'.
203 * @param date the value of field 'date'.
205 public void setDate(org.exolab.castor.types.Date date)
208 } //-- void setDate(org.exolab.castor.types.Date)
211 * Sets the value of field 'user'.
213 * @param user the value of field 'user'.
215 public void setUser(java.lang.String user)
218 } //-- void setUser(java.lang.String)
228 public static org.vamsas.client.objects.Entry unmarshal(java.io.Reader reader)
229 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
231 return (org.vamsas.client.objects.Entry) Unmarshaller.unmarshal(org.vamsas.client.objects.Entry.class, reader);
232 } //-- org.vamsas.client.objects.Entry unmarshal(java.io.Reader)
238 public void validate()
239 throws org.exolab.castor.xml.ValidationException
241 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
242 validator.validate(this);
243 } //-- void validate()