| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* QualifiedTrackingNumber.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 |
* Tracking number and additional shipment data used to identify a
|
|
|
13 |
* unique shipment for proof of delivery.
|
|
|
14 |
*/
|
|
|
15 |
public class QualifiedTrackingNumber implements java.io.Serializable {
|
|
|
16 |
/* FedEx assigned identifier for a package/shipment. */
|
|
|
17 |
private java.lang.String trackingNumber;
|
|
|
18 |
|
|
|
19 |
/* The date the package was shipped. */
|
|
|
20 |
private java.util.Date shipDate;
|
|
|
21 |
|
|
|
22 |
/* If the account number used to ship the package is provided
|
|
|
23 |
* in the request the shipper and recipient information is included on
|
|
|
24 |
* the letter or fax. */
|
|
|
25 |
private java.lang.String accountNumber;
|
|
|
26 |
|
|
|
27 |
/* FedEx operating company that delivered the package. */
|
|
|
28 |
private com.fedex.track.stub.CarrierCodeType carrier;
|
|
|
29 |
|
|
|
30 |
/* Only country is used for elimination of duplicate tracking
|
|
|
31 |
* numbers. */
|
|
|
32 |
private com.fedex.track.stub.Address destination;
|
|
|
33 |
|
|
|
34 |
public QualifiedTrackingNumber() {
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public QualifiedTrackingNumber(
|
|
|
38 |
java.lang.String trackingNumber,
|
|
|
39 |
java.util.Date shipDate,
|
|
|
40 |
java.lang.String accountNumber,
|
|
|
41 |
com.fedex.track.stub.CarrierCodeType carrier,
|
|
|
42 |
com.fedex.track.stub.Address destination) {
|
|
|
43 |
this.trackingNumber = trackingNumber;
|
|
|
44 |
this.shipDate = shipDate;
|
|
|
45 |
this.accountNumber = accountNumber;
|
|
|
46 |
this.carrier = carrier;
|
|
|
47 |
this.destination = destination;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* Gets the trackingNumber value for this QualifiedTrackingNumber.
|
|
|
53 |
*
|
|
|
54 |
* @return trackingNumber * FedEx assigned identifier for a package/shipment.
|
|
|
55 |
*/
|
|
|
56 |
public java.lang.String getTrackingNumber() {
|
|
|
57 |
return trackingNumber;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
/**
|
|
|
62 |
* Sets the trackingNumber value for this QualifiedTrackingNumber.
|
|
|
63 |
*
|
|
|
64 |
* @param trackingNumber * FedEx assigned identifier for a package/shipment.
|
|
|
65 |
*/
|
|
|
66 |
public void setTrackingNumber(java.lang.String trackingNumber) {
|
|
|
67 |
this.trackingNumber = trackingNumber;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
/**
|
|
|
72 |
* Gets the shipDate value for this QualifiedTrackingNumber.
|
|
|
73 |
*
|
|
|
74 |
* @return shipDate * The date the package was shipped.
|
|
|
75 |
*/
|
|
|
76 |
public java.util.Date getShipDate() {
|
|
|
77 |
return shipDate;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
/**
|
|
|
82 |
* Sets the shipDate value for this QualifiedTrackingNumber.
|
|
|
83 |
*
|
|
|
84 |
* @param shipDate * The date the package was shipped.
|
|
|
85 |
*/
|
|
|
86 |
public void setShipDate(java.util.Date shipDate) {
|
|
|
87 |
this.shipDate = shipDate;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* Gets the accountNumber value for this QualifiedTrackingNumber.
|
|
|
93 |
*
|
|
|
94 |
* @return accountNumber * If the account number used to ship the package is provided
|
|
|
95 |
* in the request the shipper and recipient information is included on
|
|
|
96 |
* the letter or fax.
|
|
|
97 |
*/
|
|
|
98 |
public java.lang.String getAccountNumber() {
|
|
|
99 |
return accountNumber;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Sets the accountNumber value for this QualifiedTrackingNumber.
|
|
|
105 |
*
|
|
|
106 |
* @param accountNumber * If the account number used to ship the package is provided
|
|
|
107 |
* in the request the shipper and recipient information is included on
|
|
|
108 |
* the letter or fax.
|
|
|
109 |
*/
|
|
|
110 |
public void setAccountNumber(java.lang.String accountNumber) {
|
|
|
111 |
this.accountNumber = accountNumber;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
/**
|
|
|
116 |
* Gets the carrier value for this QualifiedTrackingNumber.
|
|
|
117 |
*
|
|
|
118 |
* @return carrier * FedEx operating company that delivered the package.
|
|
|
119 |
*/
|
|
|
120 |
public com.fedex.track.stub.CarrierCodeType getCarrier() {
|
|
|
121 |
return carrier;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
/**
|
|
|
126 |
* Sets the carrier value for this QualifiedTrackingNumber.
|
|
|
127 |
*
|
|
|
128 |
* @param carrier * FedEx operating company that delivered the package.
|
|
|
129 |
*/
|
|
|
130 |
public void setCarrier(com.fedex.track.stub.CarrierCodeType carrier) {
|
|
|
131 |
this.carrier = carrier;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
/**
|
|
|
136 |
* Gets the destination value for this QualifiedTrackingNumber.
|
|
|
137 |
*
|
|
|
138 |
* @return destination * Only country is used for elimination of duplicate tracking
|
|
|
139 |
* numbers.
|
|
|
140 |
*/
|
|
|
141 |
public com.fedex.track.stub.Address getDestination() {
|
|
|
142 |
return destination;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
/**
|
|
|
147 |
* Sets the destination value for this QualifiedTrackingNumber.
|
|
|
148 |
*
|
|
|
149 |
* @param destination * Only country is used for elimination of duplicate tracking
|
|
|
150 |
* numbers.
|
|
|
151 |
*/
|
|
|
152 |
public void setDestination(com.fedex.track.stub.Address destination) {
|
|
|
153 |
this.destination = destination;
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
private java.lang.Object __equalsCalc = null;
|
|
|
157 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
158 |
if (!(obj instanceof QualifiedTrackingNumber)) return false;
|
|
|
159 |
QualifiedTrackingNumber other = (QualifiedTrackingNumber) obj;
|
|
|
160 |
if (obj == null) return false;
|
|
|
161 |
if (this == obj) return true;
|
|
|
162 |
if (__equalsCalc != null) {
|
|
|
163 |
return (__equalsCalc == obj);
|
|
|
164 |
}
|
|
|
165 |
__equalsCalc = obj;
|
|
|
166 |
boolean _equals;
|
|
|
167 |
_equals = true &&
|
|
|
168 |
((this.trackingNumber==null && other.getTrackingNumber()==null) ||
|
|
|
169 |
(this.trackingNumber!=null &&
|
|
|
170 |
this.trackingNumber.equals(other.getTrackingNumber()))) &&
|
|
|
171 |
((this.shipDate==null && other.getShipDate()==null) ||
|
|
|
172 |
(this.shipDate!=null &&
|
|
|
173 |
this.shipDate.equals(other.getShipDate()))) &&
|
|
|
174 |
((this.accountNumber==null && other.getAccountNumber()==null) ||
|
|
|
175 |
(this.accountNumber!=null &&
|
|
|
176 |
this.accountNumber.equals(other.getAccountNumber()))) &&
|
|
|
177 |
((this.carrier==null && other.getCarrier()==null) ||
|
|
|
178 |
(this.carrier!=null &&
|
|
|
179 |
this.carrier.equals(other.getCarrier()))) &&
|
|
|
180 |
((this.destination==null && other.getDestination()==null) ||
|
|
|
181 |
(this.destination!=null &&
|
|
|
182 |
this.destination.equals(other.getDestination())));
|
|
|
183 |
__equalsCalc = null;
|
|
|
184 |
return _equals;
|
|
|
185 |
}
|
|
|
186 |
|
|
|
187 |
private boolean __hashCodeCalc = false;
|
|
|
188 |
public synchronized int hashCode() {
|
|
|
189 |
if (__hashCodeCalc) {
|
|
|
190 |
return 0;
|
|
|
191 |
}
|
|
|
192 |
__hashCodeCalc = true;
|
|
|
193 |
int _hashCode = 1;
|
|
|
194 |
if (getTrackingNumber() != null) {
|
|
|
195 |
_hashCode += getTrackingNumber().hashCode();
|
|
|
196 |
}
|
|
|
197 |
if (getShipDate() != null) {
|
|
|
198 |
_hashCode += getShipDate().hashCode();
|
|
|
199 |
}
|
|
|
200 |
if (getAccountNumber() != null) {
|
|
|
201 |
_hashCode += getAccountNumber().hashCode();
|
|
|
202 |
}
|
|
|
203 |
if (getCarrier() != null) {
|
|
|
204 |
_hashCode += getCarrier().hashCode();
|
|
|
205 |
}
|
|
|
206 |
if (getDestination() != null) {
|
|
|
207 |
_hashCode += getDestination().hashCode();
|
|
|
208 |
}
|
|
|
209 |
__hashCodeCalc = false;
|
|
|
210 |
return _hashCode;
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
// Type metadata
|
|
|
214 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
215 |
new org.apache.axis.description.TypeDesc(QualifiedTrackingNumber.class, true);
|
|
|
216 |
|
|
|
217 |
static {
|
|
|
218 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "QualifiedTrackingNumber"));
|
|
|
219 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
220 |
elemField.setFieldName("trackingNumber");
|
|
|
221 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TrackingNumber"));
|
|
|
222 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
223 |
elemField.setMinOccurs(0);
|
|
|
224 |
elemField.setNillable(false);
|
|
|
225 |
typeDesc.addFieldDesc(elemField);
|
|
|
226 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
227 |
elemField.setFieldName("shipDate");
|
|
|
228 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "ShipDate"));
|
|
|
229 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
|
|
|
230 |
elemField.setMinOccurs(0);
|
|
|
231 |
elemField.setNillable(false);
|
|
|
232 |
typeDesc.addFieldDesc(elemField);
|
|
|
233 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
234 |
elemField.setFieldName("accountNumber");
|
|
|
235 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "AccountNumber"));
|
|
|
236 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
237 |
elemField.setMinOccurs(0);
|
|
|
238 |
elemField.setNillable(false);
|
|
|
239 |
typeDesc.addFieldDesc(elemField);
|
|
|
240 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
241 |
elemField.setFieldName("carrier");
|
|
|
242 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Carrier"));
|
|
|
243 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "CarrierCodeType"));
|
|
|
244 |
elemField.setMinOccurs(0);
|
|
|
245 |
elemField.setNillable(false);
|
|
|
246 |
typeDesc.addFieldDesc(elemField);
|
|
|
247 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
248 |
elemField.setFieldName("destination");
|
|
|
249 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Destination"));
|
|
|
250 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Address"));
|
|
|
251 |
elemField.setMinOccurs(0);
|
|
|
252 |
elemField.setNillable(false);
|
|
|
253 |
typeDesc.addFieldDesc(elemField);
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
/**
|
|
|
257 |
* Return type metadata object
|
|
|
258 |
*/
|
|
|
259 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
260 |
return typeDesc;
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
/**
|
|
|
264 |
* Get Custom Serializer
|
|
|
265 |
*/
|
|
|
266 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
267 |
java.lang.String mechType,
|
|
|
268 |
java.lang.Class _javaType,
|
|
|
269 |
javax.xml.namespace.QName _xmlType) {
|
|
|
270 |
return
|
|
|
271 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
272 |
_javaType, _xmlType, typeDesc);
|
|
|
273 |
}
|
|
|
274 |
|
|
|
275 |
/**
|
|
|
276 |
* Get Custom Deserializer
|
|
|
277 |
*/
|
|
|
278 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
279 |
java.lang.String mechType,
|
|
|
280 |
java.lang.Class _javaType,
|
|
|
281 |
javax.xml.namespace.QName _xmlType) {
|
|
|
282 |
return
|
|
|
283 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
284 |
_javaType, _xmlType, typeDesc);
|
|
|
285 |
}
|
|
|
286 |
|
|
|
287 |
}
|