KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > http > net > pointwsp > www > ws > finance > ArrayOfCurrency


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

7
8 package http.net.pointwsp.www.ws.finance;
9
10 public class ArrayOfCurrency implements java.io.Serializable JavaDoc {
11     private http.net.pointwsp.www.ws.finance.Currency[] currency;
12
13     public ArrayOfCurrency() {
14     }
15
16     public http.net.pointwsp.www.ws.finance.Currency[] getCurrency() {
17         return currency;
18     }
19
20     public void setCurrency(http.net.pointwsp.www.ws.finance.Currency[] currency) {
21         this.currency = currency;
22     }
23
24     public http.net.pointwsp.www.ws.finance.Currency getCurrency(int i) {
25         return currency[i];
26     }
27
28     public void setCurrency(int i, http.net.pointwsp.www.ws.finance.Currency value) {
29         this.currency[i] = value;
30     }
31
32     private java.lang.Object JavaDoc __equalsCalc = null;
33     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
34         if (!(obj instanceof ArrayOfCurrency)) return false;
35         ArrayOfCurrency other = (ArrayOfCurrency) obj;
36         if (obj == null) return false;
37         if (this == obj) return true;
38         if (__equalsCalc != null) {
39             return (__equalsCalc == obj);
40         }
41         __equalsCalc = obj;
42         boolean _equals;
43         _equals = true &&
44             ((currency==null && other.getCurrency()==null) ||
45              (currency!=null &&
46               java.util.Arrays.equals(currency, other.getCurrency())));
47         __equalsCalc = null;
48         return _equals;
49     }
50
51     private boolean __hashCodeCalc = false;
52     public synchronized int hashCode() {
53         if (__hashCodeCalc) {
54             return 0;
55         }
56         __hashCodeCalc = true;
57         int _hashCode = 1;
58         if (getCurrency() != null) {
59             for (int i=0;
60                  i<java.lang.reflect.Array.getLength(getCurrency());
61                  i++) {
62                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCurrency(), i);
63                 if (obj != null &&
64                     !obj.getClass().isArray()) {
65                     _hashCode += obj.hashCode();
66                 }
67             }
68         }
69         __hashCodeCalc = false;
70         return _hashCode;
71     }
72
73     // Type metadata
74
private static org.apache.axis.description.TypeDesc typeDesc =
75         new org.apache.axis.description.TypeDesc(ArrayOfCurrency.class);
76
77     static {
78         org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
79         field.setFieldName("currency");
80         field.setXmlName(new javax.xml.namespace.QName JavaDoc("http/www.pointwsp.net/ws/finance", "currency"));
81         field.setMinOccursIs0(true);
82         typeDesc.addFieldDesc(field);
83     };
84
85     /**
86      * Return type metadata object
87      */

88     public static org.apache.axis.description.TypeDesc getTypeDesc() {
89         return typeDesc;
90     }
91
92     /**
93      * Get Custom Serializer
94      */

95     public static org.apache.axis.encoding.Serializer getSerializer(
96            java.lang.String JavaDoc mechType,
97            java.lang.Class JavaDoc _javaType,
98            javax.xml.namespace.QName JavaDoc _xmlType) {
99         return
100           new org.apache.axis.encoding.ser.BeanSerializer(
101             _javaType, _xmlType, typeDesc);
102     }
103
104     /**
105      * Get Custom Deserializer
106      */

107     public static org.apache.axis.encoding.Deserializer getDeserializer(
108            java.lang.String JavaDoc mechType,
109            java.lang.Class JavaDoc _javaType,
110            javax.xml.namespace.QName JavaDoc _xmlType) {
111         return
112           new org.apache.axis.encoding.ser.BeanDeserializer(
113             _javaType, _xmlType, typeDesc);
114     }
115
116 }
117
Popular Tags