Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * AssociatedShipmentDetail.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.fedex.ship.stub;
9
 
10
public class AssociatedShipmentDetail  implements java.io.Serializable {
11
    private com.fedex.ship.stub.AssociatedShipmentType type;
12
 
13
    private com.fedex.ship.stub.Party sender;
14
 
15
    private com.fedex.ship.stub.Party recipient;
16
 
17
    private com.fedex.ship.stub.ServiceType serviceType;
18
 
19
    private com.fedex.ship.stub.PackagingType packagingType;
20
 
21
    /* Specifies the tracking id for the payment on the return. */
22
    private com.fedex.ship.stub.TrackingId trackingId;
23
 
24
    /* Specifies additional customer reference data about the associated
25
     * shipment. */
26
    private com.fedex.ship.stub.CustomerReference[] customerReferences;
27
 
28
    /* Specifies shipment level operational information. */
29
    private com.fedex.ship.stub.ShipmentOperationalDetail shipmentOperationalDetail;
30
 
31
    /* Specifies package level operational information on the associated
32
     * shipment. This information is not tied to an individual outbound package. */
33
    private com.fedex.ship.stub.PackageOperationalDetail packageOperationalDetail;
34
 
35
    private com.fedex.ship.stub.ShippingDocument label;
36
 
37
    public AssociatedShipmentDetail() {
38
    }
39
 
40
    public AssociatedShipmentDetail(
41
           com.fedex.ship.stub.AssociatedShipmentType type,
42
           com.fedex.ship.stub.Party sender,
43
           com.fedex.ship.stub.Party recipient,
44
           com.fedex.ship.stub.ServiceType serviceType,
45
           com.fedex.ship.stub.PackagingType packagingType,
46
           com.fedex.ship.stub.TrackingId trackingId,
47
           com.fedex.ship.stub.CustomerReference[] customerReferences,
48
           com.fedex.ship.stub.ShipmentOperationalDetail shipmentOperationalDetail,
49
           com.fedex.ship.stub.PackageOperationalDetail packageOperationalDetail,
50
           com.fedex.ship.stub.ShippingDocument label) {
51
           this.type = type;
52
           this.sender = sender;
53
           this.recipient = recipient;
54
           this.serviceType = serviceType;
55
           this.packagingType = packagingType;
56
           this.trackingId = trackingId;
57
           this.customerReferences = customerReferences;
58
           this.shipmentOperationalDetail = shipmentOperationalDetail;
59
           this.packageOperationalDetail = packageOperationalDetail;
60
           this.label = label;
61
    }
62
 
63
 
64
    /**
65
     * Gets the type value for this AssociatedShipmentDetail.
66
     * 
67
     * @return type
68
     */
69
    public com.fedex.ship.stub.AssociatedShipmentType getType() {
70
        return type;
71
    }
72
 
73
 
74
    /**
75
     * Sets the type value for this AssociatedShipmentDetail.
76
     * 
77
     * @param type
78
     */
79
    public void setType(com.fedex.ship.stub.AssociatedShipmentType type) {
80
        this.type = type;
81
    }
82
 
83
 
84
    /**
85
     * Gets the sender value for this AssociatedShipmentDetail.
86
     * 
87
     * @return sender
88
     */
89
    public com.fedex.ship.stub.Party getSender() {
90
        return sender;
91
    }
92
 
93
 
94
    /**
95
     * Sets the sender value for this AssociatedShipmentDetail.
96
     * 
97
     * @param sender
98
     */
99
    public void setSender(com.fedex.ship.stub.Party sender) {
100
        this.sender = sender;
101
    }
102
 
103
 
104
    /**
105
     * Gets the recipient value for this AssociatedShipmentDetail.
106
     * 
107
     * @return recipient
108
     */
109
    public com.fedex.ship.stub.Party getRecipient() {
110
        return recipient;
111
    }
112
 
113
 
114
    /**
115
     * Sets the recipient value for this AssociatedShipmentDetail.
116
     * 
117
     * @param recipient
118
     */
119
    public void setRecipient(com.fedex.ship.stub.Party recipient) {
120
        this.recipient = recipient;
121
    }
122
 
123
 
124
    /**
125
     * Gets the serviceType value for this AssociatedShipmentDetail.
126
     * 
127
     * @return serviceType
128
     */
129
    public com.fedex.ship.stub.ServiceType getServiceType() {
130
        return serviceType;
131
    }
132
 
133
 
134
    /**
135
     * Sets the serviceType value for this AssociatedShipmentDetail.
136
     * 
137
     * @param serviceType
138
     */
139
    public void setServiceType(com.fedex.ship.stub.ServiceType serviceType) {
140
        this.serviceType = serviceType;
141
    }
142
 
143
 
144
    /**
145
     * Gets the packagingType value for this AssociatedShipmentDetail.
146
     * 
147
     * @return packagingType
148
     */
149
    public com.fedex.ship.stub.PackagingType getPackagingType() {
150
        return packagingType;
151
    }
152
 
153
 
154
    /**
155
     * Sets the packagingType value for this AssociatedShipmentDetail.
156
     * 
157
     * @param packagingType
158
     */
159
    public void setPackagingType(com.fedex.ship.stub.PackagingType packagingType) {
160
        this.packagingType = packagingType;
161
    }
162
 
163
 
164
    /**
165
     * Gets the trackingId value for this AssociatedShipmentDetail.
166
     * 
167
     * @return trackingId   * Specifies the tracking id for the payment on the return.
168
     */
169
    public com.fedex.ship.stub.TrackingId getTrackingId() {
170
        return trackingId;
171
    }
172
 
173
 
174
    /**
175
     * Sets the trackingId value for this AssociatedShipmentDetail.
176
     * 
177
     * @param trackingId   * Specifies the tracking id for the payment on the return.
178
     */
179
    public void setTrackingId(com.fedex.ship.stub.TrackingId trackingId) {
180
        this.trackingId = trackingId;
181
    }
182
 
183
 
184
    /**
185
     * Gets the customerReferences value for this AssociatedShipmentDetail.
186
     * 
187
     * @return customerReferences   * Specifies additional customer reference data about the associated
188
     * shipment.
189
     */
190
    public com.fedex.ship.stub.CustomerReference[] getCustomerReferences() {
191
        return customerReferences;
192
    }
193
 
194
 
195
    /**
196
     * Sets the customerReferences value for this AssociatedShipmentDetail.
197
     * 
198
     * @param customerReferences   * Specifies additional customer reference data about the associated
199
     * shipment.
200
     */
201
    public void setCustomerReferences(com.fedex.ship.stub.CustomerReference[] customerReferences) {
202
        this.customerReferences = customerReferences;
203
    }
204
 
205
    public com.fedex.ship.stub.CustomerReference getCustomerReferences(int i) {
206
        return this.customerReferences[i];
207
    }
208
 
209
    public void setCustomerReferences(int i, com.fedex.ship.stub.CustomerReference _value) {
210
        this.customerReferences[i] = _value;
211
    }
212
 
213
 
214
    /**
215
     * Gets the shipmentOperationalDetail value for this AssociatedShipmentDetail.
216
     * 
217
     * @return shipmentOperationalDetail   * Specifies shipment level operational information.
218
     */
219
    public com.fedex.ship.stub.ShipmentOperationalDetail getShipmentOperationalDetail() {
220
        return shipmentOperationalDetail;
221
    }
222
 
223
 
224
    /**
225
     * Sets the shipmentOperationalDetail value for this AssociatedShipmentDetail.
226
     * 
227
     * @param shipmentOperationalDetail   * Specifies shipment level operational information.
228
     */
229
    public void setShipmentOperationalDetail(com.fedex.ship.stub.ShipmentOperationalDetail shipmentOperationalDetail) {
230
        this.shipmentOperationalDetail = shipmentOperationalDetail;
231
    }
232
 
233
 
234
    /**
235
     * Gets the packageOperationalDetail value for this AssociatedShipmentDetail.
236
     * 
237
     * @return packageOperationalDetail   * Specifies package level operational information on the associated
238
     * shipment. This information is not tied to an individual outbound package.
239
     */
240
    public com.fedex.ship.stub.PackageOperationalDetail getPackageOperationalDetail() {
241
        return packageOperationalDetail;
242
    }
243
 
244
 
245
    /**
246
     * Sets the packageOperationalDetail value for this AssociatedShipmentDetail.
247
     * 
248
     * @param packageOperationalDetail   * Specifies package level operational information on the associated
249
     * shipment. This information is not tied to an individual outbound package.
250
     */
251
    public void setPackageOperationalDetail(com.fedex.ship.stub.PackageOperationalDetail packageOperationalDetail) {
252
        this.packageOperationalDetail = packageOperationalDetail;
253
    }
254
 
255
 
256
    /**
257
     * Gets the label value for this AssociatedShipmentDetail.
258
     * 
259
     * @return label
260
     */
261
    public com.fedex.ship.stub.ShippingDocument getLabel() {
262
        return label;
263
    }
264
 
265
 
266
    /**
267
     * Sets the label value for this AssociatedShipmentDetail.
268
     * 
269
     * @param label
270
     */
271
    public void setLabel(com.fedex.ship.stub.ShippingDocument label) {
272
        this.label = label;
273
    }
274
 
275
    private java.lang.Object __equalsCalc = null;
276
    public synchronized boolean equals(java.lang.Object obj) {
277
        if (!(obj instanceof AssociatedShipmentDetail)) return false;
278
        AssociatedShipmentDetail other = (AssociatedShipmentDetail) obj;
279
        if (obj == null) return false;
280
        if (this == obj) return true;
281
        if (__equalsCalc != null) {
282
            return (__equalsCalc == obj);
283
        }
284
        __equalsCalc = obj;
285
        boolean _equals;
286
        _equals = true && 
287
            ((this.type==null && other.getType()==null) || 
288
             (this.type!=null &&
289
              this.type.equals(other.getType()))) &&
290
            ((this.sender==null && other.getSender()==null) || 
291
             (this.sender!=null &&
292
              this.sender.equals(other.getSender()))) &&
293
            ((this.recipient==null && other.getRecipient()==null) || 
294
             (this.recipient!=null &&
295
              this.recipient.equals(other.getRecipient()))) &&
296
            ((this.serviceType==null && other.getServiceType()==null) || 
297
             (this.serviceType!=null &&
298
              this.serviceType.equals(other.getServiceType()))) &&
299
            ((this.packagingType==null && other.getPackagingType()==null) || 
300
             (this.packagingType!=null &&
301
              this.packagingType.equals(other.getPackagingType()))) &&
302
            ((this.trackingId==null && other.getTrackingId()==null) || 
303
             (this.trackingId!=null &&
304
              this.trackingId.equals(other.getTrackingId()))) &&
305
            ((this.customerReferences==null && other.getCustomerReferences()==null) || 
306
             (this.customerReferences!=null &&
307
              java.util.Arrays.equals(this.customerReferences, other.getCustomerReferences()))) &&
308
            ((this.shipmentOperationalDetail==null && other.getShipmentOperationalDetail()==null) || 
309
             (this.shipmentOperationalDetail!=null &&
310
              this.shipmentOperationalDetail.equals(other.getShipmentOperationalDetail()))) &&
311
            ((this.packageOperationalDetail==null && other.getPackageOperationalDetail()==null) || 
312
             (this.packageOperationalDetail!=null &&
313
              this.packageOperationalDetail.equals(other.getPackageOperationalDetail()))) &&
314
            ((this.label==null && other.getLabel()==null) || 
315
             (this.label!=null &&
316
              this.label.equals(other.getLabel())));
317
        __equalsCalc = null;
318
        return _equals;
319
    }
320
 
321
    private boolean __hashCodeCalc = false;
322
    public synchronized int hashCode() {
323
        if (__hashCodeCalc) {
324
            return 0;
325
        }
326
        __hashCodeCalc = true;
327
        int _hashCode = 1;
328
        if (getType() != null) {
329
            _hashCode += getType().hashCode();
330
        }
331
        if (getSender() != null) {
332
            _hashCode += getSender().hashCode();
333
        }
334
        if (getRecipient() != null) {
335
            _hashCode += getRecipient().hashCode();
336
        }
337
        if (getServiceType() != null) {
338
            _hashCode += getServiceType().hashCode();
339
        }
340
        if (getPackagingType() != null) {
341
            _hashCode += getPackagingType().hashCode();
342
        }
343
        if (getTrackingId() != null) {
344
            _hashCode += getTrackingId().hashCode();
345
        }
346
        if (getCustomerReferences() != null) {
347
            for (int i=0;
348
                 i<java.lang.reflect.Array.getLength(getCustomerReferences());
349
                 i++) {
350
                java.lang.Object obj = java.lang.reflect.Array.get(getCustomerReferences(), i);
351
                if (obj != null &&
352
                    !obj.getClass().isArray()) {
353
                    _hashCode += obj.hashCode();
354
                }
355
            }
356
        }
357
        if (getShipmentOperationalDetail() != null) {
358
            _hashCode += getShipmentOperationalDetail().hashCode();
359
        }
360
        if (getPackageOperationalDetail() != null) {
361
            _hashCode += getPackageOperationalDetail().hashCode();
362
        }
363
        if (getLabel() != null) {
364
            _hashCode += getLabel().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(AssociatedShipmentDetail.class, true);
373
 
374
    static {
375
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AssociatedShipmentDetail"));
376
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
377
        elemField.setFieldName("type");
378
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Type"));
379
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AssociatedShipmentType"));
380
        elemField.setMinOccurs(0);
381
        elemField.setNillable(false);
382
        typeDesc.addFieldDesc(elemField);
383
        elemField = new org.apache.axis.description.ElementDesc();
384
        elemField.setFieldName("sender");
385
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Sender"));
386
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Party"));
387
        elemField.setMinOccurs(0);
388
        elemField.setNillable(false);
389
        typeDesc.addFieldDesc(elemField);
390
        elemField = new org.apache.axis.description.ElementDesc();
391
        elemField.setFieldName("recipient");
392
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Recipient"));
393
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Party"));
394
        elemField.setMinOccurs(0);
395
        elemField.setNillable(false);
396
        typeDesc.addFieldDesc(elemField);
397
        elemField = new org.apache.axis.description.ElementDesc();
398
        elemField.setFieldName("serviceType");
399
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ServiceType"));
400
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ServiceType"));
401
        elemField.setMinOccurs(0);
402
        elemField.setNillable(false);
403
        typeDesc.addFieldDesc(elemField);
404
        elemField = new org.apache.axis.description.ElementDesc();
405
        elemField.setFieldName("packagingType");
406
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackagingType"));
407
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackagingType"));
408
        elemField.setMinOccurs(0);
409
        elemField.setNillable(false);
410
        typeDesc.addFieldDesc(elemField);
411
        elemField = new org.apache.axis.description.ElementDesc();
412
        elemField.setFieldName("trackingId");
413
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
414
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
415
        elemField.setMinOccurs(0);
416
        elemField.setNillable(false);
417
        typeDesc.addFieldDesc(elemField);
418
        elemField = new org.apache.axis.description.ElementDesc();
419
        elemField.setFieldName("customerReferences");
420
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerReferences"));
421
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerReference"));
422
        elemField.setMinOccurs(0);
423
        elemField.setNillable(false);
424
        elemField.setMaxOccursUnbounded(true);
425
        typeDesc.addFieldDesc(elemField);
426
        elemField = new org.apache.axis.description.ElementDesc();
427
        elemField.setFieldName("shipmentOperationalDetail");
428
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentOperationalDetail"));
429
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentOperationalDetail"));
430
        elemField.setMinOccurs(0);
431
        elemField.setNillable(false);
432
        typeDesc.addFieldDesc(elemField);
433
        elemField = new org.apache.axis.description.ElementDesc();
434
        elemField.setFieldName("packageOperationalDetail");
435
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageOperationalDetail"));
436
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageOperationalDetail"));
437
        elemField.setMinOccurs(0);
438
        elemField.setNillable(false);
439
        typeDesc.addFieldDesc(elemField);
440
        elemField = new org.apache.axis.description.ElementDesc();
441
        elemField.setFieldName("label");
442
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Label"));
443
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocument"));
444
        elemField.setMinOccurs(0);
445
        elemField.setNillable(false);
446
        typeDesc.addFieldDesc(elemField);
447
    }
448
 
449
    /**
450
     * Return type metadata object
451
     */
452
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
453
        return typeDesc;
454
    }
455
 
456
    /**
457
     * Get Custom Serializer
458
     */
459
    public static org.apache.axis.encoding.Serializer getSerializer(
460
           java.lang.String mechType, 
461
           java.lang.Class _javaType,  
462
           javax.xml.namespace.QName _xmlType) {
463
        return 
464
          new  org.apache.axis.encoding.ser.BeanSerializer(
465
            _javaType, _xmlType, typeDesc);
466
    }
467
 
468
    /**
469
     * Get Custom Deserializer
470
     */
471
    public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
477
            _javaType, _xmlType, typeDesc);
478
    }
479
 
480
}