Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * TrackNotificationReply.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.track.stub;
9
 
10
 
11
/**
12
 * FedEx Track Notification reply.
13
 */
14
public class TrackNotificationReply  implements java.io.Serializable {
15
    /* This contains the severity type of the most severe Notification
16
     * in the Notifications array. */
17
    private com.fedex.track.stub.NotificationSeverityType highestSeverity;
18
 
19
    /* Information about the request/reply such was the transaction
20
     * successful or not, and any additional information relevant to the
21
     * request and/or reply. There may be multiple Notifications in a reply. */
22
    private com.fedex.track.stub.Notification[] notifications;
23
 
24
    /* Contains the CustomerTransactionDetail that is echoed back
25
     * to the caller for matching requests and replies and a Localization
26
     * element for defining the language/translation used in the reply data. */
27
    private com.fedex.track.stub.TransactionDetail transactionDetail;
28
 
29
    /* Contains the version of the reply being used. */
30
    private com.fedex.track.stub.VersionId version;
31
 
32
    /* True if duplicate packages (more than one package with the
33
     * same tracking number) have been found, the packages array contains
34
     * information about each duplicate. Use this information to determine
35
     * which of the tracking numbers is the one you need and resend your
36
     * request using the tracking number and TrackingNumberUniqueIdentifier
37
     * for that package. */
38
    private java.lang.Boolean duplicateWaybill;
39
 
40
    /* True if additional packages remain to be retrieved. */
41
    private java.lang.Boolean moreDataAvailable;
42
 
43
    /* Value that must be passed in a TrackNotification request to
44
     * retrieve the next set of packages (when MoreDataAvailable = true). */
45
    private java.lang.String pagingToken;
46
 
47
    /* Information about the notifications that are available for
48
     * this tracking number. If there are duplicates the ship date and destination
49
     * address information is returned for determining which TrackingNumberUniqueIdentifier
50
     * to use on a subsequent request. */
51
    private com.fedex.track.stub.TrackNotificationPackage[] packages;
52
 
53
    public TrackNotificationReply() {
54
    }
55
 
56
    public TrackNotificationReply(
57
           com.fedex.track.stub.NotificationSeverityType highestSeverity,
58
           com.fedex.track.stub.Notification[] notifications,
59
           com.fedex.track.stub.TransactionDetail transactionDetail,
60
           com.fedex.track.stub.VersionId version,
61
           java.lang.Boolean duplicateWaybill,
62
           java.lang.Boolean moreDataAvailable,
63
           java.lang.String pagingToken,
64
           com.fedex.track.stub.TrackNotificationPackage[] packages) {
65
           this.highestSeverity = highestSeverity;
66
           this.notifications = notifications;
67
           this.transactionDetail = transactionDetail;
68
           this.version = version;
69
           this.duplicateWaybill = duplicateWaybill;
70
           this.moreDataAvailable = moreDataAvailable;
71
           this.pagingToken = pagingToken;
72
           this.packages = packages;
73
    }
74
 
75
 
76
    /**
77
     * Gets the highestSeverity value for this TrackNotificationReply.
78
     * 
79
     * @return highestSeverity   * This contains the severity type of the most severe Notification
80
     * in the Notifications array.
81
     */
82
    public com.fedex.track.stub.NotificationSeverityType getHighestSeverity() {
83
        return highestSeverity;
84
    }
85
 
86
 
87
    /**
88
     * Sets the highestSeverity value for this TrackNotificationReply.
89
     * 
90
     * @param highestSeverity   * This contains the severity type of the most severe Notification
91
     * in the Notifications array.
92
     */
93
    public void setHighestSeverity(com.fedex.track.stub.NotificationSeverityType highestSeverity) {
94
        this.highestSeverity = highestSeverity;
95
    }
96
 
97
 
98
    /**
99
     * Gets the notifications value for this TrackNotificationReply.
100
     * 
101
     * @return notifications   * Information about the request/reply such was the transaction
102
     * successful or not, and any additional information relevant to the
103
     * request and/or reply. There may be multiple Notifications in a reply.
104
     */
105
    public com.fedex.track.stub.Notification[] getNotifications() {
106
        return notifications;
107
    }
108
 
109
 
110
    /**
111
     * Sets the notifications value for this TrackNotificationReply.
112
     * 
113
     * @param notifications   * Information about the request/reply such was the transaction
114
     * successful or not, and any additional information relevant to the
115
     * request and/or reply. There may be multiple Notifications in a reply.
116
     */
117
    public void setNotifications(com.fedex.track.stub.Notification[] notifications) {
118
        this.notifications = notifications;
119
    }
120
 
121
    public com.fedex.track.stub.Notification getNotifications(int i) {
122
        return this.notifications[i];
123
    }
124
 
125
    public void setNotifications(int i, com.fedex.track.stub.Notification _value) {
126
        this.notifications[i] = _value;
127
    }
128
 
129
 
130
    /**
131
     * Gets the transactionDetail value for this TrackNotificationReply.
132
     * 
133
     * @return transactionDetail   * Contains the CustomerTransactionDetail that is echoed back
134
     * to the caller for matching requests and replies and a Localization
135
     * element for defining the language/translation used in the reply data.
136
     */
137
    public com.fedex.track.stub.TransactionDetail getTransactionDetail() {
138
        return transactionDetail;
139
    }
140
 
141
 
142
    /**
143
     * Sets the transactionDetail value for this TrackNotificationReply.
144
     * 
145
     * @param transactionDetail   * Contains the CustomerTransactionDetail that is echoed back
146
     * to the caller for matching requests and replies and a Localization
147
     * element for defining the language/translation used in the reply data.
148
     */
149
    public void setTransactionDetail(com.fedex.track.stub.TransactionDetail transactionDetail) {
150
        this.transactionDetail = transactionDetail;
151
    }
152
 
153
 
154
    /**
155
     * Gets the version value for this TrackNotificationReply.
156
     * 
157
     * @return version   * Contains the version of the reply being used.
158
     */
159
    public com.fedex.track.stub.VersionId getVersion() {
160
        return version;
161
    }
162
 
163
 
164
    /**
165
     * Sets the version value for this TrackNotificationReply.
166
     * 
167
     * @param version   * Contains the version of the reply being used.
168
     */
169
    public void setVersion(com.fedex.track.stub.VersionId version) {
170
        this.version = version;
171
    }
172
 
173
 
174
    /**
175
     * Gets the duplicateWaybill value for this TrackNotificationReply.
176
     * 
177
     * @return duplicateWaybill   * True if duplicate packages (more than one package with the
178
     * same tracking number) have been found, the packages array contains
179
     * information about each duplicate. Use this information to determine
180
     * which of the tracking numbers is the one you need and resend your
181
     * request using the tracking number and TrackingNumberUniqueIdentifier
182
     * for that package.
183
     */
184
    public java.lang.Boolean getDuplicateWaybill() {
185
        return duplicateWaybill;
186
    }
187
 
188
 
189
    /**
190
     * Sets the duplicateWaybill value for this TrackNotificationReply.
191
     * 
192
     * @param duplicateWaybill   * True if duplicate packages (more than one package with the
193
     * same tracking number) have been found, the packages array contains
194
     * information about each duplicate. Use this information to determine
195
     * which of the tracking numbers is the one you need and resend your
196
     * request using the tracking number and TrackingNumberUniqueIdentifier
197
     * for that package.
198
     */
199
    public void setDuplicateWaybill(java.lang.Boolean duplicateWaybill) {
200
        this.duplicateWaybill = duplicateWaybill;
201
    }
202
 
203
 
204
    /**
205
     * Gets the moreDataAvailable value for this TrackNotificationReply.
206
     * 
207
     * @return moreDataAvailable   * True if additional packages remain to be retrieved.
208
     */
209
    public java.lang.Boolean getMoreDataAvailable() {
210
        return moreDataAvailable;
211
    }
212
 
213
 
214
    /**
215
     * Sets the moreDataAvailable value for this TrackNotificationReply.
216
     * 
217
     * @param moreDataAvailable   * True if additional packages remain to be retrieved.
218
     */
219
    public void setMoreDataAvailable(java.lang.Boolean moreDataAvailable) {
220
        this.moreDataAvailable = moreDataAvailable;
221
    }
222
 
223
 
224
    /**
225
     * Gets the pagingToken value for this TrackNotificationReply.
226
     * 
227
     * @return pagingToken   * Value that must be passed in a TrackNotification request to
228
     * retrieve the next set of packages (when MoreDataAvailable = true).
229
     */
230
    public java.lang.String getPagingToken() {
231
        return pagingToken;
232
    }
233
 
234
 
235
    /**
236
     * Sets the pagingToken value for this TrackNotificationReply.
237
     * 
238
     * @param pagingToken   * Value that must be passed in a TrackNotification request to
239
     * retrieve the next set of packages (when MoreDataAvailable = true).
240
     */
241
    public void setPagingToken(java.lang.String pagingToken) {
242
        this.pagingToken = pagingToken;
243
    }
244
 
245
 
246
    /**
247
     * Gets the packages value for this TrackNotificationReply.
248
     * 
249
     * @return packages   * Information about the notifications that are available for
250
     * this tracking number. If there are duplicates the ship date and destination
251
     * address information is returned for determining which TrackingNumberUniqueIdentifier
252
     * to use on a subsequent request.
253
     */
254
    public com.fedex.track.stub.TrackNotificationPackage[] getPackages() {
255
        return packages;
256
    }
257
 
258
 
259
    /**
260
     * Sets the packages value for this TrackNotificationReply.
261
     * 
262
     * @param packages   * Information about the notifications that are available for
263
     * this tracking number. If there are duplicates the ship date and destination
264
     * address information is returned for determining which TrackingNumberUniqueIdentifier
265
     * to use on a subsequent request.
266
     */
267
    public void setPackages(com.fedex.track.stub.TrackNotificationPackage[] packages) {
268
        this.packages = packages;
269
    }
270
 
271
    public com.fedex.track.stub.TrackNotificationPackage getPackages(int i) {
272
        return this.packages[i];
273
    }
274
 
275
    public void setPackages(int i, com.fedex.track.stub.TrackNotificationPackage _value) {
276
        this.packages[i] = _value;
277
    }
278
 
279
    private java.lang.Object __equalsCalc = null;
280
    public synchronized boolean equals(java.lang.Object obj) {
281
        if (!(obj instanceof TrackNotificationReply)) return false;
282
        TrackNotificationReply other = (TrackNotificationReply) obj;
283
        if (obj == null) return false;
284
        if (this == obj) return true;
285
        if (__equalsCalc != null) {
286
            return (__equalsCalc == obj);
287
        }
288
        __equalsCalc = obj;
289
        boolean _equals;
290
        _equals = true && 
291
            ((this.highestSeverity==null && other.getHighestSeverity()==null) || 
292
             (this.highestSeverity!=null &&
293
              this.highestSeverity.equals(other.getHighestSeverity()))) &&
294
            ((this.notifications==null && other.getNotifications()==null) || 
295
             (this.notifications!=null &&
296
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
297
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
298
             (this.transactionDetail!=null &&
299
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
300
            ((this.version==null && other.getVersion()==null) || 
301
             (this.version!=null &&
302
              this.version.equals(other.getVersion()))) &&
303
            ((this.duplicateWaybill==null && other.getDuplicateWaybill()==null) || 
304
             (this.duplicateWaybill!=null &&
305
              this.duplicateWaybill.equals(other.getDuplicateWaybill()))) &&
306
            ((this.moreDataAvailable==null && other.getMoreDataAvailable()==null) || 
307
             (this.moreDataAvailable!=null &&
308
              this.moreDataAvailable.equals(other.getMoreDataAvailable()))) &&
309
            ((this.pagingToken==null && other.getPagingToken()==null) || 
310
             (this.pagingToken!=null &&
311
              this.pagingToken.equals(other.getPagingToken()))) &&
312
            ((this.packages==null && other.getPackages()==null) || 
313
             (this.packages!=null &&
314
              java.util.Arrays.equals(this.packages, other.getPackages())));
315
        __equalsCalc = null;
316
        return _equals;
317
    }
318
 
319
    private boolean __hashCodeCalc = false;
320
    public synchronized int hashCode() {
321
        if (__hashCodeCalc) {
322
            return 0;
323
        }
324
        __hashCodeCalc = true;
325
        int _hashCode = 1;
326
        if (getHighestSeverity() != null) {
327
            _hashCode += getHighestSeverity().hashCode();
328
        }
329
        if (getNotifications() != null) {
330
            for (int i=0;
331
                 i<java.lang.reflect.Array.getLength(getNotifications());
332
                 i++) {
333
                java.lang.Object obj = java.lang.reflect.Array.get(getNotifications(), i);
334
                if (obj != null &&
335
                    !obj.getClass().isArray()) {
336
                    _hashCode += obj.hashCode();
337
                }
338
            }
339
        }
340
        if (getTransactionDetail() != null) {
341
            _hashCode += getTransactionDetail().hashCode();
342
        }
343
        if (getVersion() != null) {
344
            _hashCode += getVersion().hashCode();
345
        }
346
        if (getDuplicateWaybill() != null) {
347
            _hashCode += getDuplicateWaybill().hashCode();
348
        }
349
        if (getMoreDataAvailable() != null) {
350
            _hashCode += getMoreDataAvailable().hashCode();
351
        }
352
        if (getPagingToken() != null) {
353
            _hashCode += getPagingToken().hashCode();
354
        }
355
        if (getPackages() != null) {
356
            for (int i=0;
357
                 i<java.lang.reflect.Array.getLength(getPackages());
358
                 i++) {
359
                java.lang.Object obj = java.lang.reflect.Array.get(getPackages(), i);
360
                if (obj != null &&
361
                    !obj.getClass().isArray()) {
362
                    _hashCode += obj.hashCode();
363
                }
364
            }
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(TrackNotificationReply.class, true);
373
 
374
    static {
375
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackNotificationReply"));
376
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
377
        elemField.setFieldName("highestSeverity");
378
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "HighestSeverity"));
379
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "NotificationSeverityType"));
380
        elemField.setNillable(false);
381
        typeDesc.addFieldDesc(elemField);
382
        elemField = new org.apache.axis.description.ElementDesc();
383
        elemField.setFieldName("notifications");
384
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Notifications"));
385
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Notification"));
386
        elemField.setNillable(false);
387
        elemField.setMaxOccursUnbounded(true);
388
        typeDesc.addFieldDesc(elemField);
389
        elemField = new org.apache.axis.description.ElementDesc();
390
        elemField.setFieldName("transactionDetail");
391
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TransactionDetail"));
392
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TransactionDetail"));
393
        elemField.setMinOccurs(0);
394
        elemField.setNillable(false);
395
        typeDesc.addFieldDesc(elemField);
396
        elemField = new org.apache.axis.description.ElementDesc();
397
        elemField.setFieldName("version");
398
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Version"));
399
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "VersionId"));
400
        elemField.setNillable(false);
401
        typeDesc.addFieldDesc(elemField);
402
        elemField = new org.apache.axis.description.ElementDesc();
403
        elemField.setFieldName("duplicateWaybill");
404
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "DuplicateWaybill"));
405
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
406
        elemField.setMinOccurs(0);
