Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * Contact.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
 * The descriptive data for a point-of-contact person.
13
 */
14
public class Contact  implements java.io.Serializable {
15
    /* Client provided identifier corresponding to this contact information. */
16
    private java.lang.String contactId;
17
 
18
    /* Identifies the contact person's name. */
19
    private java.lang.String personName;
20
 
21
    /* Identifies the contact person's title. */
22
    private java.lang.String title;
23
 
24
    /* Identifies the company this contact is associated with. */
25
    private java.lang.String companyName;
26
 
27
    /* Identifies the phone number associated with this contact. */
28
    private java.lang.String phoneNumber;
29
 
30
    /* Identifies the phone extension associated with this contact. */
31
    private java.lang.String phoneExtension;
32
 
33
    /* Identifies a toll free number, if any, associated with this
34
     * contact. */
35
    private java.lang.String tollFreePhoneNumber;
36
 
37
    /* Identifies the pager number associated with this contact. */
38
    private java.lang.String pagerNumber;
39
 
40
    /* Identifies the fax number associated with this contact. */
41
    private java.lang.String faxNumber;
42
 
43
    /* Identifies the email address associated with this contact. */
44
    private java.lang.String EMailAddress;
45
 
46
    public Contact() {
47
    }
48
 
49
    public Contact(
50
           java.lang.String contactId,
51
           java.lang.String personName,
52
           java.lang.String title,
53
           java.lang.String companyName,
54
           java.lang.String phoneNumber,
55
           java.lang.String phoneExtension,
56
           java.lang.String tollFreePhoneNumber,
57
           java.lang.String pagerNumber,
58
           java.lang.String faxNumber,
59
           java.lang.String EMailAddress) {
60
           this.contactId = contactId;
61
           this.personName = personName;
62
           this.title = title;
63
           this.companyName = companyName;
64
           this.phoneNumber = phoneNumber;
65
           this.phoneExtension = phoneExtension;
66
           this.tollFreePhoneNumber = tollFreePhoneNumber;
67
           this.pagerNumber = pagerNumber;
68
           this.faxNumber = faxNumber;
69
           this.EMailAddress = EMailAddress;
70
    }
71
 
72
 
73
    /**
74
     * Gets the contactId value for this Contact.
75
     * 
76
     * @return contactId   * Client provided identifier corresponding to this contact information.
77
     */
78
    public java.lang.String getContactId() {
79
        return contactId;
80
    }
81
 
82
 
83
    /**
84
     * Sets the contactId value for this Contact.
85
     * 
86
     * @param contactId   * Client provided identifier corresponding to this contact information.
87
     */
88
    public void setContactId(java.lang.String contactId) {
89
        this.contactId = contactId;
90
    }
91
 
92
 
93
    /**
94
     * Gets the personName value for this Contact.
95
     * 
96
     * @return personName   * Identifies the contact person's name.
97
     */
98
    public java.lang.String getPersonName() {
99
        return personName;
100
    }
101
 
102
 
103
    /**
104
     * Sets the personName value for this Contact.
105
     * 
106
     * @param personName   * Identifies the contact person's name.
107
     */
108
    public void setPersonName(java.lang.String personName) {
109
        this.personName = personName;
110
    }
111
 
112
 
113
    /**
114
     * Gets the title value for this Contact.
115
     * 
116
     * @return title   * Identifies the contact person's title.
117
     */
118
    public java.lang.String getTitle() {
119
        return title;
120
    }
121
 
122
 
123
    /**
124
     * Sets the title value for this Contact.
125
     * 
126
     * @param title   * Identifies the contact person's title.
127
     */
128
    public void setTitle(java.lang.String title) {
129
        this.title = title;
130
    }
131
 
132
 
133
    /**
134
     * Gets the companyName value for this Contact.
135
     * 
136
     * @return companyName   * Identifies the company this contact is associated with.
137
     */
138
    public java.lang.String getCompanyName() {
139
        return companyName;
140
    }
141
 
142
 
143
    /**
144
     * Sets the companyName value for this Contact.
145
     * 
146
     * @param companyName   * Identifies the company this contact is associated with.
147
     */
148
    public void setCompanyName(java.lang.String companyName) {
149
        this.companyName = companyName;
150
    }
151
 
152
 
153
    /**
154
     * Gets the phoneNumber value for this Contact.
155
     * 
156
     * @return phoneNumber   * Identifies the phone number associated with this contact.
157
     */
158
    public java.lang.String getPhoneNumber() {
159
        return phoneNumber;
160
    }
161
 
162
 
163
    /**
164
     * Sets the phoneNumber value for this Contact.
165
     * 
166
     * @param phoneNumber   * Identifies the phone number associated with this contact.
167
     */
168
    public void setPhoneNumber(java.lang.String phoneNumber) {
169
        this.phoneNumber = phoneNumber;
170
    }
171
 
172
 
173
    /**
174
     * Gets the phoneExtension value for this Contact.
175
     * 
176
     * @return phoneExtension   * Identifies the phone extension associated with this contact.
177
     */
178
    public java.lang.String getPhoneExtension() {
179
        return phoneExtension;
180
    }
181
 
182
 
183
    /**
184
     * Sets the phoneExtension value for this Contact.
185
     * 
186
     * @param phoneExtension   * Identifies the phone extension associated with this contact.
187
     */
188
    public void setPhoneExtension(java.lang.String phoneExtension) {
189
        this.phoneExtension = phoneExtension;
190
    }
191
 
192
 
193
    /**
194
     * Gets the tollFreePhoneNumber value for this Contact.
195
     * 
196
     * @return tollFreePhoneNumber   * Identifies a toll free number, if any, associated with this
197
     * contact.
198
     */
199
    public java.lang.String getTollFreePhoneNumber() {
200
        return tollFreePhoneNumber;
201
    }
202
 
203
 
204
    /**
205
     * Sets the tollFreePhoneNumber value for this Contact.
206
     * 
207
     * @param tollFreePhoneNumber   * Identifies a toll free number, if any, associated with this
208
     * contact.
209
     */
210
    public void setTollFreePhoneNumber(java.lang.String tollFreePhoneNumber) {
211
        this.tollFreePhoneNumber = tollFreePhoneNumber;
212
    }
213
 
214
 
215
    /**
216
     * Gets the pagerNumber value for this Contact.
217
     * 
218
     * @return pagerNumber   * Identifies the pager number associated with this contact.
219
     */
220
    public java.lang.String getPagerNumber() {
221
        return pagerNumber;
222
    }
223
 
224
 
225
    /**
226
     * Sets the pagerNumber value for this Contact.
227
     * 
228
     * @param pagerNumber   * Identifies the pager number associated with this contact.
229
     */
230
    public void setPagerNumber(java.lang.String pagerNumber) {
231
        this.pagerNumber = pagerNumber;
232
    }
233
 
234
 
235
    /**
236
     * Gets the faxNumber value for this Contact.
237
     * 
238
     * @return faxNumber   * Identifies the fax number associated with this contact.
239
     */
240
    public java.lang.String getFaxNumber() {
241
        return faxNumber;
242
    }
243
 
244
 
245
    /**
246
     * Sets the faxNumber value for this Contact.
247
     * 
248
     * @param faxNumber   * Identifies the fax number associated with this contact.
249
     */
250
    public void setFaxNumber(java.lang.String faxNumber) {
251
        this.faxNumber = faxNumber;
252
    }
253
 
254
 
255
    /**
256
     * Gets the EMailAddress value for this Contact.
257
     * 
258
     * @return EMailAddress   * Identifies the email address associated with this contact.
259
     */
260
    public java.lang.String getEMailAddress() {
261
        return EMailAddress;
262
    }
263
 
264
 
265
    /**
266
     * Sets the EMailAddress value for this Contact.
267
     * 
268
     * @param EMailAddress   * Identifies the email address associated with this contact.
269
     */
270
    public void setEMailAddress(java.lang.String EMailAddress) {
271
        this.EMailAddress = EMailAddress;
272
    }
273
 
274
    private java.lang.Object __equalsCalc = null;
275
    public synchronized boolean equals(java.lang.Object obj) {
276
        if (!(obj instanceof Contact)) return false;
277
        Contact other = (Contact) obj;
278
        if (obj == null) return false;
279
        if (this == obj) return true;
280
        if (__equalsCalc != null) {
281
            return (__equalsCalc == obj);
282
        }
283
        __equalsCalc = obj;
284
        boolean _equals;
285
        _equals = true && 
286
            ((this.contactId==null && other.getContactId()==null) || 
287
             (this.contactId!=null &&
288
              this.contactId.equals(other.getContactId()))) &&
289
            ((this.personName==null && other.getPersonName()==null) || 
290
             (this.personName!=null &&
291
              this.personName.equals(other.getPersonName()))) &&
292
            ((this.title==null && other.getTitle()==null) || 
293
             (this.title!=null &&
294
              this.title.equals(other.getTitle()))) &&
295
            ((this.companyName==null && other.getCompanyName()==null) || 
296
             (this.companyName!=null &&
297
              this.companyName.equals(other.getCompanyName()))) &&
298
            ((this.phoneNumber==null && other.getPhoneNumber()==null) || 
299
             (this.phoneNumber!=null &&
300
              this.phoneNumber.equals(other.getPhoneNumber()))) &&
301
            ((this.phoneExtension==null && other.getPhoneExtension()==null) || 
302
             (this.phoneExtension!=null &&
303
              this.phoneExtension.equals(other.getPhoneExtension()))) &&
304
            ((this.tollFreePhoneNumber==null && other.getTollFreePhoneNumber()==null) || 
305
             (this.tollFreePhoneNumber!=null &&
306
              this.tollFreePhoneNumber.equals(other.getTollFreePhoneNumber()))) &&
307
            ((this.pagerNumber==null && other.getPagerNumber()==null) || 
308
             (this.pagerNumber!=null &&
309
              this.pagerNumber.equals(other.getPagerNumber()))) &&
310
            ((this.faxNumber==null && other.getFaxNumber()==null) || 
311
             (this.faxNumber!=null &&
312
              this.faxNumber.equals(other.getFaxNumber()))) &&
313
            ((this.EMailAddress==null && other.getEMailAddress()==null) || 
314
             (this.EMailAddress!=null &&
315
              this.EMailAddress.equals(other.getEMailAddress())));
316
        __equalsCalc = null;
317
        return _equals;
318
    }
319
 
320
    private boolean __hashCodeCalc = false;
321
    public synchronized int hashCode() {
322
        if (__hashCodeCalc) {
323
            return 0;
324
        }
325
        __hashCodeCalc = true;
326
        int _hashCode = 1;
327
        if (getContactId() != null) {
328
            _hashCode += getContactId().hashCode();
329
        }
330
        if (getPersonName() != null) {
331
            _hashCode += getPersonName().hashCode();
332
        }
333
        if (getTitle() != null) {
334
            _hashCode += getTitle().hashCode();
335
        }
336
        if (getCompanyName() != null) {
337
            _hashCode += getCompanyName().hashCode();
338
        }
339
        if (getPhoneNumber() != null) {
340
            _hashCode += getPhoneNumber().hashCode();
341
        }
342
        if (getPhoneExtension() != null) {
343
            _hashCode += getPhoneExtension().hashCode();
344
        }
345
        if (getTollFreePhoneNumber() != null) {
346
            _hashCode += getTollFreePhoneNumber().hashCode();
347
        }
348
        if (getPagerNumber() != null) {
349
            _hashCode += getPagerNumber().hashCode();
350
        }
351
        if (getFaxNumber() != null) {
352
            _hashCode += getFaxNumber().hashCode();
353
        }
354
        if (getEMailAddress() != null) {
355
            _hashCode += getEMailAddress().hashCode();
356
        }
357
        __hashCodeCalc = false;
358
        return _hashCode;
359
    }
360
 
361
    // Type metadata
362
    private static org.apache.axis.description.TypeDesc typeDesc =
363
        new org.apache.axis.description.TypeDesc(Contact.class, true);
364
 
365
    static {
366
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Contact"));
367
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
368
        elemField.setFieldName("contactId");
369
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactId"));
370
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
371
        elemField.setMinOccurs(0);
372
        elemField.setNillable(false);
373
        typeDesc.addFieldDesc(elemField);
374
        elemField = new org.apache.axis.description.ElementDesc();
375
        elemField.setFieldName("personName");
376
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PersonName"));
377
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
378
        elemField.setMinOccurs(0);
379
        elemField.setNillable(false);
380
        typeDesc.addFieldDesc(elemField);
381
        elemField = new org.apache.axis.description.ElementDesc();
382
        elemField.setFieldName("title");
383
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Title"));
384
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
385
        elemField.setMinOccurs(0);
386
        elemField.setNillable(false);
387
        typeDesc.addFieldDesc(elemField);
388
        elemField = new org.apache.axis.description.ElementDesc();
389
        elemField.setFieldName("companyName");
390
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CompanyName"));
391
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
392
        elemField.setMinOccurs(0);
393
        elemField.setNillable(false);
394
        typeDesc.addFieldDesc(elemField);
395
        elemField = new org.apache.axis.description.ElementDesc();
396
        elemField.setFieldName("phoneNumber");
397
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PhoneNumber"));
398
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
399
        elemField.setMinOccurs(0);
400
        elemField.setNillable(false);
401
        typeDesc.addFieldDesc(elemField);
402
        elemField = new org.apache.axis.description.ElementDesc();
403
        elemField.setFieldName("phoneExtension");
404
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PhoneExtension"));
405
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
406
        elemField.setMinOccurs(0);
407
        elemField.setNillable(false);
408
        typeDesc.addFieldDesc(elemField);
409
        elemField = new org.apache.axis.description.ElementDesc();
410
        elemField.setFieldName("tollFreePhoneNumber");
411
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TollFreePhoneNumber"));
412
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
413
        elemField.setMinOccurs(0);
414
        elemField.setNillable(false);
415
        typeDesc.addFieldDesc(elemField);
416
        elemField = new org.apache.axis.description.ElementDesc();
417
        elemField.setFieldName("pagerNumber");
418
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PagerNumber"));
419
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
420
        elemField.setMinOccurs(0);
421
        elemField.setNillable(false);
422
        typeDesc.addFieldDesc(elemField);
423
        elemField = new org.apache.axis.description.ElementDesc();
424
        elemField.setFieldName("faxNumber");
425
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FaxNumber"));
426
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
427
        elemField.setMinOccurs(0);
428
        elemField.setNillable(false);
429
        typeDesc.addFieldDesc(elemField);
430
        elemField = new org.apache.axis.description.ElementDesc();
431
        elemField.setFieldName("EMailAddress");
432
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailAddress"));
433
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
434
        elemField.setMinOccurs(0);
435
        elemField.setNillable(false);
436
        typeDesc.addFieldDesc(elemField);
437
    }
438
 
439
    /**
440
     * Return type metadata object
441
     */
442
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
443
        return typeDesc;
444
    }
445
 
446
    /**
447
     * Get Custom Serializer
448
     */
449
    public static org.apache.axis.encoding.Serializer getSerializer(
450
           java.lang.String mechType, 
451
           java.lang.Class _javaType,  
452
           javax.xml.namespace.QName _xmlType) {
453
        return 
454
          new  org.apache.axis.encoding.ser.BeanSerializer(
455
            _javaType, _xmlType, typeDesc);
456
    }
457
 
458
    /**
459
     * Get Custom Deserializer
460
     */
461
    public static org.apache.axis.encoding.Deserializer getDeserializer(
462
           java.lang.String mechType, 
463
           java.lang.Class _javaType,  
464
           javax.xml.namespace.QName _xmlType) {
465
        return 
466
          new  org.apache.axis.encoding.ser.BeanDeserializer(
467
            _javaType, _xmlType, typeDesc);
468
    }
469
 
470
}