Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * RecipientCustomsId.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
 * Specifies how the recipient is identified for customs purposes;
13
 * the requirements on this information vary with destination country.
14
 */
15
public class RecipientCustomsId  implements java.io.Serializable {
16
    /* Specifies the kind of identification being used. */
17
    private com.fedex.ship.stub.RecipientCustomsIdType type;
18
 
19
    /* Contains the actual ID value, of the type specified above. */
20
    private java.lang.String value;
21
 
22
    public RecipientCustomsId() {
23
    }
24
 
25
    public RecipientCustomsId(
26
           com.fedex.ship.stub.RecipientCustomsIdType type,
27
           java.lang.String value) {
28
           this.type = type;
29
           this.value = value;
30
    }
31
 
32
 
33
    /**
34
     * Gets the type value for this RecipientCustomsId.
35
     * 
36
     * @return type   * Specifies the kind of identification being used.
37
     */
38
    public com.fedex.ship.stub.RecipientCustomsIdType getType() {
39
        return type;
40
    }
41
 
42
 
43
    /**
44
     * Sets the type value for this RecipientCustomsId.
45
     * 
46
     * @param type   * Specifies the kind of identification being used.
47
     */
48
    public void setType(com.fedex.ship.stub.RecipientCustomsIdType type) {
49
        this.type = type;
50
    }
51
 
52
 
53
    /**
54
     * Gets the value value for this RecipientCustomsId.
55
     * 
56
     * @return value   * Contains the actual ID value, of the type specified above.
57
     */
58
    public java.lang.String getValue() {
59
        return value;
60
    }
61
 
62
 
63
    /**
64
     * Sets the value value for this RecipientCustomsId.
65
     * 
66
     * @param value   * Contains the actual ID value, of the type specified above.
67
     */
68
    public void setValue(java.lang.String value) {
69
        this.value = value;
70
    }
71
 
72
    private java.lang.Object __equalsCalc = null;
73
    public synchronized boolean equals(java.lang.Object obj) {
74
        if (!(obj instanceof RecipientCustomsId)) return false;
75
        RecipientCustomsId other = (RecipientCustomsId) obj;
76
        if (obj == null) return false;
77
        if (this == obj) return true;
78
        if (__equalsCalc != null) {
79
            return (__equalsCalc == obj);
80
        }
81
        __equalsCalc = obj;
82
        boolean _equals;
83
        _equals = true && 
84
            ((this.type==null && other.getType()==null) || 
85
             (this.type!=null &&
86
              this.type.equals(other.getType()))) &&
87
            ((this.value==null && other.getValue()==null) || 
88
             (this.value!=null &&
89
              this.value.equals(other.getValue())));
90
        __equalsCalc = null;
91
        return _equals;
92
    }
93
 
94
    private boolean __hashCodeCalc = false;
95
    public synchronized int hashCode() {
96
        if (__hashCodeCalc) {
97
            return 0;
98
        }
99
        __hashCodeCalc = true;
100
        int _hashCode = 1;
101
        if (getType() != null) {
102
            _hashCode += getType().hashCode();
103
        }
104
        if (getValue() != null) {
105
            _hashCode += getValue().hashCode();
106
        }
107
        __hashCodeCalc = false;
108
        return _hashCode;
109
    }
110
 
111
    // Type metadata
112
    private static org.apache.axis.description.TypeDesc typeDesc =
113
        new org.apache.axis.description.TypeDesc(RecipientCustomsId.class, true);
114
 
115
    static {
116
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RecipientCustomsId"));
117
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
118
        elemField.setFieldName("type");
119
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Type"));
120
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RecipientCustomsIdType"));
121
        elemField.setMinOccurs(0);
122
        elemField.setNillable(false);
123
        typeDesc.addFieldDesc(elemField);
124
        elemField = new org.apache.axis.description.ElementDesc();
125
        elemField.setFieldName("value");
126
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Value"));
127
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
128
        elemField.setMinOccurs(0);
129
        elemField.setNillable(false);
130
        typeDesc.addFieldDesc(elemField);
131
    }
132
 
133
    /**
134
     * Return type metadata object
135
     */
136
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
137
        return typeDesc;
138
    }
139
 
140
    /**
141
     * Get Custom Serializer
142
     */
143
    public static org.apache.axis.encoding.Serializer getSerializer(
144
           java.lang.String mechType, 
145
           java.lang.Class _javaType,  
146
           javax.xml.namespace.QName _xmlType) {
147
        return 
148
          new  org.apache.axis.encoding.ser.BeanSerializer(
149
            _javaType, _xmlType, typeDesc);
150
    }
151
 
152
    /**
153
     * Get Custom Deserializer
154
     */
155
    public static org.apache.axis.encoding.Deserializer getDeserializer(
156
           java.lang.String mechType, 
157
           java.lang.Class _javaType,  
158
           javax.xml.namespace.QName _xmlType) {
159
        return 
160
          new  org.apache.axis.encoding.ser.BeanDeserializer(
161
            _javaType, _xmlType, typeDesc);
162
    }
163
 
164
}