Subversion Repositories SmartDukaan

Rev

Rev 22577 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 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.aramex.stub;
9
 
10
public class Address  implements java.io.Serializable {
11
    private java.lang.String line1;
12
 
13
    private java.lang.String line2;
14
 
15
    private java.lang.String line3;
16
 
17
    private java.lang.String city;
18
 
19
    private java.lang.String stateOrProvinceCode;
20
 
21
    private java.lang.String postCode;
22
 
23
    private java.lang.String countryCode;
24
 
25
    private java.math.BigDecimal longitude;
26
 
27
    private java.math.BigDecimal latitude;
28
 
29
    private java.lang.String buildingNumber;
30
 
31
    private java.lang.String buildingName;
32
 
33
    private java.lang.String floor;
34
 
35
    private java.lang.String apartment;
36
 
37
    private java.lang.String POBox;
38
 
39
    private java.lang.String description;
40
 
41
    public Address() {
42
    }
43
 
44
    public Address(
45
           java.lang.String line1,
46
           java.lang.String line2,
47
           java.lang.String line3,
48
           java.lang.String city,
49
           java.lang.String stateOrProvinceCode,
50
           java.lang.String postCode,
51
           java.lang.String countryCode,
52
           java.math.BigDecimal longitude,
53
           java.math.BigDecimal latitude,
54
           java.lang.String buildingNumber,
55
           java.lang.String buildingName,
56
           java.lang.String floor,
57
           java.lang.String apartment,
58
           java.lang.String POBox,
59
           java.lang.String description) {
60
           this.line1 = line1;
61
           this.line2 = line2;
62
           this.line3 = line3;
63
           this.city = city;
64
           this.stateOrProvinceCode = stateOrProvinceCode;
65
           this.postCode = postCode;
66
           this.countryCode = countryCode;
67
           this.longitude = longitude;
68
           this.latitude = latitude;
69
           this.buildingNumber = buildingNumber;
70
           this.buildingName = buildingName;
71
           this.floor = floor;
72
           this.apartment = apartment;
73
           this.POBox = POBox;
74
           this.description = description;
75
    }
76
 
77
 
78
    /**
79
     * Gets the line1 value for this Address.
80
     * 
81
     * @return line1
82
     */
83
    public java.lang.String getLine1() {
84
        return line1;
85
    }
86
 
87
 
88
    /**
89
     * Sets the line1 value for this Address.
90
     * 
91
     * @param line1
92
     */
93
    public void setLine1(java.lang.String line1) {
94
        this.line1 = line1;
95
    }
96
 
97
 
98
    /**
99
     * Gets the line2 value for this Address.
100
     * 
101
     * @return line2
102
     */
103
    public java.lang.String getLine2() {
104
        return line2;
105
    }
106
 
107
 
108
    /**
109
     * Sets the line2 value for this Address.
110
     * 
111
     * @param line2
112
     */
113
    public void setLine2(java.lang.String line2) {
114
        this.line2 = line2;
115
    }
116
 
117
 
118
    /**
119
     * Gets the line3 value for this Address.
120
     * 
121
     * @return line3
122
     */
123
    public java.lang.String getLine3() {
124
        return line3;
125
    }
126
 
127
 
128
    /**
129
     * Sets the line3 value for this Address.
130
     * 
131
     * @param line3
132
     */
133
    public void setLine3(java.lang.String line3) {
134
        this.line3 = line3;
135
    }
136
 
137
 
138
    /**
139
     * Gets the city value for this Address.
140
     * 
141
     * @return city
142
     */
143
    public java.lang.String getCity() {
144
        return city;
145
    }
146
 
147
 
148
    /**
149
     * Sets the city value for this Address.
150
     * 
151
     * @param city
152
     */
153
    public void setCity(java.lang.String city) {
154
        this.city = city;
155
    }
156
 
157
 
158
    /**
159
     * Gets the stateOrProvinceCode value for this Address.
160
     * 
161
     * @return stateOrProvinceCode
162
     */
163
    public java.lang.String getStateOrProvinceCode() {
164
        return stateOrProvinceCode;
165
    }
166
 
167
 
168
    /**
169
     * Sets the stateOrProvinceCode value for this Address.
170
     * 
171
     * @param stateOrProvinceCode
172
     */
173
    public void setStateOrProvinceCode(java.lang.String stateOrProvinceCode) {
174
        this.stateOrProvinceCode = stateOrProvinceCode;
175
    }
176
 
177
 
178
    /**
179
     * Gets the postCode value for this Address.
180
     * 
181
     * @return postCode
182
     */
183
    public java.lang.String getPostCode() {
184
        return postCode;
185
    }
186
 
187
 
188
    /**
189
     * Sets the postCode value for this Address.
190
     * 
191
     * @param postCode
192
     */
193
    public void setPostCode(java.lang.String postCode) {
194
        this.postCode = postCode;
195
    }
196
 
197
 
198
    /**
199
     * Gets the countryCode value for this Address.
200
     * 
201
     * @return countryCode
202
     */
203
    public java.lang.String getCountryCode() {
204
        return countryCode;
205
    }
206
 
207
 
208
    /**
209
     * Sets the countryCode value for this Address.
210
     * 
211
     * @param countryCode
212
     */
213
    public void setCountryCode(java.lang.String countryCode) {
214
        this.countryCode = countryCode;
215
    }
216
 
217
 
218
    /**
219
     * Gets the longitude value for this Address.
220
     * 
221
     * @return longitude
222
     */
223
    public java.math.BigDecimal getLongitude() {
224
        return longitude;
225
    }
226
 
227
 
228
    /**
229
     * Sets the longitude value for this Address.
230
     * 
231
     * @param longitude
232
     */
233
    public void setLongitude(java.math.BigDecimal longitude) {
234
        this.longitude = longitude;
235
    }
236
 
237
 
238
    /**
239
     * Gets the latitude value for this Address.
240
     * 
241
     * @return latitude
242
     */
243
    public java.math.BigDecimal getLatitude() {
244
        return latitude;
245
    }
246
 
247
 
248
    /**
249
     * Sets the latitude value for this Address.
250
     * 
251
     * @param latitude
252
     */
253
    public void setLatitude(java.math.BigDecimal latitude) {
254
        this.latitude = latitude;
255
    }
256
 
257
 
258
    /**
259
     * Gets the buildingNumber value for this Address.
260
     * 
261
     * @return buildingNumber
262
     */
263
    public java.lang.String getBuildingNumber() {
264
        return buildingNumber;
265
    }
266
 
267
 
268
    /**
269
     * Sets the buildingNumber value for this Address.
270
     * 
271
     * @param buildingNumber
272
     */
273
    public void setBuildingNumber(java.lang.String buildingNumber) {
274
        this.buildingNumber = buildingNumber;
275
    }
276
 
277
 
278
    /**
279
     * Gets the buildingName value for this Address.
280
     * 
281
     * @return buildingName
282
     */
283
    public java.lang.String getBuildingName() {
284
        return buildingName;
285
    }
286
 
287
 
288
    /**
289
     * Sets the buildingName value for this Address.
290
     * 
291
     * @param buildingName
292
     */
293
    public void setBuildingName(java.lang.String buildingName) {
294
        this.buildingName = buildingName;
295
    }
296
 
297
 
298
    /**
299
     * Gets the floor value for this Address.
300
     * 
301
     * @return floor
302
     */
303
    public java.lang.String getFloor() {
304
        return floor;
305
    }
306
 
307
 
308
    /**
309
     * Sets the floor value for this Address.
310
     * 
311
     * @param floor
312
     */
313
    public void setFloor(java.lang.String floor) {
314
        this.floor = floor;
315
    }
316
 
317
 
318
    /**
319
     * Gets the apartment value for this Address.
320
     * 
321
     * @return apartment
322
     */
323
    public java.lang.String getApartment() {
324
        return apartment;
325
    }
326
 
327
 
328
    /**
329
     * Sets the apartment value for this Address.
330
     * 
331
     * @param apartment
332
     */
333
    public void setApartment(java.lang.String apartment) {
334
        this.apartment = apartment;
335
    }
336
 
337
 
338
    /**
339
     * Gets the POBox value for this Address.
340
     * 
341
     * @return POBox
342
     */
343
    public java.lang.String getPOBox() {
344
        return POBox;
345
    }
346
 
347
 
348
    /**
349
     * Sets the POBox value for this Address.
350
     * 
351
     * @param POBox
352
     */
353
    public void setPOBox(java.lang.String POBox) {
354
        this.POBox = POBox;
355
    }
356
 
357
 
358
    /**
359
     * Gets the description value for this Address.
360
     * 
361
     * @return description
362
     */
363
    public java.lang.String getDescription() {
364
        return description;
365
    }
366
 
367
 
368
    /**
369
     * Sets the description value for this Address.
370
     * 
371
     * @param description
372
     */
373
    public void setDescription(java.lang.String description) {
374
        this.description = description;
375
    }
376
 
377
    private java.lang.Object __equalsCalc = null;
378
    public synchronized boolean equals(java.lang.Object obj) {
379
        if (!(obj instanceof Address)) return false;
380
        Address other = (Address) obj;
381
        if (obj == null) return false;
382
        if (this == obj) return true;
383
        if (__equalsCalc != null) {
384
            return (__equalsCalc == obj);
385
        }
386
        __equalsCalc = obj;
387
        boolean _equals;
388
        _equals = true && 
389
            ((this.line1==null && other.getLine1()==null) || 
390
             (this.line1!=null &&
391
              this.line1.equals(other.getLine1()))) &&
392
            ((this.line2==null && other.getLine2()==null) || 
393
             (this.line2!=null &&
394
              this.line2.equals(other.getLine2()))) &&
395
            ((this.line3==null && other.getLine3()==null) || 
396
             (this.line3!=null &&
397
              this.line3.equals(other.getLine3()))) &&
398
            ((this.city==null && other.getCity()==null) || 
399
             (this.city!=null &&
400
              this.city.equals(other.getCity()))) &&
401
            ((this.stateOrProvinceCode==null && other.getStateOrProvinceCode()==null) || 
402
             (this.stateOrProvinceCode!=null &&
403
              this.stateOrProvinceCode.equals(other.getStateOrProvinceCode()))) &&
404
            ((this.postCode==null && other.getPostCode()==null) || 
405
             (this.postCode!=null &&
406
              this.postCode.equals(other.getPostCode()))) &&
407
            ((this.countryCode==null && other.getCountryCode()==null) || 
408
             (this.countryCode!=null &&
409
              this.countryCode.equals(other.getCountryCode()))) &&
410
            ((this.longitude==null && other.getLongitude()==null) || 
411
             (this.longitude!=null &&
412
              this.longitude.equals(other.getLongitude()))) &&
413
            ((this.latitude==null && other.getLatitude()==null) || 
414
             (this.latitude!=null &&
415
              this.latitude.equals(other.getLatitude()))) &&
416
            ((this.buildingNumber==null && other.getBuildingNumber()==null) || 
417
             (this.buildingNumber!=null &&
418
              this.buildingNumber.equals(other.getBuildingNumber()))) &&
419
            ((this.buildingName==null && other.getBuildingName()==null) || 
420
             (this.buildingName!=null &&
421
              this.buildingName.equals(other.getBuildingName()))) &&
422
            ((this.floor==null && other.getFloor()==null) || 
423
             (this.floor!=null &&
424
              this.floor.equals(other.getFloor()))) &&
425
            ((this.apartment==null && other.getApartment()==null) || 
426
             (this.apartment!=null &&
427
              this.apartment.equals(other.getApartment()))) &&
428
            ((this.POBox==null && other.getPOBox()==null) || 
429
             (this.POBox!=null &&
430
              this.POBox.equals(other.getPOBox()))) &&
431
            ((this.description==null && other.getDescription()==null) || 
432
             (this.description!=null &&
433
              this.description.equals(other.getDescription())));
434
        __equalsCalc = null;
435
        return _equals;
436
    }
437
 
438
    private boolean __hashCodeCalc = false;
439
    public synchronized int hashCode() {
440
        if (__hashCodeCalc) {
441
            return 0;
442
        }
443
        __hashCodeCalc = true;
444
        int _hashCode = 1;
445
        if (getLine1() != null) {
446
            _hashCode += getLine1().hashCode();
447
        }
448
        if (getLine2() != null) {
449
            _hashCode += getLine2().hashCode();
450
        }
451
        if (getLine3() != null) {
452
            _hashCode += getLine3().hashCode();
453
        }
454
        if (getCity() != null) {
455
            _hashCode += getCity().hashCode();
456
        }
457
        if (getStateOrProvinceCode() != null) {
458
            _hashCode += getStateOrProvinceCode().hashCode();
459
        }
460
        if (getPostCode() != null) {
461
            _hashCode += getPostCode().hashCode();
462
        }
463
        if (getCountryCode() != null) {
464
            _hashCode += getCountryCode().hashCode();
465
        }
466
        if (getLongitude() != null) {
467
            _hashCode += getLongitude().hashCode();
468
        }
469
        if (getLatitude() != null) {
470
            _hashCode += getLatitude().hashCode();
471
        }
472
        if (getBuildingNumber() != null) {
473
            _hashCode += getBuildingNumber().hashCode();
474
        }
475
        if (getBuildingName() != null) {
476
            _hashCode += getBuildingName().hashCode();
477
        }
478
        if (getFloor() != null) {
479
            _hashCode += getFloor().hashCode();
480
        }
481
        if (getApartment() != null) {
482
            _hashCode += getApartment().hashCode();
483
        }
484
        if (getPOBox() != null) {
485
            _hashCode += getPOBox().hashCode();
486
        }
487
        if (getDescription() != null) {
488
            _hashCode += getDescription().hashCode();
489
        }
490
        __hashCodeCalc = false;
491
        return _hashCode;
492
    }
493
 
494
    // Type metadata
495
    private static org.apache.axis.description.TypeDesc typeDesc =
496
        new org.apache.axis.description.TypeDesc(Address.class, true);
497
 
498
    static {
499
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Address"));
500
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
501
        elemField.setFieldName("line1");
502
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Line1"));
503
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
504
        elemField.setNillable(true);
505
        typeDesc.addFieldDesc(elemField);
506
        elemField = new org.apache.axis.description.ElementDesc();
507
        elemField.setFieldName("line2");
508
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Line2"));
509
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
510
        elemField.setNillable(true);
511
        typeDesc.addFieldDesc(elemField);
512
        elemField = new org.apache.axis.description.ElementDesc();
513
        elemField.setFieldName("line3");
514
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Line3"));
515
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
516
        elemField.setNillable(true);
517
        typeDesc.addFieldDesc(elemField);
518
        elemField = new org.apache.axis.description.ElementDesc();
519
        elemField.setFieldName("city");
520
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "City"));
521
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
522
        elemField.setNillable(true);
