Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * PickupItemDetail.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.aramex.stub;
9
 
10
public class PickupItemDetail  implements java.io.Serializable {
11
    private java.lang.String productGroup;
12
 
13
    private java.lang.String productType;
14
 
15
    private int numberOfShipments;
16
 
17
    private java.lang.String packageType;
18
 
19
    private java.lang.String payment;
20
 
21
    private com.aramex.stub.Weight shipmentWeight;
22
 
23
    private com.aramex.stub.Volume shipmentVolume;
24
 
25
    private int numberOfPieces;
26
 
27
    private com.aramex.stub.Money cashAmount;
28
 
29
    private com.aramex.stub.Money extraCharges;
30
 
31
    private com.aramex.stub.Dimensions shipmentDimensions;
32
 
33
    private java.lang.String comments;
34
 
35
    public PickupItemDetail() {
36
    }
37
 
38
    public PickupItemDetail(
39
           java.lang.String productGroup,
40
           java.lang.String productType,
41
           int numberOfShipments,
42
           java.lang.String packageType,
43
           java.lang.String payment,
44
           com.aramex.stub.Weight shipmentWeight,
45
           com.aramex.stub.Volume shipmentVolume,
46
           int numberOfPieces,
47
           com.aramex.stub.Money cashAmount,
48
           com.aramex.stub.Money extraCharges,
49
           com.aramex.stub.Dimensions shipmentDimensions,
50
           java.lang.String comments) {
51
           this.productGroup = productGroup;
52
           this.productType = productType;
53
           this.numberOfShipments = numberOfShipments;
54
           this.packageType = packageType;
55
           this.payment = payment;
56
           this.shipmentWeight = shipmentWeight;
57
           this.shipmentVolume = shipmentVolume;
58
           this.numberOfPieces = numberOfPieces;
59
           this.cashAmount = cashAmount;
60
           this.extraCharges = extraCharges;
61
           this.shipmentDimensions = shipmentDimensions;
62
           this.comments = comments;
63
    }
64
 
65
 
66
    /**
67
     * Gets the productGroup value for this PickupItemDetail.
68
     * 
69
     * @return productGroup
70
     */
71
    public java.lang.String getProductGroup() {
72
        return productGroup;
73
    }
74
 
75
 
76
    /**
77
     * Sets the productGroup value for this PickupItemDetail.
78
     * 
79
     * @param productGroup
80
     */
81
    public void setProductGroup(java.lang.String productGroup) {
82
        this.productGroup = productGroup;
83
    }
84
 
85
 
86
    /**
87
     * Gets the productType value for this PickupItemDetail.
88
     * 
89
     * @return productType
90
     */
91
    public java.lang.String getProductType() {
92
        return productType;
93
    }
94
 
95
 
96
    /**
97
     * Sets the productType value for this PickupItemDetail.
98
     * 
99
     * @param productType
100
     */
101
    public void setProductType(java.lang.String productType) {
102
        this.productType = productType;
103
    }
104
 
105
 
106
    /**
107
     * Gets the numberOfShipments value for this PickupItemDetail.
108
     * 
109
     * @return numberOfShipments
110
     */
111
    public int getNumberOfShipments() {
112
        return numberOfShipments;
113
    }
114
 
115
 
116
    /**
117
     * Sets the numberOfShipments value for this PickupItemDetail.
118
     * 
119
     * @param numberOfShipments
120
     */
121
    public void setNumberOfShipments(int numberOfShipments) {
122
        this.numberOfShipments = numberOfShipments;
123
    }
124
 
125
 
126
    /**
127
     * Gets the packageType value for this PickupItemDetail.
128
     * 
129
     * @return packageType
130
     */
131
    public java.lang.String getPackageType() {
132
        return packageType;
133
    }
134
 
135
 
136
    /**
137
     * Sets the packageType value for this PickupItemDetail.
138
     * 
139
     * @param packageType
140
     */
141
    public void setPackageType(java.lang.String packageType) {
142
        this.packageType = packageType;
143
    }
144
 
145
 
146
    /**
147
     * Gets the payment value for this PickupItemDetail.
148
     * 
149
     * @return payment
150
     */
151
    public java.lang.String getPayment() {
152
        return payment;
153
    }
154
 
155
 
156
    /**
157
     * Sets the payment value for this PickupItemDetail.
158
     * 
159
     * @param payment
160
     */
161
    public void setPayment(java.lang.String payment) {
162
        this.payment = payment;
163
    }
164
 
165
 
166
    /**
167
     * Gets the shipmentWeight value for this PickupItemDetail.
168
     * 
169
     * @return shipmentWeight
170
     */
171
    public com.aramex.stub.Weight getShipmentWeight() {
172
        return shipmentWeight;
173
    }
174
 
175
 
176
    /**
177
     * Sets the shipmentWeight value for this PickupItemDetail.
178
     * 
179
     * @param shipmentWeight
180
     */
181
    public void setShipmentWeight(com.aramex.stub.Weight shipmentWeight) {
182
        this.shipmentWeight = shipmentWeight;
183
    }
184
 
185
 
186
    /**
187
     * Gets the shipmentVolume value for this PickupItemDetail.
188
     * 
189
     * @return shipmentVolume
190
     */
191
    public com.aramex.stub.Volume getShipmentVolume() {
192
        return shipmentVolume;
193
    }
194
 
195
 
196
    /**
197
     * Sets the shipmentVolume value for this PickupItemDetail.
198
     * 
199
     * @param shipmentVolume
200
     */
201
    public void setShipmentVolume(com.aramex.stub.Volume shipmentVolume) {
202
        this.shipmentVolume = shipmentVolume;
203
    }
204
 
205
 
206
    /**
207
     * Gets the numberOfPieces value for this PickupItemDetail.
208
     * 
209
     * @return numberOfPieces
210
     */
211
    public int getNumberOfPieces() {
212
        return numberOfPieces;
213
    }
214
 
215
 
216
    /**
217
     * Sets the numberOfPieces value for this PickupItemDetail.
218
     * 
219
     * @param numberOfPieces
220
     */
221
    public void setNumberOfPieces(int numberOfPieces) {
222
        this.numberOfPieces = numberOfPieces;
223
    }
224
 
225
 
226
    /**
227
     * Gets the cashAmount value for this PickupItemDetail.
228
     * 
229
     * @return cashAmount
230
     */
231
    public com.aramex.stub.Money getCashAmount() {
232
        return cashAmount;
233
    }
234
 
235
 
236
    /**
237
     * Sets the cashAmount value for this PickupItemDetail.
238
     * 
239
     * @param cashAmount
240
     */
241
    public void setCashAmount(com.aramex.stub.Money cashAmount) {
242
        this.cashAmount = cashAmount;
243
    }
244
 
245
 
246
    /**
247
     * Gets the extraCharges value for this PickupItemDetail.
248
     * 
249
     * @return extraCharges
250
     */
251
    public com.aramex.stub.Money getExtraCharges() {
252
        return extraCharges;
253
    }
254
 
255
 
256
    /**
257
     * Sets the extraCharges value for this PickupItemDetail.
258
     * 
259
     * @param extraCharges
260
     */
261
    public void setExtraCharges(com.aramex.stub.Money extraCharges) {
262
        this.extraCharges = extraCharges;
263
    }
264
 
265
 
266
    /**
267
     * Gets the shipmentDimensions value for this PickupItemDetail.
268
     * 
269
     * @return shipmentDimensions
270
     */
271
    public com.aramex.stub.Dimensions getShipmentDimensions() {
272
        return shipmentDimensions;
273
    }
274
 
275
 
276
    /**
277
     * Sets the shipmentDimensions value for this PickupItemDetail.
278
     * 
279
     * @param shipmentDimensions
280
     */
281
    public void setShipmentDimensions(com.aramex.stub.Dimensions shipmentDimensions) {
282
        this.shipmentDimensions = shipmentDimensions;
283
    }
284
 
285
 
286
    /**
287
     * Gets the comments value for this PickupItemDetail.
288
     * 
289
     * @return comments
290
     */
291
    public java.lang.String getComments() {
292
        return comments;
293
    }
294
 
295
 
296
    /**
297
     * Sets the comments value for this PickupItemDetail.
298
     * 
299
     * @param comments
300
     */
301
    public void setComments(java.lang.String comments) {
302
        this.comments = comments;
303
    }
304
 
305
    private java.lang.Object __equalsCalc = null;
306
    public synchronized boolean equals(java.lang.Object obj) {
307
        if (!(obj instanceof PickupItemDetail)) return false;
308
        PickupItemDetail other = (PickupItemDetail) obj;
309
        if (obj == null) return false;
310
        if (this == obj) return true;
311
        if (__equalsCalc != null) {
312
            return (__equalsCalc == obj);
313
        }
314
        __equalsCalc = obj;
315
        boolean _equals;
316
        _equals = true && 
317
            ((this.productGroup==null && other.getProductGroup()==null) || 
318
             (this.productGroup!=null &&
319
              this.productGroup.equals(other.getProductGroup()))) &&
320
            ((this.productType==null && other.getProductType()==null) || 
321
             (this.productType!=null &&
322
              this.productType.equals(other.getProductType()))) &&
323
            this.numberOfShipments == other.getNumberOfShipments() &&
324
            ((this.packageType==null && other.getPackageType()==null) || 
325
             (this.packageType!=null &&
326
              this.packageType.equals(other.getPackageType()))) &&
327
            ((this.payment==null && other.getPayment()==null) || 
328
             (this.payment!=null &&
329
              this.payment.equals(other.getPayment()))) &&
330
            ((this.shipmentWeight==null && other.getShipmentWeight()==null) || 
331
             (this.shipmentWeight!=null &&
332
              this.shipmentWeight.equals(other.getShipmentWeight()))) &&
333
            ((this.shipmentVolume==null && other.getShipmentVolume()==null) || 
334
             (this.shipmentVolume!=null &&
335
              this.shipmentVolume.equals(other.getShipmentVolume()))) &&
336
            this.numberOfPieces == other.getNumberOfPieces() &&
337
            ((this.cashAmount==null && other.getCashAmount()==null) || 
338
             (this.cashAmount!=null &&
339
              this.cashAmount.equals(other.getCashAmount()))) &&
340
            ((this.extraCharges==null && other.getExtraCharges()==null) || 
341
             (this.extraCharges!=null &&
342
              this.extraCharges.equals(other.getExtraCharges()))) &&
343
            ((this.shipmentDimensions==null && other.getShipmentDimensions()==null) || 
344
             (this.shipmentDimensions!=null &&
345
              this.shipmentDimensions.equals(other.getShipmentDimensions()))) &&
346
            ((this.comments==null && other.getComments()==null) || 
347
             (this.comments!=null &&
348
              this.comments.equals(other.getComments())));
349
        __equalsCalc = null;
350
        return _equals;
351
    }
352
 
353
    private boolean __hashCodeCalc = false;
354
    public synchronized int hashCode() {
355
        if (__hashCodeCalc) {
356
            return 0;
357
        }
358
        __hashCodeCalc = true;
359
        int _hashCode = 1;
360
        if (getProductGroup() != null) {
361
            _hashCode += getProductGroup().hashCode();
362
        }
363
        if (getProductType() != null) {
364
            _hashCode += getProductType().hashCode();
365
        }
366
        _hashCode += getNumberOfShipments();
367
        if (getPackageType() != null) {
368
            _hashCode += getPackageType().hashCode();
369
        }
370
        if (getPayment() != null) {
371
            _hashCode += getPayment().hashCode();
372
        }
373
        if (getShipmentWeight() != null) {
374
            _hashCode += getShipmentWeight().hashCode();
375
        }
376
        if (getShipmentVolume() != null) {
377
            _hashCode += getShipmentVolume().hashCode();
378
        }
379
        _hashCode += getNumberOfPieces();
380
        if (getCashAmount() != null) {
381
            _hashCode += getCashAmount().hashCode();
382
        }
383
        if (getExtraCharges() != null) {
384
            _hashCode += getExtraCharges().hashCode();
385
        }
386
        if (getShipmentDimensions() != null) {
387
            _hashCode += getShipmentDimensions().hashCode();
388
        }
389
        if (getComments() != null) {
390
            _hashCode += getComments().hashCode();
391
        }
392
        __hashCodeCalc = false;
393
        return _hashCode;
394
    }
395
 
396
    // Type metadata
397
    private static org.apache.axis.description.TypeDesc typeDesc =
398
        new org.apache.axis.description.TypeDesc(PickupItemDetail.class, true);
399
 
400
    static {
401
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PickupItemDetail"));
402
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
403
        elemField.setFieldName("productGroup");
404
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProductGroup"));
405
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
406
        elemField.setNillable(true);
407
        typeDesc.addFieldDesc(elemField);
408
        elemField = new org.apache.axis.description.ElementDesc();
409
        elemField.setFieldName("productType");
410
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProductType"));
411
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
412
        elemField.setNillable(true);
413
        typeDesc.addFieldDesc(elemField);
414
        elemField = new org.apache.axis.description.ElementDesc();
415
        elemField.setFieldName("numberOfShipments");
416
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "NumberOfShipments"));
417
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
418
        elemField.setNillable(false);
