Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
21
    private com.aramex.stub.ArrayOfDimensions piecesDimensions;
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,
42
           com.aramex.stub.ArrayOfDimensions piecesDimensions,
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
     */
167
    public com.aramex.stub.ArrayOfDimensions getPiecesDimensions() {
168
        return piecesDimensions;
169
    }
170
 
171
 
172
    /**
173
     * Sets the piecesDimensions value for this ShipmentItem.
174
     * 
175
     * @param piecesDimensions
176
     */
177
    public void setPiecesDimensions(com.aramex.stub.ArrayOfDimensions piecesDimensions) {
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 &&
308
              this.piecesDimensions.equals(other.getPiecesDimensions()))) &&
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) {
349
            _hashCode += getPiecesDimensions().hashCode();
350
        }
351
        if (getCommodityCode() != null) {
352
            _hashCode += getCommodityCode().hashCode();
353
        }
354
        if (getGoodsDescription() != null) {
355
            _hashCode += getGoodsDescription().hashCode();
356
        }
357
        if (getCountryOfOrigin() != null) {
358
            _hashCode += getCountryOfOrigin().hashCode();
359
        }
360
        if (getCustomsValue() != null) {
361
            _hashCode += getCustomsValue().hashCode();
362
        }
363
        if (getContainerNumber() != null) {
364
            _hashCode += getContainerNumber().hashCode();
365
        }
366
        __hashCodeCalc = false;
367
        return _hashCode;
368
    }
369
 
370
    // Type metadata
371
    private static org.apache.axis.description.TypeDesc typeDesc =
372
        new org.apache.axis.description.TypeDesc(ShipmentItem.class, true);
373
 
374
    static {
375
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentItem"));
376
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
377
        elemField.setFieldName("packageType");
378
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PackageType"));
379
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
380
        elemField.setNillable(true);
381
        typeDesc.addFieldDesc(elemField);
382
        elemField = new org.apache.axis.description.ElementDesc();
383
        elemField.setFieldName("quantity");
384
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Quantity"));
385
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
386
        elemField.setNillable(false);
387
        typeDesc.addFieldDesc(elemField);
388
        elemField = new org.apache.axis.description.ElementDesc();
389
        elemField.setFieldName("weight");
390
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Weight"));
391
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Weight"));
392
        elemField.setNillable(true);
393
        typeDesc.addFieldDesc(elemField);
394
        elemField = new org.apache.axis.description.ElementDesc();
395
        elemField.setFieldName("comments");
396
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Comments"));
397
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
398
        elemField.setMinOccurs(0);
399
        elemField.setNillable(true);
400
        typeDesc.addFieldDesc(elemField);
401
        elemField = new org.apache.axis.description.ElementDesc();
402
        elemField.setFieldName("reference");
403
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference"));
404
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
405
        elemField.setMinOccurs(0);
406
        elemField.setNillable(true);
407
        typeDesc.addFieldDesc(elemField);
408
        elemField = new org.apache.axis.description.ElementDesc();
409
        elemField.setFieldName("piecesDimensions");
410
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PiecesDimensions"));
411
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfDimensions"));
412
        elemField.setMinOccurs(0);
413
        elemField.setNillable(true);
414
        typeDesc.addFieldDesc(elemField);
415
        elemField = new org.apache.axis.description.ElementDesc();
416
        elemField.setFieldName("commodityCode");
417
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CommodityCode"));
418
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
419
        elemField.setMinOccurs(0);
420
        elemField.setNillable(true);
421
        typeDesc.addFieldDesc(elemField);
422
        elemField = new org.apache.axis.description.ElementDesc();
423
        elemField.setFieldName("goodsDescription");
424
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "GoodsDescription"));
425
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
426
        elemField.setMinOccurs(0);
427
        elemField.setNillable(true);
428
        typeDesc.addFieldDesc(elemField);
429
        elemField = new org.apache.axis.description.ElementDesc();
430
        elemField.setFieldName("countryOfOrigin");
431
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CountryOfOrigin"));
432
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
433
        elemField.setMinOccurs(0);
434
        elemField.setNillable(true);
435
        typeDesc.addFieldDesc(elemField);
436
        elemField = new org.apache.axis.description.ElementDesc();
437
        elemField.setFieldName("customsValue");
438
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CustomsValue"));
439
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Money"));
440
        elemField.setMinOccurs(0);
441
        elemField.setNillable(true);
442
        typeDesc.addFieldDesc(elemField);
443
        elemField = new org.apache.axis.description.ElementDesc();
444
        elemField.setFieldName("containerNumber");
445
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ContainerNumber"));
446
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
447
        elemField.setMinOccurs(0);
448
        elemField.setNillable(true);
449
        typeDesc.addFieldDesc(elemField);
450
    }
451
 
452
    /**
453
     * Return type metadata object
454
     */
455
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
456
        return typeDesc;
457
    }
458
 
459
    /**
460
     * Get Custom Serializer
461
     */
462
    public static org.apache.axis.encoding.Serializer getSerializer(
463
           java.lang.String mechType, 
464
           java.lang.Class _javaType,  
465
           javax.xml.namespace.QName _xmlType) {
466
        return 
467
          new  org.apache.axis.encoding.ser.BeanSerializer(
468
            _javaType, _xmlType, typeDesc);
469
    }
470
 
471
    /**
472
     * Get Custom Deserializer
473
     */
474
    public static org.apache.axis.encoding.Deserializer getDeserializer(
475
           java.lang.String mechType, 
476
           java.lang.Class _javaType,  
477
           javax.xml.namespace.QName _xmlType) {
478
        return 
479
          new  org.apache.axis.encoding.ser.BeanDeserializer(
480
            _javaType, _xmlType, typeDesc);
481
    }
482
 
483
}