523
        typeDesc.addFieldDesc(elemField);
524
        elemField = new org.apache.axis.description.ElementDesc();
525
        elemField.setFieldName("stateOrProvinceCode");
526
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "StateOrProvinceCode"));
527
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
528
        elemField.setMinOccurs(0);
529
        elemField.setNillable(true);
530
        typeDesc.addFieldDesc(elemField);
531
        elemField = new org.apache.axis.description.ElementDesc();
532
        elemField.setFieldName("postCode");
533
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "PostCode"));
534
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
535
        elemField.setNillable(true);
536
        typeDesc.addFieldDesc(elemField);
537
        elemField = new org.apache.axis.description.ElementDesc();
538
        elemField.setFieldName("countryCode");
539
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "CountryCode"));
540
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
541
        elemField.setNillable(true);
542
        typeDesc.addFieldDesc(elemField);
543
        elemField = new org.apache.axis.description.ElementDesc();
544
        elemField.setFieldName("longitude");
545
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Longitude"));
546
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
547
        elemField.setMinOccurs(0);
548
        elemField.setNillable(false);
549
        typeDesc.addFieldDesc(elemField);
550
        elemField = new org.apache.axis.description.ElementDesc();
551
        elemField.setFieldName("latitude");
552
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Latitude"));
553
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
554
        elemField.setMinOccurs(0);
