Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * TaxpayerIdentification.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 taxpayer identification information.
13
 */
14
public class TaxpayerIdentification  implements java.io.Serializable {
15
    /* Identifies the category of the taxpayer identification number.
16
     * See TinType for the list of values. */
17
    private com.fedex.ship.stub.TinType tinType;
18
 
19
    /* Identifies the taxpayer identification number. */
20
    private java.lang.String number;
21
 
22
    /* Identifies the usage of Tax Identification Number in Shipment
23
     * processing */
24
    private java.lang.String usage;
25
 
26
    public TaxpayerIdentification() {
27
    }
28
 
29
    public TaxpayerIdentification(
30
           com.fedex.ship.stub.TinType tinType,
31
           java.lang.String number,
32
           java.lang.String usage) {
33
           this.tinType = tinType;
34
           this.number = number;
35
           this.usage = usage;
36
    }
37
 
38
 
39
    /**
40
     * Gets the tinType value for this TaxpayerIdentification.
41
     * 
42
     * @return tinType   * Identifies the category of the taxpayer identification number.
43
     * See TinType for the list of values.
44
     */
45
    public com.fedex.ship.stub.TinType getTinType() {
46
        return tinType;
47
    }
48
 
49
 
50
    /**
51
     * Sets the tinType value for this TaxpayerIdentification.
52
     * 
53
     * @param tinType   * Identifies the category of the taxpayer identification number.
54
     * See TinType for the list of values.
55
     */
56
    public void setTinType(com.fedex.ship.stub.TinType tinType) {
57
        this.tinType = tinType;
58
    }
59
 
60
 
61
    /**
62
     * Gets the number value for this TaxpayerIdentification.
63
     * 
64
     * @return number   * Identifies the taxpayer identification number.
65
     */
66
    public java.lang.String getNumber() {
67
        return number;
68
    }
69
 
70
 
71
    /**
72
     * Sets the number value for this TaxpayerIdentification.
73
     * 
74
     * @param number   * Identifies the taxpayer identification number.
75
     */
76
    public void setNumber(java.lang.String number) {
77
        this.number = number;
78
    }
79
 
80
 
81
    /**
82
     * Gets the usage value for this TaxpayerIdentification.
83
     * 
84
     * @return usage   * Identifies the usage of Tax Identification Number in Shipment
85
     * processing
86
     */
87
    public java.lang.String getUsage() {
88
        return usage;
89
    }
90
 
91
 
92
    /**
93
     * Sets the usage value for this TaxpayerIdentification.
94
     * 
95
     * @param usage   * Identifies the usage of Tax Identification Number in Shipment
96
     * processing
97
     */
98
    public void setUsage(java.lang.String usage) {
99
        this.usage = usage;
100
    }
101
 
102
    private java.lang.Object __equalsCalc = null;
103
    public synchronized boolean equals(java.lang.Object obj) {
104
        if (!(obj instanceof TaxpayerIdentification)) return false;
105
        TaxpayerIdentification other = (TaxpayerIdentification) obj;
106
        if (obj == null) return false;
107
        if (this == obj) return true;
108
        if (__equalsCalc != null) {
109
            return (__equalsCalc == obj);
110
        }
111
        __equalsCalc = obj;
112
        boolean _equals;
113
        _equals = true && 
114
            ((this.tinType==null && other.getTinType()==null) || 
115
             (this.tinType!=null &&
116
              this.tinType.equals(other.getTinType()))) &&
117
            ((this.number==null && other.getNumber()==null) || 
118
             (this.number!=null &&
119
              this.number.equals(other.getNumber()))) &&
120
            ((this.usage==null && other.getUsage()==null) || 
121
             (this.usage!=null &&
122
              this.usage.equals(other.getUsage())));
123
        __equalsCalc = null;
124
        return _equals;
125
    }
126
 
127
    private boolean __hashCodeCalc = false;
128
    public synchronized int hashCode() {
129
        if (__hashCodeCalc) {
130
            return 0;
131
        }
132
        __hashCodeCalc = true;
133
        int _hashCode = 1;
134
        if (getTinType() != null) {
135
            _hashCode += getTinType().hashCode();
136
        }
137
        if (getNumber() != null) {
138
            _hashCode += getNumber().hashCode();
139
        }
140
        if (getUsage() != null) {
141
            _hashCode += getUsage().hashCode();
142
        }
143
        __hashCodeCalc = false;
144
        return _hashCode;
145
    }
146
 
147
    // Type metadata
148
    private static org.apache.axis.description.TypeDesc typeDesc =
149
        new org.apache.axis.description.TypeDesc(TaxpayerIdentification.class, true);
150
 
151
    static {
152
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxpayerIdentification"));
153
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
154
        elemField.setFieldName("tinType");
155
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TinType"));
156
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TinType"));
157
        elemField.setNillable(false);
158
        typeDesc.addFieldDesc(elemField);
159
        elemField = new org.apache.axis.description.ElementDesc();
160
        elemField.setFieldName("number");
161
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Number"));
162
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
163
        elemField.setNillable(false);
164
        typeDesc.addFieldDesc(elemField);
165
        elemField = new org.apache.axis.description.ElementDesc();
166
        elemField.setFieldName("usage");
167
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Usage"));
168
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
169
        elemField.setMinOccurs(0);
170
        elemField.setNillable(false);
171
        typeDesc.addFieldDesc(elemField);
172
    }
173
 
174
    /**
175
     * Return type metadata object
176
     */
177
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
178
        return typeDesc;
179
    }
180
 
181
    /**
182
     * Get Custom Serializer
183
     */
184
    public static org.apache.axis.encoding.Serializer getSerializer(
185
           java.lang.String mechType, 
186
           java.lang.Class _javaType,  
187
           javax.xml.namespace.QName _xmlType) {
188
        return 
189
          new  org.apache.axis.encoding.ser.BeanSerializer(
190
            _javaType, _xmlType, typeDesc);
191
    }
192
 
193
    /**
194
     * Get Custom Deserializer
195
     */
196
    public static org.apache.axis.encoding.Deserializer getDeserializer(
197
           java.lang.String mechType, 
198
           java.lang.Class _javaType,  
199
           javax.xml.namespace.QName _xmlType) {
200
        return 
201
          new  org.apache.axis.encoding.ser.BeanDeserializer(
202
            _javaType, _xmlType, typeDesc);
203
    }
204
 
205
}