419
        typeDesc.addFieldDesc(elemField);
420
        elemField = new org.apache.axis.description.ElementDesc();
421
        elemField.setFieldName("packageType");
422
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PackageType"));
423
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
424
        elemField.setNillable(true);
425
        typeDesc.addFieldDesc(elemField);
426
        elemField = new org.apache.axis.description.ElementDesc();
427
        elemField.setFieldName("payment");
428
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Payment"));
429
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
430
        elemField.setNillable(true);
431
        typeDesc.addFieldDesc(elemField);
432
        elemField = new org.apache.axis.description.ElementDesc();
433
        elemField.setFieldName("shipmentWeight");
434
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentWeight"));
435
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Weight"));
436
        elemField.setNillable(true);
437
        typeDesc.addFieldDesc(elemField);
438
        elemField = new org.apache.axis.description.ElementDesc();
439
        elemField.setFieldName("shipmentVolume");
440
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentVolume"));
441
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Volume"));
442
        elemField.setNillable(true);
443
        typeDesc.addFieldDesc(elemField);
444
        elemField = new org.apache.axis.description.ElementDesc();
445
        elemField.setFieldName("numberOfPieces");
446
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "NumberOfPieces"));
447
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
448
        elemField.setNillable(false);
449
        typeDesc.addFieldDesc(elemField);
