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 Entry extends org.vamsas.client.object
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
41 private java.lang.String _id;
46 private java.lang.String _user;
51 private java.lang.String _action;
56 private org.exolab.castor.types.Date _date;
66 } //-- org.vamsas.objects.core.Entry()
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 Entry) {
89 Entry temp = (Entry)obj;
90 if (this._id != null) {
91 if (temp._id == null) return false;
92 else if (!(this._id.equals(temp._id)))
95 else if (temp._id != null)
97 if (this._user != null) {
98 if (temp._user == null) return false;
99 else if (!(this._user.equals(temp._user)))
102 else if (temp._user != null)
104 if (this._action != null) {
105 if (temp._action == null) return false;
106 else if (!(this._action.equals(temp._action)))
109 else if (temp._action != null)
111 if (this._date != null) {
112 if (temp._date == null) return false;
113 else if (!(this._date.equals(temp._date)))
116 else if (temp._date != null)
121 } //-- boolean equals(java.lang.Object)
124 * Returns the value of field 'action'.
127 * @return the value of field 'action'.
129 public java.lang.String getAction()
132 } //-- java.lang.String getAction()
135 * Returns the value of field 'date'.
138 * @return the value of field 'date'.
140 public org.exolab.castor.types.Date getDate()
143 } //-- org.exolab.castor.types.Date getDate()
146 * Returns the value of field 'id'.
149 * @return the value of field 'id'.
151 public java.lang.String getId()
154 } //-- java.lang.String getId()
157 * Returns the value of field 'user'.
160 * @return the value of field 'user'.
162 public java.lang.String getUser()
165 } //-- java.lang.String getUser()
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 'action'.
216 * @param action the value of field 'action'.
218 public void setAction(java.lang.String action)
220 this._action = action;
221 } //-- void setAction(java.lang.String)
224 * Sets the value of field 'date'.
226 * @param date the value of field 'date'.
228 public void setDate(org.exolab.castor.types.Date date)
231 } //-- void setDate(org.exolab.castor.types.Date)
234 * Sets the value of field 'id'.
236 * @param id the value of field 'id'.
238 public void setId(java.lang.String id)
241 } //-- void setId(java.lang.String)
244 * Sets the value of field 'user'.
246 * @param user the value of field 'user'.
248 public void setUser(java.lang.String user)
251 } //-- void setUser(java.lang.String)
261 public static org.vamsas.objects.core.Entry unmarshal(java.io.Reader reader)
262 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
264 return (org.vamsas.objects.core.Entry) Unmarshaller.unmarshal(org.vamsas.objects.core.Entry.class, reader);
265 } //-- org.vamsas.objects.core.Entry 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()