Subversion Repositories SmartDukaan

Rev

Rev 20640 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20640 Rev 22598
Line 18... Line 18...
18
 
18
 
19
    private java.lang.String foreignHAWB;
19
    private java.lang.String foreignHAWB;
20
 
20
 
21
    private boolean hasErrors;
21
    private boolean hasErrors;
22
 
22
 
23
    private com.aramex.stub.ArrayOfNotification notifications;
23
    private com.aramex.stub.Notification[] notifications;
24
 
24
 
25
    private com.aramex.stub.ShipmentLabel shipmentLabel;
25
    private com.aramex.stub.ShipmentLabel shipmentLabel;
26
 
26
 
-
 
27
    private com.aramex.stub.ProcessedShipmentDetails shipmentDetails;
-
 
28
 
-
 
29
    private com.aramex.stub.ProcessedShipmentAttachment[] shipmentAttachments;
-
 
30
 
27
    public ProcessedShipment() {
31
    public ProcessedShipment() {
28
    }
32
    }
29
 
33
 
30
    public ProcessedShipment(
34
    public ProcessedShipment(
31
           java.lang.String ID,
35
           java.lang.String ID,
32
           java.lang.String reference1,
36
           java.lang.String reference1,
33
           java.lang.String reference2,
37
           java.lang.String reference2,
34
           java.lang.String reference3,
38
           java.lang.String reference3,
35
           java.lang.String foreignHAWB,
39
           java.lang.String foreignHAWB,
36
           boolean hasErrors,
40
           boolean hasErrors,
37
           com.aramex.stub.ArrayOfNotification notifications,
41
           com.aramex.stub.Notification[] notifications,
38
           com.aramex.stub.ShipmentLabel shipmentLabel) {
42
           com.aramex.stub.ShipmentLabel shipmentLabel,
-
 
43
           com.aramex.stub.ProcessedShipmentDetails shipmentDetails,
-
 
44
           com.aramex.stub.ProcessedShipmentAttachment[] shipmentAttachments) {
39
           this.ID = ID;
45
           this.ID = ID;
40
           this.reference1 = reference1;
46
           this.reference1 = reference1;
41
           this.reference2 = reference2;
47
           this.reference2 = reference2;
42
           this.reference3 = reference3;
48
           this.reference3 = reference3;
43
           this.foreignHAWB = foreignHAWB;
49
           this.foreignHAWB = foreignHAWB;
44
           this.hasErrors = hasErrors;
50
           this.hasErrors = hasErrors;
45
           this.notifications = notifications;
51
           this.notifications = notifications;
46
           this.shipmentLabel = shipmentLabel;
52
           this.shipmentLabel = shipmentLabel;
-
 
53
           this.shipmentDetails = shipmentDetails;
-
 
54
           this.shipmentAttachments = shipmentAttachments;
47
    }
55
    }
48
 
56
 
49
 
57
 
50
    /**
58
    /**
51
     * Gets the ID value for this ProcessedShipment.
59
     * Gets the ID value for this ProcessedShipment.
Line 170... Line 178...
170
    /**
178
    /**
171
     * Gets the notifications value for this ProcessedShipment.
179
     * Gets the notifications value for this ProcessedShipment.
172
     * 
180
     * 
173
     * @return notifications
181
     * @return notifications
174
     */
182
     */
175
    public com.aramex.stub.ArrayOfNotification getNotifications() {
183
    public com.aramex.stub.Notification[] getNotifications() {
176
        return notifications;
184
        return notifications;
177
    }
185
    }
178
 
186
 
179
 
187
 
180
    /**
188
    /**
181
     * Sets the notifications value for this ProcessedShipment.
189
     * Sets the notifications value for this ProcessedShipment.
182
     * 
190
     * 
183
     * @param notifications
191
     * @param notifications
184
     */
192
     */
185
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
193
    public void setNotifications(com.aramex.stub.Notification[] notifications) {
186
        this.notifications = notifications;
194
        this.notifications = notifications;
187
    }
195
    }
188
 
196
 
189
 
197
 
190
    /**
198
    /**
Line 204... Line 212...
204
     */
212
     */
205
    public void setShipmentLabel(com.aramex.stub.ShipmentLabel shipmentLabel) {
213
    public void setShipmentLabel(com.aramex.stub.ShipmentLabel shipmentLabel) {
206
        this.shipmentLabel = shipmentLabel;
214
        this.shipmentLabel = shipmentLabel;
207
    }
215
    }
