2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
8 package uk.ac.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 LockFile extends uk.ac.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * internal content storage
41 private java.lang.String _content = "";
52 } //-- uk.ac.vamsas.objects.core.LockFile()
60 * Note: hashCode() has not been overriden
65 public boolean equals(java.lang.Object obj)
70 if (super.equals(obj)==false)
73 if (obj instanceof LockFile) {
75 LockFile temp = (LockFile)obj;
76 if (this._content != null) {
77 if (temp._content == null) return false;
78 else if (!(this._content.equals(temp._content)))
81 else if (temp._content != null)
86 } //-- boolean equals(java.lang.Object)
89 * Returns the value of field 'content'. The field 'content'
90 * has the following description: internal content storage
93 * @return the value of field 'content'.
95 public java.lang.String getContent()
98 } //-- java.lang.String getContent()
107 public boolean isValid()
112 catch (org.exolab.castor.xml.ValidationException vex) {
116 } //-- boolean isValid()
125 public void marshal(java.io.Writer out)
126 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
129 Marshaller.marshal(this, out);
130 } //-- void marshal(java.io.Writer)
139 public void marshal(org.xml.sax.ContentHandler handler)
140 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
143 Marshaller.marshal(this, handler);
144 } //-- void marshal(org.xml.sax.ContentHandler)
147 * Sets the value of field 'content'. The field 'content' has
148 * the following description: internal content storage
150 * @param content the value of field 'content'.
152 public void setContent(java.lang.String content)
154 this._content = content;
155 } //-- void setContent(java.lang.String)
165 public static uk.ac.vamsas.objects.core.LockFile unmarshal(java.io.Reader reader)
166 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
168 return (uk.ac.vamsas.objects.core.LockFile) Unmarshaller.unmarshal(uk.ac.vamsas.objects.core.LockFile.class, reader);
169 } //-- uk.ac.vamsas.objects.core.LockFile unmarshal(java.io.Reader)
175 public void validate()
176 throws org.exolab.castor.xml.ValidationException
178 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
179 validator.validate(this);
180 } //-- void validate()