407
        elemField.setNillable(false);
408
        typeDesc.addFieldDesc(elemField);
409
        elemField = new org.apache.axis.description.ElementDesc();
410
        elemField.setFieldName("moreDataAvailable");
411
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "MoreDataAvailable"));
412
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
413
        elemField.setMinOccurs(0);
414
        elemField.setNillable(false);
415
        typeDesc.addFieldDesc(elemField);
416
        elemField = new org.apache.axis.description.ElementDesc();
417
        elemField.setFieldName("pagingToken");
418
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "PagingToken"));
419
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
420
        elemField.setMinOccurs(0);
421
        elemField.setNillable(false);
422
        typeDesc.addFieldDesc(elemField);
423
        elemField = new org.apache.axis.description.ElementDesc();
424
        elemField.setFieldName("packages");
425
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Packages"));
426
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackNotificationPackage"));
427
        elemField.setMinOccurs(0);
428
        elemField.setNillable(false);
429
        elemField.setMaxOccursUnbounded(true);
430
        typeDesc.addFieldDesc(elemField);
431
    }
432
 
433
    /**
434
     * Return type metadata object
435
     */
436
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
437
        return typeDesc;
438
    }
439
 
440
    /**
441
     * Get Custom Serializer
442
     */
443
    public static org.apache.axis.encoding.Serializer getSerializer(
444
           java.lang.String mechType, 
445
           java.lang.Class _javaType,  
446
           javax.xml.namespace.QName _xmlType) {
447
        return 
448
          new  org.apache.axis.encoding.ser.BeanSerializer(
449
            _javaType, _xmlType, typeDesc);
450
    }
451
 
452
    /**
453
     * Get Custom Deserializer
454
     */
455
    public static org.apache.axis.encoding.Deserializer getDeserializer(
456
           java.lang.String mechType, 
457
           java.lang.Class _javaType,  
458
           javax.xml.namespace.QName _xmlType) {
459
        return 
460
          new  org.apache.axis.encoding.ser.BeanDeserializer(
461
            _javaType, _xmlType, typeDesc);
462
    }
463
 
464
}