208
 
216
 
-
 
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
 
209
    private java.lang.Object __equalsCalc = null;
257
    private java.lang.Object __equalsCalc = null;
210
    public synchronized boolean equals(java.lang.Object obj) {
258
    public synchronized boolean equals(java.lang.Object obj) {
211
        if (!(obj instanceof ProcessedShipment)) return false;
259
        if (!(obj instanceof ProcessedShipment)) return false;
212
        ProcessedShipment other = (ProcessedShipment) obj;
260
        ProcessedShipment other = (ProcessedShipment) obj;
213
        if (obj == null) return false;
261
        if (obj == null) return false;
Line 234... Line 282...
234
             (this.foreignHAWB!=null &&
282
             (this.foreignHAWB!=null &&
235
              this.foreignHAWB.equals(other.getForeignHAWB()))) &&
283
              this.foreignHAWB.equals(other.getForeignHAWB()))) &&
236
            this.hasErrors == other.isHasErrors() &&
284
            this.hasErrors == other.isHasErrors() &&
237
            ((this.notifications==null && other.getNotifications()==null) || 
285
            ((this.notifications==null && other.getNotifications()==null) || 
238
             (this.notifications!=null &&
286
             (this.notifications!=null &&
239
              this.notifications.equals(other.getNotifications()))) &&
287
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
240
            ((this.shipmentLabel==null && other.getShipmentLabel()==null) || 
288
            ((this.shipmentLabel==null && other.getShipmentLabel()==null) || 
241
             (this.shipmentLabel!=null &&
289
             (this.shipmentLabel!=null &&
242
              this.shipmentLabel.equals(other.getShipmentLabel())));
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())));
243
        __equalsCalc = null;
297
        __equalsCalc = null;
244
        return _equals;
298
        return _equals;
245
    }
299
    }
246
 
300
 
247
    private boolean __hashCodeCalc = false;
301
    private boolean __hashCodeCalc = false;
Line 266... Line 320...
266
        if (getForeignHAWB() != null) {
320
        if (getForeignHAWB() != null) {
267
            _hashCode += getForeignHAWB().hashCode();
321
            _hashCode += getForeignHAWB().hashCode();
268
        }
322
        }
269
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
323
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
270
        if (getNotifications() != null) {
324
        if (getNotifications() != null) {
-
 
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()) {
271
            _hashCode += getNotifications().hashCode();
331
                    _hashCode += obj.hashCode();
-
 
332
                }
-
 
333
            }
272
        }
334
        }
273
        if (getShipmentLabel() != null) {
335
        if (getShipmentLabel() != null) {
274
            _hashCode += getShipmentLabel().hashCode();
336
            _hashCode += getShipmentLabel().hashCode();
275
        }
337
        }
-
 
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
        }
276
        __hashCodeCalc = false;
352
        __hashCodeCalc = false;
277
        return _hashCode;
353
        return _hashCode;
278
    }
354
    }
279
 
355
 
280
    // Type metadata
356
    // Type metadata
Line 320... Line 396...
320
        elemField.setNillable(false);
396
        elemField.setNillable(false);
321
        typeDesc.addFieldDesc(elemField);
397
        typeDesc.addFieldDesc(elemField);
322
        elemField = new org.apache.axis.description.ElementDesc();
398
        elemField = new org.apache.axis.description.ElementDesc();
323
        elemField.setFieldName("notifications");
399
        elemField.setFieldName("notifications");
324
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
400
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
325
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfNotification"));
401
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
326
        elemField.setNillable(true);
402
        elemField.setNillable(true);
-
 
403
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
327
        typeDesc.addFieldDesc(elemField);
404
        typeDesc.addFieldDesc(elemField);
328
        elemField = new org.apache.axis.description.ElementDesc();
405
        elemField = new org.apache.axis.description.ElementDesc();
329
        elemField.setFieldName("shipmentLabel");
406
        elemField.setFieldName("shipmentLabel");
330
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentLabel"));
407
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentLabel"));
331
        elemField.setXmlType(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"));
332
        elemField.setNillable(true);
409
        elemField.setNillable(true);
333
        typeDesc.addFieldDesc(elemField);
410
        typeDesc.addFieldDesc(elemField);
-
 
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);
334
    }
426
    }
335
 
427
 
336
    /**
428
    /**
337
     * Return type metadata object
429
     * Return type metadata object
338
     */
430
     */