| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* TrackNotificationPackage.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 |
public class TrackNotificationPackage implements java.io.Serializable {
|
|
|
11 |
/* FedEx assigned identifier for a package/shipment. */
|
|
|
12 |
private java.lang.String trackingNumber;
|
|
|
13 |
|
|
|
14 |
/* When duplicate tracking numbers exist this data is returned
|
|
|
15 |
* with summary information for each of the duplicates. The summary information
|
|
|
16 |
* is used to determine which of the duplicates the intended tracking
|
|
|
17 |
* number is. This identifier is used on a subsequent track request to
|
|
|
18 |
* retrieve the tracking data for the desired tracking number. */
|
|
|
19 |
private java.lang.String trackingNumberUniqueIdentifiers;
|
|
|
20 |
|
|
|
21 |
/* Identification of a FedEx operating company (transportation). */
|
|
|
22 |
private com.fedex.track.stub.CarrierCodeType carrierCode;
|
|
|
23 |
|
|
|
24 |
/* The date the package was shipped (tendered to FedEx). */
|
|
|
25 |
private java.util.Date shipDate;
|
|
|
26 |
|
|
|
27 |
/* The destination address of this package. Only city, state/province,
|
|
|
28 |
* and country are returned. */
|
|
|
29 |
private com.fedex.track.stub.Address destination;
|
|
|
30 |
|
|
|
31 |
/* Options available for a tracking notification recipient. */
|
|
|
32 |
private com.fedex.track.stub.TrackNotificationRecipientDetail[] recipientDetails;
|
|
|
33 |
|
|
|
34 |
public TrackNotificationPackage() {
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public TrackNotificationPackage(
|
|
|
38 |
java.lang.String trackingNumber,
|
|
|
39 |
java.lang.String trackingNumberUniqueIdentifiers,
|
|
|
40 |
com.fedex.track.stub.CarrierCodeType carrierCode,
|
|
|
41 |
java.util.Date shipDate,
|
|
|
42 |
com.fedex.track.stub.Address destination,
|
|
|
43 |
com.fedex.track.stub.TrackNotificationRecipientDetail[] recipientDetails) {
|
|
|
44 |
this.trackingNumber = trackingNumber;
|
|
|
45 |
this.trackingNumberUniqueIdentifiers = trackingNumberUniqueIdentifiers;
|
|
|
46 |
this.carrierCode = carrierCode;
|
|
|
47 |
this.shipDate = shipDate;
|
|
|
48 |
this.destination = destination;
|
|
|
49 |
this.recipientDetails = recipientDetails;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* Gets the trackingNumber value for this TrackNotificationPackage.
|
|
|
55 |
*
|
|
|
56 |
* @return trackingNumber * FedEx assigned identifier for a package/shipment.
|
|
|
57 |
*/
|
|
|
58 |
public java.lang.String getTrackingNumber() {
|
|
|
59 |
return trackingNumber;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Sets the trackingNumber value for this TrackNotificationPackage.
|
|
|
65 |
*
|
|
|
66 |
* @param trackingNumber * FedEx assigned identifier for a package/shipment.
|
|
|
67 |
*/
|
|
|
68 |
public void setTrackingNumber(java.lang.String trackingNumber) {
|
|
|
69 |
this.trackingNumber = trackingNumber;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Gets the trackingNumberUniqueIdentifiers value for this TrackNotificationPackage.
|
|
|
75 |
*
|
|
|
76 |
* @return trackingNumberUniqueIdentifiers * When duplicate tracking numbers exist this data is returned
|
|
|
77 |
* with summary information for each of the duplicates. The summary information
|
|
|
78 |
* is used to determine which of the duplicates the intended tracking
|
|
|
79 |
* number is. This identifier is used on a subsequent track request to
|
|
|
80 |
* retrieve the tracking data for the desired tracking number.
|
|
|
81 |
*/
|
|
|
82 |
public java.lang.String getTrackingNumberUniqueIdentifiers() {
|
|
|
83 |
return trackingNumberUniqueIdentifiers;
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
/**
|
|
|
88 |
* Sets the trackingNumberUniqueIdentifiers value for this TrackNotificationPackage.
|
|
|
89 |
*
|
|
|
90 |
* @param trackingNumberUniqueIdentifiers * When duplicate tracking numbers exist this data is returned
|
|
|
91 |
* with summary information for each of the duplicates. The summary information
|
|
|
92 |
* is used to determine which of the duplicates the intended tracking
|
|
|
93 |
* number is. This identifier is used on a subsequent track request to
|
|
|
94 |
* retrieve the tracking data for the desired tracking number.
|
|
|
95 |
*/
|
|
|
96 |
public void setTrackingNumberUniqueIdentifiers(java.lang.String trackingNumberUniqueIdentifiers) {
|
|
|
97 |
this.trackingNumberUniqueIdentifiers = trackingNumberUniqueIdentifiers;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
/**
|
|
|
102 |
* Gets the carrierCode value for this TrackNotificationPackage.
|
|
|
103 |
*
|
|
|
104 |
* @return carrierCode * Identification of a FedEx operating company (transportation).
|
|
|
105 |
*/
|
|
|
106 |
public com.fedex.track.stub.CarrierCodeType getCarrierCode() {
|
|
|
107 |
return carrierCode;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
/**
|
|
|
112 |
* Sets the carrierCode value for this TrackNotificationPackage.
|
|
|
113 |
*
|
|
|
114 |
* @param carrierCode * Identification of a FedEx operating company (transportation).
|
|
|
115 |
*/
|
|
|
116 |
public void setCarrierCode(com.fedex.track.stub.CarrierCodeType carrierCode) {
|
|
|
117 |
this.carrierCode = carrierCode;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Gets the shipDate value for this TrackNotificationPackage.
|
|
|
123 |
*
|
|
|
124 |
* @return shipDate * The date the package was shipped (tendered to FedEx).
|
|
|
125 |
*/
|
|
|
126 |
public java.util.Date getShipDate() {
|
|
|
127 |
return shipDate;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
/**
|
|
|
132 |
* Sets the shipDate value for this TrackNotificationPackage.
|
|
|
133 |
*
|
|
|
134 |
* @param shipDate * The date the package was shipped (tendered to FedEx).
|
|
|
135 |
*/
|
|
|
136 |
public void setShipDate(java.util.Date shipDate) {
|
|
|
137 |
this.shipDate = shipDate;
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
/**
|
|
|
142 |
* Gets the destination value for this TrackNotificationPackage.
|
|
|
143 |
*
|
|
|
144 |
* @return destination * The destination address of this package. Only city, state/province,
|
|
|
145 |
* and country are returned.
|
|
|
146 |
*/
|
|
|
147 |
public com.fedex.track.stub.Address getDestination() {
|
|
|
148 |
return destination;
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
/**
|
|
|
153 |
* Sets the destination value for this TrackNotificationPackage.
|
|
|
154 |
*
|
|
|
155 |
* @param destination * The destination address of this package. Only city, state/province,
|
|
|
156 |
* and country are returned.
|
|
|
157 |
*/
|
|
|
158 |
public void setDestination(com.fedex.track.stub.Address destination) {
|
|
|
159 |
this.destination = destination;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Gets the recipientDetails value for this TrackNotificationPackage.
|
|
|
165 |
*
|
|
|
166 |
* @return recipientDetails * Options available for a tracking notification recipient.
|
|
|
167 |
*/
|
|
|
168 |
public com.fedex.track.stub.TrackNotificationRecipientDetail[] getRecipientDetails() {
|
|
|
169 |
return recipientDetails;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
/**
|
|
|
174 |
* Sets the recipientDetails value for this TrackNotificationPackage.
|
|
|
175 |
*
|
|
|
176 |
* @param recipientDetails * Options available for a tracking notification recipient.
|
|
|
177 |
*/
|
|
|
178 |
public void setRecipientDetails(com.fedex.track.stub.TrackNotificationRecipientDetail[] recipientDetails) {
|
|
|
179 |
this.recipientDetails = recipientDetails;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
public com.fedex.track.stub.TrackNotificationRecipientDetail getRecipientDetails(int i) {
|
|
|
183 |
return this.recipientDetails[i];
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
public void setRecipientDetails(int i, com.fedex.track.stub.TrackNotificationRecipientDetail _value) {
|
|
|
187 |
this.recipientDetails[i] = _value;
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
private java.lang.Object __equalsCalc = null;
|
|
|
191 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
192 |
if (!(obj instanceof TrackNotificationPackage)) return false;
|
|
|
193 |
TrackNotificationPackage other = (TrackNotificationPackage) obj;
|
|
|
194 |
if (obj == null) return false;
|
|
|
195 |
if (this == obj) return true;
|
|
|
196 |
if (__equalsCalc != null) {
|
|
|
197 |
return (__equalsCalc == obj);
|
|
|
198 |
}
|
|
|
199 |
__equalsCalc = obj;
|
|
|
200 |
boolean _equals;
|
|
|
201 |
_equals = true &&
|
|
|
202 |
((this.trackingNumber==null && other.getTrackingNumber()==null) ||
|
|
|
203 |
(this.trackingNumber!=null &&
|
|
|
204 |
this.trackingNumber.equals(other.getTrackingNumber()))) &&
|
|
|
205 |
((this.trackingNumberUniqueIdentifiers==null && other.getTrackingNumberUniqueIdentifiers()==null) ||
|
|
|
206 |
(this.trackingNumberUniqueIdentifiers!=null &&
|
|
|
207 |
this.trackingNumberUniqueIdentifiers.equals(other.getTrackingNumberUniqueIdentifiers()))) &&
|
|
|
208 |
((this.carrierCode==null && other.getCarrierCode()==null) ||
|
|
|
209 |
(this.carrierCode!=null &&
|
|
|
210 |
this.carrierCode.equals(other.getCarrierCode()))) &&
|
|
|
211 |
((this.shipDate==null && other.getShipDate()==null) ||
|
|
|
212 |
(this.shipDate!=null &&
|
|
|
213 |
this.shipDate.equals(other.getShipDate()))) &&
|
|
|
214 |
((this.destination==null && other.getDestination()==null) ||
|
|
|
215 |
(this.destination!=null &&
|
|
|
216 |
this.destination.equals(other.getDestination()))) &&
|
|
|
217 |
((this.recipientDetails==null && other.getRecipientDetails()==null) ||
|
|
|
218 |
(this.recipientDetails!=null &&
|
|
|
219 |
java.util.Arrays.equals(this.recipientDetails, other.getRecipientDetails())));
|
|
|
220 |
__equalsCalc = null;
|
|
|
221 |
return _equals;
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
private boolean __hashCodeCalc = false;
|
|
|
225 |
public synchronized int hashCode() {
|
|
|
226 |
if (__hashCodeCalc) {
|
|
|
227 |
return 0;
|
|
|
228 |
}
|
|
|
229 |
__hashCodeCalc = true;
|
|
|
230 |
int _hashCode = 1;
|
|
|
231 |
if (getTrackingNumber() != null) {
|
|
|
232 |
_hashCode += getTrackingNumber().hashCode();
|
|
|
233 |
}
|
|
|
234 |
if (getTrackingNumberUniqueIdentifiers() != null) {
|
|
|
235 |
_hashCode += getTrackingNumberUniqueIdentifiers().hashCode();
|
|
|
236 |
}
|
|
|
237 |
if (getCarrierCode() != null) {
|
|
|
238 |
_hashCode += getCarrierCode().hashCode();
|
|
|
239 |
}
|
|
|
240 |
if (getShipDate() != null) {
|
|
|
241 |
_hashCode += getShipDate().hashCode();
|
|
|
242 |
}
|
|
|
243 |
if (getDestination() != null) {
|
|
|
244 |
_hashCode += getDestination().hashCode();
|
|
|
245 |
}
|
|
|
246 |
if (getRecipientDetails() != null) {
|
|
|
247 |
for (int i=0;
|
|
|
248 |
i<java.lang.reflect.Array.getLength(getRecipientDetails());
|
|
|
249 |
i++) {
|
|
|
250 |
java.lang.Object obj = java.lang.reflect.Array.get(getRecipientDetails(), i);
|
|
|
251 |
if (obj != null &&
|
|
|
252 |
!obj.getClass().isArray()) {
|
|
|
253 |
_hashCode += obj.hashCode();
|
|
|
254 |
}
|
|
|
255 |
}
|
|
|
256 |
}
|
|
|
257 |
__hashCodeCalc = false;
|
|
|
258 |
return _hashCode;
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
// Type metadata
|
|
|
262 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
263 |
new org.apache.axis.description.TypeDesc(TrackNotificationPackage.class, true);
|
|
|
264 |
|
|
|
265 |
static {
|
|
|
266 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackNotificationPackage"));
|
|
|
267 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
268 |
elemField.setFieldName("trackingNumber");
|
|
|
269 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackingNumber"));
|
|
|
270 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
271 |
elemField.setMinOccurs(0);
|
|
|
272 |
elemField.setNillable(false);
|
|
|
273 |
typeDesc.addFieldDesc(elemField);
|
|
|
274 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
275 |
elemField.setFieldName("trackingNumberUniqueIdentifiers");
|
|
|
276 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackingNumberUniqueIdentifiers"));
|
|
|
277 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
278 |
elemField.setMinOccurs(0);
|
|
|
279 |
elemField.setNillable(false);
|
|
|
280 |
typeDesc.addFieldDesc(elemField);
|
|
|
281 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
282 |
elemField.setFieldName("carrierCode");
|
|
|
283 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "CarrierCode"));
|
|
|
284 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "CarrierCodeType"));
|
|
|
285 |
elemField.setMinOccurs(0);
|
|
|
286 |
elemField.setNillable(false);
|
|
|
287 |
typeDesc.addFieldDesc(elemField);
|
|
|
288 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
289 |
elemField.setFieldName("shipDate");
|
|
|
290 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "ShipDate"));
|
|
|
291 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
|
|
|
292 |
elemField.setMinOccurs(0);
|
|
|
293 |
elemField.setNillable(false);
|
|
|
294 |
typeDesc.addFieldDesc(elemField);
|
|
|
295 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
296 |
elemField.setFieldName("destination");
|
|
|
297 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Destination"));
|
|
|
298 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Address"));
|
|
|
299 |
elemField.setMinOccurs(0);
|
|
|
300 |
elemField.setNillable(false);
|
|
|
301 |
typeDesc.addFieldDesc(elemField);
|
|
|
302 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
303 |
elemField.setFieldName("recipientDetails");
|
|
|
304 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "RecipientDetails"));
|
|
|
305 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackNotificationRecipientDetail"));
|
|
|
306 |
elemField.setMinOccurs(0);
|
|
|
307 |
elemField.setNillable(false);
|
|
|
308 |
elemField.setMaxOccursUnbounded(true);
|
|
|
309 |
typeDesc.addFieldDesc(elemField);
|
|
|
310 |
}
|
|
|
311 |
|
|
|
312 |
/**
|
|
|
313 |
* Return type metadata object
|
|
|
314 |
*/
|
|
|
315 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
316 |
return typeDesc;
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
/**
|
|
|
320 |
* Get Custom Serializer
|
|
|
321 |
*/
|
|
|
322 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
323 |
java.lang.String mechType,
|
|
|
324 |
java.lang.Class _javaType,
|
|
|
325 |
javax.xml.namespace.QName _xmlType) {
|
|
|
326 |
return
|
|
|
327 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
328 |
_javaType, _xmlType, typeDesc);
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
/**
|
|
|
332 |
* Get Custom Deserializer
|
|
|
333 |
*/
|
|
|
334 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
335 |
java.lang.String mechType,
|
|
|
336 |
java.lang.Class _javaType,
|
|
|
337 |
javax.xml.namespace.QName _xmlType) {
|
|
|
338 |
return
|
|
|
339 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
340 |
_javaType, _xmlType, typeDesc);
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
}
|