Subversion Repositories SmartDukaan

Rev

Rev 20640 | Details | Compare with Previous | Last modification | View Log | RSS feed

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