Subversion Repositories SmartDukaan

Rev

Rev 20640 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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