Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * EdtCommodityTax.java
3
 *
4
 * This file was auto-generated from WSDL
5
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6
 */
7
 
8
package com.fedex.ship.stub;
9
 
10
public class EdtCommodityTax  implements java.io.Serializable {
11
    private java.lang.String harmonizedCode;
12
 
13
    private com.fedex.ship.stub.EdtTaxDetail[] taxes;
14
 
15
    public EdtCommodityTax() {
16
    }
17
 
18
    public EdtCommodityTax(
19
           java.lang.String harmonizedCode,
20
           com.fedex.ship.stub.EdtTaxDetail[] taxes) {
21
           this.harmonizedCode = harmonizedCode;
22
           this.taxes = taxes;
23
    }
24
 
25
 
26
    /**
27
     * Gets the harmonizedCode value for this EdtCommodityTax.
28
     * 
29
     * @return harmonizedCode
30
     */
31
    public java.lang.String getHarmonizedCode() {
32
        return harmonizedCode;
33
    }
34
 
35
 
36
    /**
37
     * Sets the harmonizedCode value for this EdtCommodityTax.
38
     * 
39
     * @param harmonizedCode
40
     */
41
    public void setHarmonizedCode(java.lang.String harmonizedCode) {
42
        this.harmonizedCode = harmonizedCode;
43
    }
44
 
45
 
46
    /**
47
     * Gets the taxes value for this EdtCommodityTax.
48
     * 
49
     * @return taxes
50
     */
51
    public com.fedex.ship.stub.EdtTaxDetail[] getTaxes() {
52
        return taxes;
53
    }
54
 
55
 
56
    /**
57
     * Sets the taxes value for this EdtCommodityTax.
58
     * 
59
     * @param taxes
60
     */
61
    public void setTaxes(com.fedex.ship.stub.EdtTaxDetail[] taxes) {
62
        this.taxes = taxes;
63
    }
64
 
65
    public com.fedex.ship.stub.EdtTaxDetail getTaxes(int i) {
66
        return this.taxes[i];
67
    }
68
 
69
    public void setTaxes(int i, com.fedex.ship.stub.EdtTaxDetail _value) {
70
        this.taxes[i] = _value;
71
    }
72
 
73
    private java.lang.Object __equalsCalc = null;
74
    public synchronized boolean equals(java.lang.Object obj) {
75
        if (!(obj instanceof EdtCommodityTax)) return false;
76
        EdtCommodityTax other = (EdtCommodityTax) obj;
77
        if (obj == null) return false;
78
        if (this == obj) return true;
79
        if (__equalsCalc != null) {
80
            return (__equalsCalc == obj);
81
        }
82
        __equalsCalc = obj;
83
        boolean _equals;
84
        _equals = true && 
85
            ((this.harmonizedCode==null && other.getHarmonizedCode()==null) || 
86
             (this.harmonizedCode!=null &&
87
              this.harmonizedCode.equals(other.getHarmonizedCode()))) &&
88
            ((this.taxes==null && other.getTaxes()==null) || 
89
             (this.taxes!=null &&
90
              java.util.Arrays.equals(this.taxes, other.getTaxes())));
91
        __equalsCalc = null;
92
        return _equals;
93
    }
94
 
95
    private boolean __hashCodeCalc = false;
96
    public synchronized int hashCode() {
97
        if (__hashCodeCalc) {
98
            return 0;
99
        }
100
        __hashCodeCalc = true;
101
        int _hashCode = 1;
102
        if (getHarmonizedCode() != null) {
103
            _hashCode += getHarmonizedCode().hashCode();
104
        }
105
        if (getTaxes() != null) {
106
            for (int i=0;
107
                 i<java.lang.reflect.Array.getLength(getTaxes());
108
                 i++) {
109
                java.lang.Object obj = java.lang.reflect.Array.get(getTaxes(), i);
110
                if (obj != null &&
111
                    !obj.getClass().isArray()) {
112
                    _hashCode += obj.hashCode();
113
                }
114
            }
115
        }
116
        __hashCodeCalc = false;
117
        return _hashCode;
118
    }
119
 
120
    // Type metadata
121
    private static org.apache.axis.description.TypeDesc typeDesc =
122
        new org.apache.axis.description.TypeDesc(EdtCommodityTax.class, true);
123
 
124
    static {
125
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EdtCommodityTax"));
126
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
127
        elemField.setFieldName("harmonizedCode");
128
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HarmonizedCode"));
129
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
130
        elemField.setMinOccurs(0);
131
        elemField.setNillable(false);
132
        typeDesc.addFieldDesc(elemField);
133
        elemField = new org.apache.axis.description.ElementDesc();
134
        elemField.setFieldName("taxes");
135
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Taxes"));
136
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EdtTaxDetail"));
137
        elemField.setMinOccurs(0);
138
        elemField.setNillable(false);
139
        elemField.setMaxOccursUnbounded(true);
140
        typeDesc.addFieldDesc(elemField);
141
    }
142
 
143
    /**
144
     * Return type metadata object
145
     */
146
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
147
        return typeDesc;
148
    }
149
 
150
    /**
151
     * Get Custom Serializer
152
     */
153
    public static org.apache.axis.encoding.Serializer getSerializer(
154
           java.lang.String mechType, 
155
           java.lang.Class _javaType,  
156
           javax.xml.namespace.QName _xmlType) {
157
        return 
158
          new  org.apache.axis.encoding.ser.BeanSerializer(
159
            _javaType, _xmlType, typeDesc);
160
    }
161
 
162
    /**
163
     * Get Custom Deserializer
164
     */
165
    public static org.apache.axis.encoding.Deserializer getDeserializer(
166
           java.lang.String mechType, 
167
           java.lang.Class _javaType,  
168
           javax.xml.namespace.QName _xmlType) {
169
        return 
170
          new  org.apache.axis.encoding.ser.BeanDeserializer(
171
            _javaType, _xmlType, typeDesc);
172
    }
173
 
174
}