| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* TrackingId.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.ship.stub;
|
|
|
9 |
|
|
|
10 |
public class TrackingId implements java.io.Serializable {
|
|
|
11 |
private com.fedex.ship.stub.TrackingIdType trackingIdType;
|
|
|
12 |
|
|
|
13 |
private java.lang.String formId;
|
|
|
14 |
|
|
|
15 |
/* For use with SmartPost tracking IDs only */
|
|
|
16 |
private java.lang.String uspsApplicationId;
|
|
|
17 |
|
|
|
18 |
private java.lang.String trackingNumber;
|
|
|
19 |
|
|
|
20 |
public TrackingId() {
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
public TrackingId(
|
|
|
24 |
com.fedex.ship.stub.TrackingIdType trackingIdType,
|
|
|
25 |
java.lang.String formId,
|
|
|
26 |
java.lang.String uspsApplicationId,
|
|
|
27 |
java.lang.String trackingNumber) {
|
|
|
28 |
this.trackingIdType = trackingIdType;
|
|
|
29 |
this.formId = formId;
|
|
|
30 |
this.uspsApplicationId = uspsApplicationId;
|
|
|
31 |
this.trackingNumber = trackingNumber;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/**
|
|
|
36 |
* Gets the trackingIdType value for this TrackingId.
|
|
|
37 |
*
|
|
|
38 |
* @return trackingIdType
|
|
|
39 |
*/
|
|
|
40 |
public com.fedex.ship.stub.TrackingIdType getTrackingIdType() {
|
|
|
41 |
return trackingIdType;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* Sets the trackingIdType value for this TrackingId.
|
|
|
47 |
*
|
|
|
48 |
* @param trackingIdType
|
|
|
49 |
*/
|
|
|
50 |
public void setTrackingIdType(com.fedex.ship.stub.TrackingIdType trackingIdType) {
|
|
|
51 |
this.trackingIdType = trackingIdType;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
/**
|
|
|
56 |
* Gets the formId value for this TrackingId.
|
|
|
57 |
*
|
|
|
58 |
* @return formId
|
|
|
59 |
*/
|
|
|
60 |
public java.lang.String getFormId() {
|
|
|
61 |
return formId;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
/**
|
|
|
66 |
* Sets the formId value for this TrackingId.
|
|
|
67 |
*
|
|
|
68 |
* @param formId
|
|
|
69 |
*/
|
|
|
70 |
public void setFormId(java.lang.String formId) {
|
|
|
71 |
this.formId = formId;
|
|
|
72 |
}
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* Gets the uspsApplicationId value for this TrackingId.
|
|
|
77 |
*
|
|
|
78 |
* @return uspsApplicationId * For use with SmartPost tracking IDs only
|
|
|
79 |
*/
|
|
|
80 |
public java.lang.String getUspsApplicationId() {
|
|
|
81 |
return uspsApplicationId;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
/**
|
|
|
86 |
* Sets the uspsApplicationId value for this TrackingId.
|
|
|
87 |
*
|
|
|
88 |
* @param uspsApplicationId * For use with SmartPost tracking IDs only
|
|
|
89 |
*/
|
|
|
90 |
public void setUspsApplicationId(java.lang.String uspsApplicationId) {
|
|
|
91 |
this.uspsApplicationId = uspsApplicationId;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
/**
|
|
|
96 |
* Gets the trackingNumber value for this TrackingId.
|
|
|
97 |
*
|
|
|
98 |
* @return trackingNumber
|
|
|
99 |
*/
|
|
|
100 |
public java.lang.String getTrackingNumber() {
|
|
|
101 |
return trackingNumber;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
/**
|
|
|
106 |
* Sets the trackingNumber value for this TrackingId.
|
|
|
107 |
*
|
|
|
108 |
* @param trackingNumber
|
|
|
109 |
*/
|
|
|
110 |
public void setTrackingNumber(java.lang.String trackingNumber) {
|
|
|
111 |
this.trackingNumber = trackingNumber;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
private java.lang.Object __equalsCalc = null;
|
|
|
115 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
116 |
if (!(obj instanceof TrackingId)) return false;
|
|
|
117 |
TrackingId other = (TrackingId) obj;
|
|
|
118 |
if (obj == null) return false;
|
|
|
119 |
if (this == obj) return true;
|
|
|
120 |
if (__equalsCalc != null) {
|
|
|
121 |
return (__equalsCalc == obj);
|
|
|
122 |
}
|
|
|
123 |
__equalsCalc = obj;
|
|
|
124 |
boolean _equals;
|
|
|
125 |
_equals = true &&
|
|
|
126 |
((this.trackingIdType==null && other.getTrackingIdType()==null) ||
|
|
|
127 |
(this.trackingIdType!=null &&
|
|
|
128 |
this.trackingIdType.equals(other.getTrackingIdType()))) &&
|
|
|
129 |
((this.formId==null && other.getFormId()==null) ||
|
|
|
130 |
(this.formId!=null &&
|
|
|
131 |
this.formId.equals(other.getFormId()))) &&
|
|
|
132 |
((this.uspsApplicationId==null && other.getUspsApplicationId()==null) ||
|
|
|
133 |
(this.uspsApplicationId!=null &&
|
|
|
134 |
this.uspsApplicationId.equals(other.getUspsApplicationId()))) &&
|
|
|
135 |
((this.trackingNumber==null && other.getTrackingNumber()==null) ||
|
|
|
136 |
(this.trackingNumber!=null &&
|
|
|
137 |
this.trackingNumber.equals(other.getTrackingNumber())));
|
|
|
138 |
__equalsCalc = null;
|
|
|
139 |
return _equals;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
private boolean __hashCodeCalc = false;
|
|
|
143 |
public synchronized int hashCode() {
|
|
|
144 |
if (__hashCodeCalc) {
|
|
|
145 |
return 0;
|
|
|
146 |
}
|
|
|
147 |
__hashCodeCalc = true;
|
|
|
148 |
int _hashCode = 1;
|
|
|
149 |
if (getTrackingIdType() != null) {
|
|
|
150 |
_hashCode += getTrackingIdType().hashCode();
|
|
|
151 |
}
|
|
|
152 |
if (getFormId() != null) {
|
|
|
153 |
_hashCode += getFormId().hashCode();
|
|
|
154 |
}
|
|
|
155 |
if (getUspsApplicationId() != null) {
|
|
|
156 |
_hashCode += getUspsApplicationId().hashCode();
|
|
|
157 |
}
|
|
|
158 |
if (getTrackingNumber() != null) {
|
|
|
159 |
_hashCode += getTrackingNumber().hashCode();
|
|
|
160 |
}
|
|
|
161 |
__hashCodeCalc = false;
|
|
|
162 |
return _hashCode;
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
// Type metadata
|
|
|
166 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
167 |
new org.apache.axis.description.TypeDesc(TrackingId.class, true);
|
|
|
168 |
|
|
|
169 |
static {
|
|
|
170 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
|
|
|
171 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
172 |
elemField.setFieldName("trackingIdType");
|
|
|
173 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingIdType"));
|
|
|
174 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingIdType"));
|
|
|
175 |
elemField.setMinOccurs(0);
|
|
|
176 |
elemField.setNillable(false);
|
|
|
177 |
typeDesc.addFieldDesc(elemField);
|
|
|
178 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
179 |
elemField.setFieldName("formId");
|
|
|
180 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FormId"));
|
|
|
181 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
182 |
elemField.setMinOccurs(0);
|
|
|
183 |
elemField.setNillable(false);
|
|
|
184 |
typeDesc.addFieldDesc(elemField);
|
|
|
185 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
186 |
elemField.setFieldName("uspsApplicationId");
|
|
|
187 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "UspsApplicationId"));
|
|
|
188 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
189 |
elemField.setMinOccurs(0);
|
|
|
190 |
elemField.setNillable(false);
|
|
|
191 |
typeDesc.addFieldDesc(elemField);
|
|
|
192 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
193 |
elemField.setFieldName("trackingNumber");
|
|
|
194 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingNumber"));
|
|
|
195 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
196 |
elemField.setMinOccurs(0);
|
|
|
197 |
elemField.setNillable(false);
|
|
|
198 |
typeDesc.addFieldDesc(elemField);
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
/**
|
|
|
202 |
* Return type metadata object
|
|
|
203 |
*/
|
|
|
204 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
205 |
return typeDesc;
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
/**
|
|
|
209 |
* Get Custom Serializer
|
|
|
210 |
*/
|
|
|
211 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
212 |
java.lang.String mechType,
|
|
|
213 |
java.lang.Class _javaType,
|
|
|
214 |
javax.xml.namespace.QName _xmlType) {
|
|
|
215 |
return
|
|
|
216 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
217 |
_javaType, _xmlType, typeDesc);
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
/**
|
|
|
221 |
* Get Custom Deserializer
|
|
|
222 |
*/
|
|
|
223 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
224 |
java.lang.String mechType,
|
|
|
225 |
java.lang.Class _javaType,
|
|
|
226 |
javax.xml.namespace.QName _xmlType) {
|
|
|
227 |
return
|
|
|
228 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
229 |
_javaType, _xmlType, typeDesc);
|
|
|
230 |
}
|
|
|
231 |
|
|
|
232 |
}
|