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 AppData extends org.vamsas.client.Vobject
30 implements java.io.Serializable
34 //--------------------------/
35 //- Class/Member Variables -/
36 //--------------------------/
39 * Internal choice value storage
41 private java.lang.Object _choiceValue;
49 * Field _dataReference
51 private java.lang.String _dataReference;
61 } //-- org.vamsas.objects.core.AppData()
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 AppData) {
84 AppData temp = (AppData)obj;
85 if (this._choiceValue != null) {
86 if (temp._choiceValue == null) return false;
87 else if (!(this._choiceValue.equals(temp._choiceValue)))
90 else if (temp._choiceValue != null)
92 if (this._data != null) {
93 if (temp._data == null) return false;
94 else if (!(this._data.equals(temp._data)))
97 else if (temp._data != null)
99 if (this._dataReference != null) {
100 if (temp._dataReference == null) return false;
101 else if (!(this._dataReference.equals(temp._dataReference)))
104 else if (temp._dataReference != null)
109 } //-- boolean equals(java.lang.Object)
112 * Returns the value of field 'choiceValue'. The field
113 * 'choiceValue' has the following description: Internal choice
117 * @return the value of field 'choiceValue'.
119 public java.lang.Object getChoiceValue()
121 return this._choiceValue;
122 } //-- java.lang.Object getChoiceValue()
125 * Returns the value of field 'data'.
128 * @return the value of field 'data'.
130 public byte[] getData()
133 } //-- byte[] getData()
136 * Returns the value of field 'dataReference'.
139 * @return the value of field 'dataReference'.
141 public java.lang.String getDataReference()
143 return this._dataReference;
144 } //-- java.lang.String getDataReference()
153 public boolean isValid()
158 catch (org.exolab.castor.xml.ValidationException vex) {
162 } //-- boolean isValid()
171 public void marshal(java.io.Writer out)
172 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
175 Marshaller.marshal(this, out);
176 } //-- void marshal(java.io.Writer)
185 public void marshal(org.xml.sax.ContentHandler handler)
186 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
189 Marshaller.marshal(this, handler);
190 } //-- void marshal(org.xml.sax.ContentHandler)
193 * Sets the value of field 'data'.
195 * @param data the value of field 'data'.
197 public void setData(byte[] data)
200 this._choiceValue = data;
201 } //-- void setData(byte)
204 * Sets the value of field 'dataReference'.
206 * @param dataReference the value of field 'dataReference'.
208 public void setDataReference(java.lang.String dataReference)
210 this._dataReference = dataReference;
211 this._choiceValue = dataReference;
212 } //-- void setDataReference(java.lang.String)
222 public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
223 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
225 return (org.vamsas.objects.core.AppData) Unmarshaller.unmarshal(org.vamsas.objects.core.AppData.class, reader);
226 } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader)
232 public void validate()
233 throws org.exolab.castor.xml.ValidationException
235 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
236 validator.validate(this);
237 } //-- void validate()