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