Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * TrackEvent.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 scanning information about a package.
13
 */
14
public class TrackEvent  implements java.io.Serializable {
15
    /* The time this event occurred. */
16
    private java.util.Calendar timestamp;
17
 
18
    /* Carrier's scan code. Pairs with EventDescription. */
19
    private java.lang.String eventType;
20
 
21
    /* Literal description that pairs with the EventType. */
22
    private java.lang.String eventDescription;
23
 
24
    /* Further defines the Scan Type code's specific type (e.g., DEX08
25
     * business closed). Pairs with StatusExceptionDescription. */
26
    private java.lang.String statusExceptionCode;
27
 
28
    /* Literal description that pairs with the StatusExceptionCode. */
29
    private java.lang.String statusExceptionDescription;
30
 
31
    /* Address information of the station that is responsible for
32
     * the scan. */
33
    private com.fedex.track.stub.Address address;
34
 
35
    /* Indicates where the arrival actually occurred. */
36
    private com.fedex.track.stub.ArrivalLocationType arrivalLocation;
37
 
38
    public TrackEvent() {
39
    }
40
 
41
    public TrackEvent(
42
           java.util.Calendar timestamp,
43
           java.lang.String eventType,
44
           java.lang.String eventDescription,
45
           java.lang.String statusExceptionCode,
46
           java.lang.String statusExceptionDescription,
47
           com.fedex.track.stub.Address address,
48
           com.fedex.track.stub.ArrivalLocationType arrivalLocation) {
49
           this.timestamp = timestamp;
50
           this.eventType = eventType;
51
           this.eventDescription = eventDescription;
52
           this.statusExceptionCode = statusExceptionCode;
53
           this.statusExceptionDescription = statusExceptionDescription;
54
           this.address = address;
55
           this.arrivalLocation = arrivalLocation;
56
    }
57
 
58
 
59
    /**
60
     * Gets the timestamp value for this TrackEvent.
61
     * 
62
     * @return timestamp   * The time this event occurred.
63
     */
64
    public java.util.Calendar getTimestamp() {
65
        return timestamp;
66
    }
67
 
68
 
69
    /**
70
     * Sets the timestamp value for this TrackEvent.
71
     * 
72
     * @param timestamp   * The time this event occurred.
73
     */
74
    public void setTimestamp(java.util.Calendar timestamp) {
75
        this.timestamp = timestamp;
76
    }
77
 
78
 
79
    /**
80
     * Gets the eventType value for this TrackEvent.
81
     * 
82
     * @return eventType   * Carrier's scan code. Pairs with EventDescription.
83
     */
84
    public java.lang.String getEventType() {
85
        return eventType;
86
    }
87
 
88
 
89
    /**
90
     * Sets the eventType value for this TrackEvent.
91
     * 
92
     * @param eventType   * Carrier's scan code. Pairs with EventDescription.
93
     */
94
    public void setEventType(java.lang.String eventType) {
95
        this.eventType = eventType;
96
    }
97
 
98
 
99
    /**
100
     * Gets the eventDescription value for this TrackEvent.
101
     * 
102
     * @return eventDescription   * Literal description that pairs with the EventType.
103
     */
104
    public java.lang.String getEventDescription() {
105
        return eventDescription;
106
    }
107
 
108
 
109
    /**
110
     * Sets the eventDescription value for this TrackEvent.
111
     * 
112
     * @param eventDescription   * Literal description that pairs with the EventType.
113
     */
114
    public void setEventDescription(java.lang.String eventDescription) {
115
        this.eventDescription = eventDescription;
116
    }
117
 
118
 
119
    /**
120
     * Gets the statusExceptionCode value for this TrackEvent.
121
     * 
122
     * @return statusExceptionCode   * Further defines the Scan Type code's specific type (e.g., DEX08
123
     * business closed). Pairs with StatusExceptionDescription.
124
     */
125
    public java.lang.String getStatusExceptionCode() {
126
        return statusExceptionCode;
127
    }
128
 
129
 
130
    /**
131
     * Sets the statusExceptionCode value for this TrackEvent.
132
     * 
133
     * @param statusExceptionCode   * Further defines the Scan Type code's specific type (e.g., DEX08
134
     * business closed). Pairs with StatusExceptionDescription.
135
     */
136
    public void setStatusExceptionCode(java.lang.String statusExceptionCode) {
137
        this.statusExceptionCode = statusExceptionCode;
138
    }
139
 
140
 
141
    /**
142
     * Gets the statusExceptionDescription value for this TrackEvent.
143
     * 
144
     * @return statusExceptionDescription   * Literal description that pairs with the StatusExceptionCode.
145
     */
146
    public java.lang.String getStatusExceptionDescription() {
147
        return statusExceptionDescription;
148
    }
149
 
150
 
151
    /**
152
     * Sets the statusExceptionDescription value for this TrackEvent.
153
     * 
154
     * @param statusExceptionDescription   * Literal description that pairs with the StatusExceptionCode.
155
     */
156
    public void setStatusExceptionDescription(java.lang.String statusExceptionDescription) {
157
        this.statusExceptionDescription = statusExceptionDescription;
158
    }
159
 
160
 
161
    /**
162
     * Gets the address value for this TrackEvent.
163
     * 
164
     * @return address   * Address information of the station that is responsible for
165
     * the scan.
166
     */
167
    public com.fedex.track.stub.Address getAddress() {
168
        return address;
169
    }
170
 
171
 
172
    /**
173
     * Sets the address value for this TrackEvent.
174
     * 
175
     * @param address   * Address information of the station that is responsible for
176
     * the scan.
177
     */
178
    public void setAddress(com.fedex.track.stub.Address address) {
179
        this.address = address;
180
    }
181
 
182
 
183
    /**
184
     * Gets the arrivalLocation value for this TrackEvent.
185
     * 
186
     * @return arrivalLocation   * Indicates where the arrival actually occurred.
187
     */
188
    public com.fedex.track.stub.ArrivalLocationType getArrivalLocation() {
189
        return arrivalLocation;
190
    }
191
 
192
 
193
    /**
194
     * Sets the arrivalLocation value for this TrackEvent.
195
     * 
196
     * @param arrivalLocation   * Indicates where the arrival actually occurred.
197
     */
198
    public void setArrivalLocation(com.fedex.track.stub.ArrivalLocationType arrivalLocation) {
199
        this.arrivalLocation = arrivalLocation;
200
    }
201
 
202
    private java.lang.Object __equalsCalc = null;
203
    public synchronized boolean equals(java.lang.Object obj) {
204
        if (!(obj instanceof TrackEvent)) return false;
205
        TrackEvent other = (TrackEvent) obj;
206
        if (obj == null) return false;
207
        if (this == obj) return true;
208
        if (__equalsCalc != null) {
209
            return (__equalsCalc == obj);
210
        }
211
        __equalsCalc = obj;
212
        boolean _equals;
213
        _equals = true && 
214
            ((this.timestamp==null && other.getTimestamp()==null) || 
215
             (this.timestamp!=null &&
216
              this.timestamp.equals(other.getTimestamp()))) &&
217
            ((this.eventType==null && other.getEventType()==null) || 
218
             (this.eventType!=null &&
219
              this.eventType.equals(other.getEventType()))) &&
220
            ((this.eventDescription==null && other.getEventDescription()==null) || 
221
             (this.eventDescription!=null &&
222
              this.eventDescription.equals(other.getEventDescription()))) &&
223
            ((this.statusExceptionCode==null && other.getStatusExceptionCode()==null) || 
224
             (this.statusExceptionCode!=null &&
225
              this.statusExceptionCode.equals(other.getStatusExceptionCode()))) &&
226
            ((this.statusExceptionDescription==null && other.getStatusExceptionDescription()==null) || 
227
             (this.statusExceptionDescription!=null &&
228
              this.statusExceptionDescription.equals(other.getStatusExceptionDescription()))) &&
229
            ((this.address==null && other.getAddress()==null) || 
230
             (this.address!=null &&
231
              this.address.equals(other.getAddress()))) &&
232
            ((this.arrivalLocation==null && other.getArrivalLocation()==null) || 
233
             (this.arrivalLocation!=null &&
234
              this.arrivalLocation.equals(other.getArrivalLocation())));
235
        __equalsCalc = null;
236
        return _equals;
237
    }
238
 
239
    private boolean __hashCodeCalc = false;
240
    public synchronized int hashCode() {
241
        if (__hashCodeCalc) {
242
            return 0;
243
        }
244
        __hashCodeCalc = true;
245
        int _hashCode = 1;
246
        if (getTimestamp() != null) {
247
            _hashCode += getTimestamp().hashCode();
248
        }
249
        if (getEventType() != null) {
250
            _hashCode += getEventType().hashCode();
251
        }
252
        if (getEventDescription() != null) {
253
            _hashCode += getEventDescription().hashCode();
254
        }
255
        if (getStatusExceptionCode() != null) {
256
            _hashCode += getStatusExceptionCode().hashCode();
257
        }
258
        if (getStatusExceptionDescription() != null) {
259
            _hashCode += getStatusExceptionDescription().hashCode();
260
        }
261
        if (getAddress() != null) {
262
            _hashCode += getAddress().hashCode();
263
        }
264
        if (getArrivalLocation() != null) {
265
            _hashCode += getArrivalLocation().hashCode();
266
        }
267
        __hashCodeCalc = false;
268
        return _hashCode;
269
    }
270
 
271
    // Type metadata
272
    private static org.apache.axis.description.TypeDesc typeDesc =
273
        new org.apache.axis.description.TypeDesc(TrackEvent.class, true);
274
 
275
    static {
276
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackEvent"));
277
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
278
        elemField.setFieldName("timestamp");
279
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Timestamp"));
280
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
281
        elemField.setMinOccurs(0);
282
        elemField.setNillable(false);
283
        typeDesc.addFieldDesc(elemField);
284
        elemField = new org.apache.axis.description.ElementDesc();
285
        elemField.setFieldName("eventType");
286
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EventType"));
287
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
288
        elemField.setMinOccurs(0);
289
        elemField.setNillable(false);
290
        typeDesc.addFieldDesc(elemField);
291
        elemField = new org.apache.axis.description.ElementDesc();
292
        elemField.setFieldName("eventDescription");
293
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EventDescription"));
294
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
295
        elemField.setMinOccurs(0);
296
        elemField.setNillable(false);
297
        typeDesc.addFieldDesc(elemField);
298
        elemField = new org.apache.axis.description.ElementDesc();
299
        elemField.setFieldName("statusExceptionCode");
300
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StatusExceptionCode"));
301
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
302
        elemField.setMinOccurs(0);
303
        elemField.setNillable(false);
304
        typeDesc.addFieldDesc(elemField);
305
        elemField = new org.apache.axis.description.ElementDesc();
306
        elemField.setFieldName("statusExceptionDescription");
307
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StatusExceptionDescription"));
308
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
309
        elemField.setMinOccurs(0);
310
        elemField.setNillable(false);
311
        typeDesc.addFieldDesc(elemField);
312
        elemField = new org.apache.axis.description.ElementDesc();
313
        elemField.setFieldName("address");
314
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Address"));
315
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Address"));
316
        elemField.setMinOccurs(0);
317
        elemField.setNillable(false);
318
        typeDesc.addFieldDesc(elemField);
319
        elemField = new org.apache.axis.description.ElementDesc();
320
        elemField.setFieldName("arrivalLocation");
321
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "ArrivalLocation"));
322
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "ArrivalLocationType"));
323
        elemField.setMinOccurs(0);
324
        elemField.setNillable(false);
325
        typeDesc.addFieldDesc(elemField);
326
    }
327
 
328
    /**
329
     * Return type metadata object
330
     */
331
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
332
        return typeDesc;
333
    }
334
 
335
    /**
336
     * Get Custom Serializer
337
     */
338
    public static org.apache.axis.encoding.Serializer getSerializer(
339
           java.lang.String mechType, 
340
           java.lang.Class _javaType,  
341
           javax.xml.namespace.QName _xmlType) {
342
        return 
343
          new  org.apache.axis.encoding.ser.BeanSerializer(
344
            _javaType, _xmlType, typeDesc);
345
    }
346
 
347
    /**
348
     * Get Custom Deserializer
349
     */
350
    public static org.apache.axis.encoding.Deserializer getDeserializer(
351
           java.lang.String mechType, 
352
           java.lang.Class _javaType,  
353
           javax.xml.namespace.QName _xmlType) {
354
        return 
355
          new  org.apache.axis.encoding.ser.BeanDeserializer(
356
            _javaType, _xmlType, typeDesc);
357
    }
358
 
359
}