Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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