| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* Address.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 |
* Descriptive data for a physical location. May be used as an actual
|
|
|
13 |
* physical address (place to which one could go), or as a container
|
|
|
14 |
* of "address parts" which should be handled as a unit (such as a city-state-ZIP
|
|
|
15 |
* combination within the US).
|
|
|
16 |
*/
|
|
|
17 |
public class Address implements java.io.Serializable {
|
|
|
18 |
/* Combination of number, street name, etc. At least one line
|
|
|
19 |
* is required for a valid physical address; empty lines should not be
|
|
|
20 |
* included. */
|
|
|
21 |
private java.lang.String[] streetLines;
|
|
|
22 |
|
|
|
23 |
/* Name of city, town, etc. */
|
|
|
24 |
private java.lang.String city;
|
|
|
25 |
|
|
|
26 |
/* Identifying abbreviation for US state, Canada province, etc.
|
|
|
27 |
* Format and presence of this field will vary, depending on country. */
|
|
|
28 |
private java.lang.String stateOrProvinceCode;
|
|
|
29 |
|
|
|
30 |
/* Identification of a region (usually small) for mail/package
|
|
|
31 |
* delivery. Format and presence of this field will vary, depending on
|
|
|
32 |
* country. */
|
|
|
33 |
private java.lang.String postalCode;
|
|
|
34 |
|
|
|
35 |
/* Relevant only to addresses in Puerto Rico. */
|
|
|
36 |
private java.lang.String urbanizationCode;
|
|
|
37 |
|
|
|
38 |
/* The two-letter code used to identify a country. */
|
|
|
39 |
private java.lang.String countryCode;
|
|
|
40 |
|
|
|
41 |
/* Indicates whether this address residential (as opposed to commercial). */
|
|
|
42 |
private java.lang.Boolean residential;
|
|
|
43 |
|
|
|
44 |
public Address() {
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
public Address(
|
|
|
48 |
java.lang.String[] streetLines,
|
|
|
49 |
java.lang.String city,
|
|
|
50 |
java.lang.String stateOrProvinceCode,
|
|
|
51 |
java.lang.String postalCode,
|
|
|
52 |
java.lang.String urbanizationCode,
|
|
|
53 |
java.lang.String countryCode,
|
|
|
54 |
java.lang.Boolean residential) {
|
|
|
55 |
this.streetLines = streetLines;
|
|
|
56 |
this.city = city;
|
|
|
57 |
this.stateOrProvinceCode = stateOrProvinceCode;
|
|
|
58 |
this.postalCode = postalCode;
|
|
|
59 |
this.urbanizationCode = urbanizationCode;
|
|
|
60 |
this.countryCode = countryCode;
|
|
|
61 |
this.residential = residential;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
/**
|
|
|
66 |
* Gets the streetLines value for this Address.
|
|
|
67 |
*
|
|
|
68 |
* @return streetLines * Combination of number, street name, etc. At least one line
|
|
|
69 |
* is required for a valid physical address; empty lines should not be
|
|
|
70 |
* included.
|
|
|
71 |
*/
|
|
|
72 |
public java.lang.String[] getStreetLines() {
|
|
|
73 |
return streetLines;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Sets the streetLines value for this Address.
|
|
|
79 |
*
|
|
|
80 |
* @param streetLines * Combination of number, street name, etc. At least one line
|
|
|
81 |
* is required for a valid physical address; empty lines should not be
|
|
|
82 |
* included.
|
|
|
83 |
*/
|
|
|
84 |
public void setStreetLines(java.lang.String[] streetLines) {
|
|
|
85 |
this.streetLines = streetLines;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public java.lang.String getStreetLines(int i) {
|
|
|
89 |
return this.streetLines[i];
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
public void setStreetLines(int i, java.lang.String _value) {
|
|
|
93 |
this.streetLines[i] = _value;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
/**
|
|
|
98 |
* Gets the city value for this Address.
|
|
|
99 |
*
|
|
|
100 |
* @return city * Name of city, town, etc.
|
|
|
101 |
*/
|
|
|
102 |
public java.lang.String getCity() {
|
|
|
103 |
return city;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
/**
|
|
|
108 |
* Sets the city value for this Address.
|
|
|
109 |
*
|
|
|
110 |
* @param city * Name of city, town, etc.
|
|
|
111 |
*/
|
|
|
112 |
public void setCity(java.lang.String city) {
|
|
|
113 |
this.city = city;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
/**
|
|
|
118 |
* Gets the stateOrProvinceCode value for this Address.
|
|
|
119 |
*
|
|
|
120 |
* @return stateOrProvinceCode * Identifying abbreviation for US state, Canada province, etc.
|
|
|
121 |
* Format and presence of this field will vary, depending on country.
|
|
|
122 |
*/
|
|
|
123 |
public java.lang.String getStateOrProvinceCode() {
|
|
|
124 |
return stateOrProvinceCode;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
/**
|
|
|
129 |
* Sets the stateOrProvinceCode value for this Address.
|
|
|
130 |
*
|
|
|
131 |
* @param stateOrProvinceCode * Identifying abbreviation for US state, Canada province, etc.
|
|
|
132 |
* Format and presence of this field will vary, depending on country.
|
|
|
133 |
*/
|
|
|
134 |
public void setStateOrProvinceCode(java.lang.String stateOrProvinceCode) {
|
|
|
135 |
this.stateOrProvinceCode = stateOrProvinceCode;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
/**
|
|
|
140 |
* Gets the postalCode value for this Address.
|
|
|
141 |
*
|
|
|
142 |
* @return postalCode * Identification of a region (usually small) for mail/package
|
|
|
143 |
* delivery. Format and presence of this field will vary, depending on
|
|
|
144 |
* country.
|
|
|
145 |
*/
|
|
|
146 |
public java.lang.String getPostalCode() {
|
|
|
147 |
return postalCode;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
/**
|
|
|
152 |
* Sets the postalCode value for this Address.
|
|
|
153 |
*
|
|
|
154 |
* @param postalCode * Identification of a region (usually small) for mail/package
|
|
|
155 |
* delivery. Format and presence of this field will vary, depending on
|
|
|
156 |
* country.
|
|
|
157 |
*/
|
|
|
158 |
public void setPostalCode(java.lang.String postalCode) {
|
|
|
159 |
this.postalCode = postalCode;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Gets the urbanizationCode value for this Address.
|
|
|
165 |
*
|
|
|
166 |
* @return urbanizationCode * Relevant only to addresses in Puerto Rico.
|
|
|
167 |
*/
|
|
|
168 |
public java.lang.String getUrbanizationCode() {
|
|
|
169 |
return urbanizationCode;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
/**
|
|
|
174 |
* Sets the urbanizationCode value for this Address.
|
|
|
175 |
*
|
|
|
176 |
* @param urbanizationCode * Relevant only to addresses in Puerto Rico.
|
|
|
177 |
*/
|
|
|
178 |
public void setUrbanizationCode(java.lang.String urbanizationCode) {
|
|
|
179 |
this.urbanizationCode = urbanizationCode;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
/**
|
|
|
184 |
* Gets the countryCode value for this Address.
|
|
|
185 |
*
|
|
|
186 |
* @return countryCode * The two-letter code used to identify a country.
|
|
|
187 |
*/
|
|
|
188 |
public java.lang.String getCountryCode() {
|
|
|
189 |
return countryCode;
|
|
|
190 |
}
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
/**
|
|
|
194 |
* Sets the countryCode value for this Address.
|
|
|
195 |
*
|
|
|
196 |
* @param countryCode * The two-letter code used to identify a country.
|
|
|
197 |
*/
|
|
|
198 |
public void setCountryCode(java.lang.String countryCode) {
|
|
|
199 |
this.countryCode = countryCode;
|
|
|
200 |
}
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
/**
|
|
|
204 |
* Gets the residential value for this Address.
|
|
|
205 |
*
|
|
|
206 |
* @return residential * Indicates whether this address residential (as opposed to commercial).
|
|
|
207 |
*/
|
|
|
208 |
public java.lang.Boolean getResidential() {
|
|
|
209 |
return residential;
|
|
|
210 |
}
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
/**
|
|
|
214 |
* Sets the residential value for this Address.
|
|
|
215 |
*
|
|
|
216 |
* @param residential * Indicates whether this address residential (as opposed to commercial).
|
|
|
217 |
*/
|
|
|
218 |
public void setResidential(java.lang.Boolean residential) {
|
|
|
219 |
this.residential = residential;
|
|
|
220 |
}
|
|
|
221 |
|
|
|
222 |
private java.lang.Object __equalsCalc = null;
|
|
|
223 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
224 |
if (!(obj instanceof Address)) return false;
|
|
|
225 |
Address other = (Address) obj;
|
|
|
226 |
if (obj == null) return false;
|
|
|
227 |
if (this == obj) return true;
|
|
|
228 |
if (__equalsCalc != null) {
|
|
|
229 |
return (__equalsCalc == obj);
|
|
|
230 |
}
|
|
|
231 |
__equalsCalc = obj;
|
|
|
232 |
boolean _equals;
|
|
|
233 |
_equals = true &&
|
|
|
234 |
((this.streetLines==null && other.getStreetLines()==null) ||
|
|
|
235 |
(this.streetLines!=null &&
|
|
|
236 |
java.util.Arrays.equals(this.streetLines, other.getStreetLines()))) &&
|
|
|
237 |
((this.city==null && other.getCity()==null) ||
|
|
|
238 |
(this.city!=null &&
|
|
|
239 |
this.city.equals(other.getCity()))) &&
|
|
|
240 |
((this.stateOrProvinceCode==null && other.getStateOrProvinceCode()==null) ||
|
|
|
241 |
(this.stateOrProvinceCode!=null &&
|
|
|
242 |
this.stateOrProvinceCode.equals(other.getStateOrProvinceCode()))) &&
|
|
|
243 |
((this.postalCode==null && other.getPostalCode()==null) ||
|
|
|
244 |
(this.postalCode!=null &&
|
|
|
245 |
this.postalCode.equals(other.getPostalCode()))) &&
|
|
|
246 |
((this.urbanizationCode==null && other.getUrbanizationCode()==null) ||
|
|
|
247 |
(this.urbanizationCode!=null &&
|
|
|
248 |
this.urbanizationCode.equals(other.getUrbanizationCode()))) &&
|
|
|
249 |
((this.countryCode==null && other.getCountryCode()==null) ||
|
|
|
250 |
(this.countryCode!=null &&
|
|
|
251 |
this.countryCode.equals(other.getCountryCode()))) &&
|
|
|
252 |
((this.residential==null && other.getResidential()==null) ||
|
|
|
253 |
(this.residential!=null &&
|
|
|
254 |
this.residential.equals(other.getResidential())));
|
|
|
255 |
__equalsCalc = null;
|
|
|
256 |
return _equals;
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
private boolean __hashCodeCalc = false;
|
|
|
260 |
public synchronized int hashCode() {
|
|
|
261 |
if (__hashCodeCalc) {
|
|
|
262 |
return 0;
|
|
|
263 |
}
|
|
|
264 |
__hashCodeCalc = true;
|
|
|
265 |
int _hashCode = 1;
|
|
|
266 |
if (getStreetLines() != null) {
|
|
|
267 |
for (int i=0;
|
|
|
268 |
i<java.lang.reflect.Array.getLength(getStreetLines());
|
|
|
269 |
i++) {
|
|
|
270 |
java.lang.Object obj = java.lang.reflect.Array.get(getStreetLines(), i);
|
|
|
271 |
if (obj != null &&
|
|
|
272 |
!obj.getClass().isArray()) {
|
|
|
273 |
_hashCode += obj.hashCode();
|
|
|
274 |
}
|
|
|
275 |
}
|
|
|
276 |
}
|
|
|
277 |
if (getCity() != null) {
|
|
|
278 |
_hashCode += getCity().hashCode();
|
|
|
279 |
}
|
|
|
280 |
if (getStateOrProvinceCode() != null) {
|
|
|
281 |
_hashCode += getStateOrProvinceCode().hashCode();
|
|
|
282 |
}
|
|
|
283 |
if (getPostalCode() != null) {
|
|
|
284 |
_hashCode += getPostalCode().hashCode();
|
|
|
285 |
}
|
|
|
286 |
if (getUrbanizationCode() != null) {
|
|
|
287 |
_hashCode += getUrbanizationCode().hashCode();
|
|
|
288 |
}
|
|
|
289 |
if (getCountryCode() != null) {
|
|
|
290 |
_hashCode += getCountryCode().hashCode();
|
|
|
291 |
}
|
|
|
292 |
if (getResidential() != null) {
|
|
|
293 |
_hashCode += getResidential().hashCode();
|
|
|
294 |
}
|
|
|
295 |
__hashCodeCalc = false;
|
|
|
296 |
return _hashCode;
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
// Type metadata
|
|
|
300 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
301 |
new org.apache.axis.description.TypeDesc(Address.class, true);
|
|
|
302 |
|
|
|
303 |
static {
|
|
|
304 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Address"));
|
|
|
305 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
306 |
elemField.setFieldName("streetLines");
|
|
|
307 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StreetLines"));
|
|
|
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("city");
|
|
|
314 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "City"));
|
|
|
315 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
316 |
elemField.setMinOccurs(0);
|
|
|
317 |
elemField.setNillable(false);
|
|
|
318 |
typeDesc.addFieldDesc(elemField);
|
|
|
319 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
320 |
elemField.setFieldName("stateOrProvinceCode");
|
|
|
321 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "StateOrProvinceCode"));
|
|
|
322 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
323 |
elemField.setMinOccurs(0);
|
|
|
324 |
elemField.setNillable(false);
|
|
|
325 |
typeDesc.addFieldDesc(elemField);
|
|
|
326 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
327 |
elemField.setFieldName("postalCode");
|
|
|
328 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "PostalCode"));
|
|
|
329 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
330 |
elemField.setMinOccurs(0);
|
|
|
331 |
elemField.setNillable(false);
|
|
|
332 |
typeDesc.addFieldDesc(elemField);
|
|
|
333 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
334 |
elemField.setFieldName("urbanizationCode");
|
|
|
335 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "UrbanizationCode"));
|
|
|
336 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
337 |
elemField.setMinOccurs(0);
|
|
|
338 |
elemField.setNillable(false);
|
|
|
339 |
typeDesc.addFieldDesc(elemField);
|
|
|
340 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
341 |
elemField.setFieldName("countryCode");
|
|
|
342 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "CountryCode"));
|
|
|
343 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
344 |
elemField.setMinOccurs(0);
|
|
|
345 |
elemField.setNillable(false);
|
|
|
346 |
typeDesc.addFieldDesc(elemField);
|
|
|
347 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
348 |
elemField.setFieldName("residential");
|
|
|
349 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Residential"));
|
|
|
350 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
|
|
351 |
elemField.setMinOccurs(0);
|
|
|
352 |
elemField.setNillable(false);
|
|
|
353 |
typeDesc.addFieldDesc(elemField);
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
/**
|
|
|
357 |
* Return type metadata object
|
|
|
358 |
*/
|
|
|
359 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
360 |
return typeDesc;
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
/**
|
|
|
364 |
* Get Custom Serializer
|
|
|
365 |
*/
|
|
|
366 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
367 |
java.lang.String mechType,
|
|
|
368 |
java.lang.Class _javaType,
|
|
|
369 |
javax.xml.namespace.QName _xmlType) {
|
|
|
370 |
return
|
|
|
371 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
372 |
_javaType, _xmlType, typeDesc);
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
/**
|
|
|
376 |
* Get Custom Deserializer
|
|
|
377 |
*/
|
|
|
378 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
379 |
java.lang.String mechType,
|
|
|
380 |
java.lang.Class _javaType,
|
|
|
381 |
javax.xml.namespace.QName _xmlType) {
|
|
|
382 |
return
|
|
|
383 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
384 |
_javaType, _xmlType, typeDesc);
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
}
|