Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * EdtTaxDetail.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 EdtTaxDetail  implements java.io.Serializable {
11
    private com.fedex.ship.stub.EdtTaxType taxType;
12
 
13
    private java.util.Date effectiveDate;
14
 
15
    private java.lang.String name;
16
 
17
    private com.fedex.ship.stub.Money taxableValue;
18
 
19
    private java.lang.String description;
20
 
21
    private java.lang.String formula;
22
 
23
    private com.fedex.ship.stub.Money amount;
24
 
25
    public EdtTaxDetail() {
26
    }
27
 
28
    public EdtTaxDetail(
29
           com.fedex.ship.stub.EdtTaxType taxType,
30
           java.util.Date effectiveDate,
31
           java.lang.String name,
32
           com.fedex.ship.stub.Money taxableValue,
33
           java.lang.String description,
34
           java.lang.String formula,
35
           com.fedex.ship.stub.Money amount) {
36
           this.taxType = taxType;
37
           this.effectiveDate = effectiveDate;
38
           this.name = name;
39
           this.taxableValue = taxableValue;
40
           this.description = description;
41
           this.formula = formula;
42
           this.amount = amount;
43
    }
44
 
45
 
46
    /**
47
     * Gets the taxType value for this EdtTaxDetail.
48
     * 
49
     * @return taxType
50
     */
51
    public com.fedex.ship.stub.EdtTaxType getTaxType() {
52
        return taxType;
53
    }
54
 
55
 
56
    /**
57
     * Sets the taxType value for this EdtTaxDetail.
58
     * 
59
     * @param taxType
60
     */
61
    public void setTaxType(com.fedex.ship.stub.EdtTaxType taxType) {
62
        this.taxType = taxType;
63
    }
64
 
65
 
66
    /**
67
     * Gets the effectiveDate value for this EdtTaxDetail.
68
     * 
69
     * @return effectiveDate
70
     */
71
    public java.util.Date getEffectiveDate() {
72
        return effectiveDate;
73
    }
74
 
75
 
76
    /**
77
     * Sets the effectiveDate value for this EdtTaxDetail.
78
     * 
79
     * @param effectiveDate
80
     */
81
    public void setEffectiveDate(java.util.Date effectiveDate) {
82
        this.effectiveDate = effectiveDate;
83
    }
84
 
85
 
86
    /**
87
     * Gets the name value for this EdtTaxDetail.
88
     * 
89
     * @return name
90
     */
91
    public java.lang.String getName() {
92
        return name;
93
    }
94
 
95
 
96
    /**
97
     * Sets the name value for this EdtTaxDetail.
98
     * 
99
     * @param name
100
     */
101
    public void setName(java.lang.String name) {
102
        this.name = name;
103
    }
104
 
105
 
106
    /**
107
     * Gets the taxableValue value for this EdtTaxDetail.
108
     * 
109
     * @return taxableValue
110
     */
111
    public com.fedex.ship.stub.Money getTaxableValue() {
112
        return taxableValue;
113
    }
114
 
115
 
116
    /**
117
     * Sets the taxableValue value for this EdtTaxDetail.
118
     * 
119
     * @param taxableValue
120
     */
121
    public void setTaxableValue(com.fedex.ship.stub.Money taxableValue) {
122
        this.taxableValue = taxableValue;
123
    }
124
 
125
 
126
    /**
127
     * Gets the description value for this EdtTaxDetail.
128
     * 
129
     * @return description
130
     */
131
    public java.lang.String getDescription() {
132
        return description;
133
    }
134
 
135
 
136
    /**
137
     * Sets the description value for this EdtTaxDetail.
138
     * 
139
     * @param description
140
     */
141
    public void setDescription(java.lang.String description) {
142
        this.description = description;
143
    }
144
 
145
 
146
    /**
147
     * Gets the formula value for this EdtTaxDetail.
148
     * 
149
     * @return formula
150
     */
151
    public java.lang.String getFormula() {
152
        return formula;
153
    }
154
 
155
 
156
    /**
157
     * Sets the formula value for this EdtTaxDetail.
158
     * 
159
     * @param formula
160
     */
161
    public void setFormula(java.lang.String formula) {
162
        this.formula = formula;
163
    }
164
 
165
 
166
    /**
167
     * Gets the amount value for this EdtTaxDetail.
168
     * 
169
     * @return amount
170
     */
171
    public com.fedex.ship.stub.Money getAmount() {
172
        return amount;
173
    }
174
 
175
 
176
    /**
177
     * Sets the amount value for this EdtTaxDetail.
178
     * 
179
     * @param amount
180
     */
181
    public void setAmount(com.fedex.ship.stub.Money amount) {
182
        this.amount = amount;
183
    }
184
 
185
    private java.lang.Object __equalsCalc = null;
186
    public synchronized boolean equals(java.lang.Object obj) {
187
        if (!(obj instanceof EdtTaxDetail)) return false;
188
        EdtTaxDetail other = (EdtTaxDetail) obj;
189
        if (obj == null) return false;
190
        if (this == obj) return true;
191
        if (__equalsCalc != null) {
192
            return (__equalsCalc == obj);
193
        }
194
        __equalsCalc = obj;
195
        boolean _equals;
196
        _equals = true && 
197
            ((this.taxType==null && other.getTaxType()==null) || 
198
             (this.taxType!=null &&
199
              this.taxType.equals(other.getTaxType()))) &&
200
            ((this.effectiveDate==null && other.getEffectiveDate()==null) || 
201
             (this.effectiveDate!=null &&
202
              this.effectiveDate.equals(other.getEffectiveDate()))) &&
203
            ((this.name==null && other.getName()==null) || 
204
             (this.name!=null &&
205
              this.name.equals(other.getName()))) &&
206
            ((this.taxableValue==null && other.getTaxableValue()==null) || 
207
             (this.taxableValue!=null &&
208
              this.taxableValue.equals(other.getTaxableValue()))) &&
209
            ((this.description==null && other.getDescription()==null) || 
210
             (this.description!=null &&
211
              this.description.equals(other.getDescription()))) &&
212
            ((this.formula==null && other.getFormula()==null) || 
213
             (this.formula!=null &&
214
              this.formula.equals(other.getFormula()))) &&
215
            ((this.amount==null && other.getAmount()==null) || 
216
             (this.amount!=null &&
217
              this.amount.equals(other.getAmount())));
218
        __equalsCalc = null;
219
        return _equals;
220
    }
221
 
222
    private boolean __hashCodeCalc = false;
223
    public synchronized int hashCode() {
224
        if (__hashCodeCalc) {
225
            return 0;
226
        }
227
        __hashCodeCalc = true;
228
        int _hashCode = 1;
229
        if (getTaxType() != null) {
230
            _hashCode += getTaxType().hashCode();
231
        }
232
        if (getEffectiveDate() != null) {
233
            _hashCode += getEffectiveDate().hashCode();
234
        }
235
        if (getName() != null) {
236
            _hashCode += getName().hashCode();
237
        }
238
        if (getTaxableValue() != null) {
239
            _hashCode += getTaxableValue().hashCode();
240
        }
241
        if (getDescription() != null) {
242
            _hashCode += getDescription().hashCode();
243
        }
244
        if (getFormula() != null) {
245
            _hashCode += getFormula().hashCode();
246
        }
247
        if (getAmount() != null) {
248
            _hashCode += getAmount().hashCode();
249
        }
250
        __hashCodeCalc = false;
251
        return _hashCode;
252
    }
253
 
254
    // Type metadata
255
    private static org.apache.axis.description.TypeDesc typeDesc =
256
        new org.apache.axis.description.TypeDesc(EdtTaxDetail.class, true);
257
 
258
    static {
259
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EdtTaxDetail"));
260
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
261
        elemField.setFieldName("taxType");
262
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxType"));
263
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EdtTaxType"));
264
        elemField.setMinOccurs(0);
265
        elemField.setNillable(false);
266
        typeDesc.addFieldDesc(elemField);
267
        elemField = new org.apache.axis.description.ElementDesc();
268
        elemField.setFieldName("effectiveDate");
269
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EffectiveDate"));
270
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
271
        elemField.setMinOccurs(0);
272
        elemField.setNillable(false);
273
        typeDesc.addFieldDesc(elemField);
274
        elemField = new org.apache.axis.description.ElementDesc();
275
        elemField.setFieldName("name");
276
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Name"));
277
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
278
        elemField.setMinOccurs(0);
279
        elemField.setNillable(false);
280
        typeDesc.addFieldDesc(elemField);
281
        elemField = new org.apache.axis.description.ElementDesc();
282
        elemField.setFieldName("taxableValue");
283
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxableValue"));
284
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
285
        elemField.setMinOccurs(0);
286
        elemField.setNillable(false);
287
        typeDesc.addFieldDesc(elemField);
288
        elemField = new org.apache.axis.description.ElementDesc();
289
        elemField.setFieldName("description");
290
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Description"));
291
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
292
        elemField.setMinOccurs(0);
293
        elemField.setNillable(false);
294
        typeDesc.addFieldDesc(elemField);
295
        elemField = new org.apache.axis.description.ElementDesc();
296
        elemField.setFieldName("formula");
297
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Formula"));
298
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
299
        elemField.setMinOccurs(0);
300
        elemField.setNillable(false);
301
        typeDesc.addFieldDesc(elemField);
302
        elemField = new org.apache.axis.description.ElementDesc();
303
        elemField.setFieldName("amount");
304
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Amount"));
305
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
306
        elemField.setMinOccurs(0);
307
        elemField.setNillable(false);
308
        typeDesc.addFieldDesc(elemField);
309
    }
310
 
311
    /**
312
     * Return type metadata object
313
     */
314
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
315
        return typeDesc;
316
    }
317
 
318
    /**
319
     * Get Custom Serializer
320
     */
321
    public static org.apache.axis.encoding.Serializer getSerializer(
322
           java.lang.String mechType, 
323
           java.lang.Class _javaType,  
324
           javax.xml.namespace.QName _xmlType) {
325
        return 
326
          new  org.apache.axis.encoding.ser.BeanSerializer(
327
            _javaType, _xmlType, typeDesc);
328
    }
329
 
330
    /**
331
     * Get Custom Deserializer
332
     */
333
    public static org.apache.axis.encoding.Deserializer getDeserializer(
334
           java.lang.String mechType, 
335
           java.lang.Class _javaType,  
336
           javax.xml.namespace.QName _xmlType) {
337
        return 
338
          new  org.apache.axis.encoding.ser.BeanDeserializer(
339
            _javaType, _xmlType, typeDesc);
340
    }
341
 
342
}