Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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