KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > echo2 > MyBase64Bean


1 /**
2  * MyBase64Bean.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis #axisVersion# #today# WSDL2Java emitter.
6  */

7
8 package test.wsdl.echo2;
9
10 public class MyBase64Bean implements java.io.Serializable JavaDoc {
11     private java.lang.Byte JavaDoc varXsdByte;
12     private java.lang.Byte JavaDoc varSoapByte;
13     private byte[] varXsdBase64Binary;
14     private byte[] varSoapBase64Binary;
15     private byte[] varXsdHexBinary;
16     private byte[] varSoapBase64;
17
18     public MyBase64Bean() {
19     }
20
21     public MyBase64Bean(
22            java.lang.Byte JavaDoc varXsdByte,
23            java.lang.Byte JavaDoc varSoapByte,
24            byte[] varXsdBase64Binary,
25            byte[] varSoapBase64Binary,
26            byte[] varXsdHexBinary,
27            byte[] varSoapBase64) {
28            this.varXsdByte = varXsdByte;
29            this.varSoapByte = varSoapByte;
30            this.varXsdBase64Binary = varXsdBase64Binary;
31            this.varSoapBase64Binary = varSoapBase64Binary;
32            this.varXsdHexBinary = varXsdHexBinary;
33            this.varSoapBase64 = varSoapBase64;
34     }
35
36
37     /**
38      * Gets the varXsdByte value for this MyBase64Bean.
39      *
40      * @return varXsdByte
41      */

42     public java.lang.Byte JavaDoc getVarXsdByte() {
43         return varXsdByte;
44     }
45
46
47     /**
48      * Sets the varXsdByte value for this MyBase64Bean.
49      *
50      * @param varXsdByte
51      */

52     public void setVarXsdByte(java.lang.Byte JavaDoc varXsdByte) {
53         this.varXsdByte = varXsdByte;
54     }
55
56
57     /**
58      * Gets the varSoapByte value for this MyBase64Bean.
59      *
60      * @return varSoapByte
61      */

62     public java.lang.Byte JavaDoc getVarSoapByte() {
63         return varSoapByte;
64     }
65
66
67     /**
68      * Sets the varSoapByte value for this MyBase64Bean.
69      *
70      * @param varSoapByte
71      */

72     public void setVarSoapByte(java.lang.Byte JavaDoc varSoapByte) {
73         this.varSoapByte = varSoapByte;
74     }
75
76
77     /**
78      * Gets the varXsdBase64Binary value for this MyBase64Bean.
79      *
80      * @return varXsdBase64Binary
81      */

82     public byte[] getVarXsdBase64Binary() {
83         return varXsdBase64Binary;
84     }
85
86
87     /**
88      * Sets the varXsdBase64Binary value for this MyBase64Bean.
89      *
90      * @param varXsdBase64Binary
91      */

92     public void setVarXsdBase64Binary(byte[] varXsdBase64Binary) {
93         this.varXsdBase64Binary = varXsdBase64Binary;
94     }
95
96
97     /**
98      * Gets the varSoapBase64Binary value for this MyBase64Bean.
99      *
100      * @return varSoapBase64Binary
101      */

102     public byte[] getVarSoapBase64Binary() {
103         return varSoapBase64Binary;
104     }
105
106
107     /**
108      * Sets the varSoapBase64Binary value for this MyBase64Bean.
109      *
110      * @param varSoapBase64Binary
111      */

112     public void setVarSoapBase64Binary(byte[] varSoapBase64Binary) {
113         this.varSoapBase64Binary = varSoapBase64Binary;
114     }
115
116
117     /**
118      * Gets the varXsdHexBinary value for this MyBase64Bean.
119      *
120      * @return varXsdHexBinary
121      */

122     public byte[] getVarXsdHexBinary() {
123         return varXsdHexBinary;
124     }
125
126
127     /**
128      * Sets the varXsdHexBinary value for this MyBase64Bean.
129      *
130      * @param varXsdHexBinary
131      */

132     public void setVarXsdHexBinary(byte[] varXsdHexBinary) {
133         this.varXsdHexBinary = varXsdHexBinary;
134     }
135
136
137     /**
138      * Gets the varSoapBase64 value for this MyBase64Bean.
139      *
140      * @return varSoapBase64
141      */

142     public byte[] getVarSoapBase64() {
143         return varSoapBase64;
144     }
145
146
147     /**
148      * Sets the varSoapBase64 value for this MyBase64Bean.
149      *
150      * @param varSoapBase64
151      */
/*
152     public void setVarSoapBase64(int i, byte varSoapBase64) {
153         this.varSoapBase64[i] = varSoapBase64;
154     }*/

155
156     /**
157      * Gets the varSoapBase64 value for this MyBase64Bean.
158      *
159      * @return varSoapBase64
160      */
/*
161     public byte getVarSoapBase64(int i) {
162         return varSoapBase64[i];
163     }*/

164
165
166     /**
167      * Sets the varSoapBase64 value for this MyBase64Bean.
168      *
169      * @param varSoapBase64
170      */

171     public void setVarSoapBase64(byte[] varSoapBase64) {
172         this.varSoapBase64 = varSoapBase64;
173     }
174
175     private java.lang.Object JavaDoc __equalsCalc = null;
176     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
177         if (!(obj instanceof MyBase64Bean)) return false;
178         MyBase64Bean other = (MyBase64Bean) obj;
179         if (obj == null) return false;
180         if (this == obj) return true;
181         if (__equalsCalc != null) {
182             return (__equalsCalc == obj);
183         }
184         __equalsCalc = obj;
185         boolean _equals;
186         _equals = true &&
187             ((this.varXsdByte==null && other.getVarXsdByte()==null) ||
188              (this.varXsdByte!=null &&
189               this.varXsdByte.equals(other.getVarXsdByte()))) &&
190             ((this.varSoapByte==null && other.getVarSoapByte()==null) ||
191              (this.varSoapByte!=null &&
192               this.varSoapByte.equals(other.getVarSoapByte()))) &&
193             ((this.varXsdBase64Binary==null && other.getVarXsdBase64Binary()==null) ||
194              (this.varXsdBase64Binary!=null &&
195               java.util.Arrays.equals(this.varXsdBase64Binary, other.getVarXsdBase64Binary()))) &&
196             ((this.varSoapBase64Binary==null && other.getVarSoapBase64Binary()==null) ||
197              (this.varSoapBase64Binary!=null &&
198               java.util.Arrays.equals(this.varSoapBase64Binary, other.getVarSoapBase64Binary()))) &&
199             ((this.varXsdHexBinary==null && other.getVarXsdHexBinary()==null) ||
200              (this.varXsdHexBinary!=null &&
201               java.util.Arrays.equals(this.varXsdHexBinary, other.getVarXsdHexBinary()))) &&
202             ((this.varSoapBase64==null && other.getVarSoapBase64()==null) ||
203              (this.varSoapBase64!=null &&
204               java.util.Arrays.equals(this.varSoapBase64, other.getVarSoapBase64())));
205         __equalsCalc = null;
206         return _equals;
207     }
208
209     private boolean __hashCodeCalc = false;
210     public synchronized int hashCode() {
211         if (__hashCodeCalc) {
212             return 0;
213         }
214         __hashCodeCalc = true;
215         int _hashCode = 1;
216         if (getVarXsdByte() != null) {
217             _hashCode += getVarXsdByte().hashCode();
218         }
219         if (getVarSoapByte() != null) {
220             _hashCode += getVarSoapByte().hashCode();
221         }
222         if (getVarXsdBase64Binary() != null) {
223             for (int i=0;
224                  i<java.lang.reflect.Array.getLength(getVarXsdBase64Binary());
225                  i++) {
226                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getVarXsdBase64Binary(), i);
227                 if (obj != null &&
228                     !obj.getClass().isArray()) {
229                     _hashCode += obj.hashCode();
230                 }
231             }
232         }
233         if (getVarSoapBase64Binary() != null) {
234             for (int i=0;
235                  i<java.lang.reflect.Array.getLength(getVarSoapBase64Binary());
236                  i++) {
237                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getVarSoapBase64Binary(), i);
238                 if (obj != null &&
239                     !obj.getClass().isArray()) {
240                     _hashCode += obj.hashCode();
241                 }
242             }
243         }
244         if (getVarXsdHexBinary() != null) {
245             for (int i=0;
246                  i<java.lang.reflect.Array.getLength(getVarXsdHexBinary());
247                  i++) {
248                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getVarXsdHexBinary(), i);
249                 if (obj != null &&
250                     !obj.getClass().isArray()) {
251                     _hashCode += obj.hashCode();
252                 }
253             }
254         }
255         if (getVarSoapBase64() != null) {
256             for (int i=0;
257                  i<java.lang.reflect.Array.getLength(getVarSoapBase64());
258                  i++) {
259                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getVarSoapBase64(), i);
260                 if (obj != null &&
261                     !obj.getClass().isArray()) {
262                     _hashCode += obj.hashCode();
263                 }
264             }
265         }
266         __hashCodeCalc = false;
267         return _hashCode;
268     }
269
270     // Type metadata
271
private static org.apache.axis.description.TypeDesc typeDesc =
272         new org.apache.axis.description.TypeDesc(MyBase64Bean.class, true);
273
274     static {
275         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("urn:echo2.wsdl.test", "MyBase64Bean"));
276         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
277         elemField.setFieldName("varXsdByte");
278         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varXsdByte"));
279         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "byte"));
280         elemField.setNillable(true);
281         typeDesc.addFieldDesc(elemField);
282         elemField = new org.apache.axis.description.ElementDesc();
283         elemField.setFieldName("varSoapByte");
284         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varSoapByte"));
285         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://schemas.xmlsoap.org/soap/encoding/", "byte"));
286         elemField.setNillable(true);
287         typeDesc.addFieldDesc(elemField);
288         elemField = new org.apache.axis.description.ElementDesc();
289         elemField.setFieldName("varXsdBase64Binary");
290         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varXsdBase64Binary"));
291         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "base64Binary"));
292         elemField.setNillable(true);
293         typeDesc.addFieldDesc(elemField);
294         elemField = new org.apache.axis.description.ElementDesc();
295         elemField.setFieldName("varSoapBase64Binary");
296         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varSoapBase64Binary"));
297         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://schemas.xmlsoap.org/soap/encoding/", "base64Binary"));
298         elemField.setNillable(true);
299         typeDesc.addFieldDesc(elemField);
300         elemField = new org.apache.axis.description.ElementDesc();
301         elemField.setFieldName("varXsdHexBinary");
302         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varXsdHexBinary"));
303         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "hexBinary"));
304         elemField.setNillable(true);
305         typeDesc.addFieldDesc(elemField);
306         elemField = new org.apache.axis.description.ElementDesc();
307         elemField.setFieldName("varSoapBase64");
308         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("", "varSoapBase64"));
309         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://schemas.xmlsoap.org/soap/encoding/", "base64"));
310         elemField.setNillable(true);
311         typeDesc.addFieldDesc(elemField);
312     }
313
314     /**
315      * Return type metadata object
316      */

317     public static org.apache.axis.description.TypeDesc getTypeDesc() {
318         return typeDesc;
319     }
320
321     /**
322      * Get Custom Serializer
323      */

324     public static org.apache.axis.encoding.Serializer getSerializer(
325            java.lang.String JavaDoc mechType,
326            java.lang.Class JavaDoc _javaType,
327            javax.xml.namespace.QName JavaDoc _xmlType) {
328         return
329           new org.apache.axis.encoding.ser.BeanSerializer(
330             _javaType, _xmlType, typeDesc);
331     }
332
333     /**
334      * Get Custom Deserializer
335      */

336     public static org.apache.axis.encoding.Deserializer getDeserializer(
337            java.lang.String JavaDoc mechType,
338            java.lang.Class JavaDoc _javaType,
339            javax.xml.namespace.QName JavaDoc _xmlType) {
340         return
341           new org.apache.axis.encoding.ser.BeanDeserializer(
342             _javaType, _xmlType, typeDesc);
343     }
344
345 }
346
Popular Tags