555
        elemField.setNillable(false);
556
        typeDesc.addFieldDesc(elemField);
557
        elemField = new org.apache.axis.description.ElementDesc();
558
        elemField.setFieldName("buildingNumber");
559
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "BuildingNumber"));
560
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
561
        elemField.setMinOccurs(0);
562
        elemField.setNillable(true);
563
        typeDesc.addFieldDesc(elemField);
564
        elemField = new org.apache.axis.description.ElementDesc();
565
        elemField.setFieldName("buildingName");
566
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "BuildingName"));
567
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
568
        elemField.setMinOccurs(0);
569
        elemField.setNillable(true);
570
        typeDesc.addFieldDesc(elemField);
571
        elemField = new org.apache.axis.description.ElementDesc();
572
        elemField.setFieldName("floor");
573
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Floor"));
574
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
575
        elemField.setMinOccurs(0);
576
        elemField.setNillable(true);
577
        typeDesc.addFieldDesc(elemField);
578
        elemField = new org.apache.axis.description.ElementDesc();
579
        elemField.setFieldName("apartment");
580
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Apartment"));
581
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
582
        elemField.setMinOccurs(0);
583
        elemField.setNillable(true);
584
        typeDesc.addFieldDesc(elemField);
585
        elemField = new org.apache.axis.description.ElementDesc();
