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 Param extends org.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * internal content storage
41 private java.lang.String _content = "";
46 private java.lang.String _name;
49 * The type specifies how the property will
50 * be parsed. Empty property strings are
51 * allowed, and can be used to prototype
52 * the input to a document. TODO: specify
56 private java.lang.String _type;
67 } //-- org.vamsas.objects.core.Param()
75 * Note: hashCode() has not been overriden
80 public boolean equals(java.lang.Object obj)
85 if (super.equals(obj)==false)
88 if (obj instanceof Param) {
90 Param temp = (Param)obj;
91 if (this._content != null) {
92 if (temp._content == null) return false;
93 else if (!(this._content.equals(temp._content)))
96 else if (temp._content != null)
98 if (this._name != null) {
99 if (temp._name == null) return false;
100 else if (!(this._name.equals(temp._name)))
103 else if (temp._name != null)
105 if (this._type != null) {
106 if (temp._type == null) return false;
107 else if (!(this._type.equals(temp._type)))
110 else if (temp._type != null)
115 } //-- boolean equals(java.lang.Object)
118 * Returns the value of field 'content'. The field 'content'
119 * has the following description: internal content storage
122 * @return the value of field 'content'.
124 public java.lang.String getContent()
126 return this._content;
127 } //-- java.lang.String getContent()
130 * Returns the value of field 'name'.
133 * @return the value of field 'name'.
135 public java.lang.String getName()
138 } //-- java.lang.String getName()
141 * Returns the value of field 'type'. The field 'type' has the
142 * following description: The type specifies how the property
144 * be parsed. Empty property strings are
145 * allowed, and can be used to prototype
146 * the input to a document. TODO: specify
151 * @return the value of field 'type'.
153 public java.lang.String getType()
156 } //-- java.lang.String getType()
165 public boolean isValid()
170 catch (org.exolab.castor.xml.ValidationException vex) {
174 } //-- boolean isValid()
183 public void marshal(java.io.Writer out)
184 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
187 Marshaller.marshal(this, out);
188 } //-- void marshal(java.io.Writer)
197 public void marshal(org.xml.sax.ContentHandler handler)
198 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
201 Marshaller.marshal(this, handler);
202 } //-- void marshal(org.xml.sax.ContentHandler)
205 * Sets the value of field 'content'. The field 'content' has
206 * the following description: internal content storage
208 * @param content the value of field 'content'.
210 public void setContent(java.lang.String content)
212 this._content = content;
213 } //-- void setContent(java.lang.String)
216 * Sets the value of field 'name'.
218 * @param name the value of field 'name'.
220 public void setName(java.lang.String name)
223 } //-- void setName(java.lang.String)
226 * Sets the value of field 'type'. The field 'type' has the
227 * following description: The type specifies how the property
229 * be parsed. Empty property strings are
230 * allowed, and can be used to prototype
231 * the input to a document. TODO: specify
235 * @param type the value of field 'type'.
237 public void setType(java.lang.String type)
240 } //-- void setType(java.lang.String)
250 public static org.vamsas.objects.core.Param unmarshal(java.io.Reader reader)
251 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
253 return (org.vamsas.objects.core.Param) Unmarshaller.unmarshal(org.vamsas.objects.core.Param.class, reader);
254 } //-- org.vamsas.objects.core.Param unmarshal(java.io.Reader)
260 public void validate()
261 throws org.exolab.castor.xml.ValidationException
263 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
264 validator.validate(this);
265 } //-- void validate()