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