586
        elemField.setFieldName("POBox");
587
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "POBox"));
588
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
589
        elemField.setMinOccurs(0);
590
        elemField.setNillable(true);
591
        typeDesc.addFieldDesc(elemField);
592
        elemField = new org.apache.axis.description.ElementDesc();
593
        elemField.setFieldName("description");
594
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Description"));
595
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
596
        elemField.setMinOccurs(0);
597
        elemField.setNillable(true);
598
        typeDesc.addFieldDesc(elemField);
599
    }
600
 
601
    /**
602
     * Return type metadata object
603
     */
604
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
605
        return typeDesc;
606
    }
607
 
608
    /**
609
     * Get Custom Serializer
610
     */
611
    public static org.apache.axis.encoding.Serializer getSerializer(
612
           java.lang.String mechType, 
613
           java.lang.Class _javaType,  
614
           javax.xml.namespace.QName _xmlType) {
615
        return 
616
          new  org.apache.axis.encoding.ser.BeanSerializer(
617
            _javaType, _xmlType, typeDesc);
618
    }
619
 
620
    /**
621
     * Get Custom Deserializer
622
     */
623
    public static org.apache.axis.encoding.Deserializer getDeserializer(
624
           java.lang.String mechType, 
625
           java.lang.Class _javaType,  
626
           javax.xml.namespace.QName _xmlType) {
627
        return 
628
          new  org.apache.axis.encoding.ser.BeanDeserializer(
629
            _javaType, _xmlType, typeDesc);
630
    }
631
 
632
}