450
        elemField = new org.apache.axis.description.ElementDesc();
451
        elemField.setFieldName("cashAmount");
452
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CashAmount"));
453
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Money"));
454
        elemField.setNillable(true);
455
        typeDesc.addFieldDesc(elemField);
456
        elemField = new org.apache.axis.description.ElementDesc();
457
        elemField.setFieldName("extraCharges");
458
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ExtraCharges"));
459
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Money"));
460
        elemField.setNillable(true);
461
        typeDesc.addFieldDesc(elemField);
462
        elemField = new org.apache.axis.description.ElementDesc();
463
        elemField.setFieldName("shipmentDimensions");
464
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentDimensions"));
465
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Dimensions"));
466
        elemField.setNillable(true);
467
        typeDesc.addFieldDesc(elemField);
468
        elemField = new org.apache.axis.description.ElementDesc();
469
        elemField.setFieldName("comments");
470
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Comments"));
471
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
472
        elemField.setNillable(true);
473
        typeDesc.addFieldDesc(elemField);
474
    }
475
 
476
    /**
477
     * Return type metadata object
478
     */
479
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
480
        return typeDesc;
481
    }
482
 
483
    /**
484
     * Get Custom Serializer
485
     */
486
    public static org.apache.axis.encoding.Serializer getSerializer(
487
           java.lang.String mechType, 
488
           java.lang.Class _javaType,  
489
           javax.xml.namespace.QName _xmlType) {
490
        return 
491
          new  org.apache.axis.encoding.ser.BeanSerializer(
492
            _javaType, _xmlType, typeDesc);
493
    }
494
 
495
    /**
496
     * Get Custom Deserializer
497
     */
498
    public static org.apache.axis.encoding.Deserializer getDeserializer(
499
           java.lang.String mechType, 
500
           java.lang.Class _javaType,  
501
           javax.xml.namespace.QName _xmlType) {
502
        return 
503
          new  org.apache.axis.encoding.ser.BeanDeserializer(
504
            _javaType, _xmlType, typeDesc);
505
    }
506
 
507
}