Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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