Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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