Subversion Repositories SmartDukaan

Rev

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