Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CompletedHoldAtLocationDetail.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
public class CompletedHoldAtLocationDetail  implements java.io.Serializable {
11
    /* Identifies the branded location name, the hold at location
12
     * phone number and the address of the location. */
13
    private com.fedex.ship.stub.ContactAndAddress holdingLocation;
14
 
15
    /* Identifies the type of FedEx location. */
16
    private com.fedex.ship.stub.FedExLocationType holdingLocationType;
17
 
18
    public CompletedHoldAtLocationDetail() {
19
    }
20
 
21
    public CompletedHoldAtLocationDetail(
22
           com.fedex.ship.stub.ContactAndAddress holdingLocation,
23
           com.fedex.ship.stub.FedExLocationType holdingLocationType) {
24
           this.holdingLocation = holdingLocation;
25
           this.holdingLocationType = holdingLocationType;
26
    }
27
 
28
 
29
    /**
30
     * Gets the holdingLocation value for this CompletedHoldAtLocationDetail.
31
     * 
32
     * @return holdingLocation   * Identifies the branded location name, the hold at location
33
     * phone number and the address of the location.
34
     */
35
    public com.fedex.ship.stub.ContactAndAddress getHoldingLocation() {
36
        return holdingLocation;
37
    }
38
 
39
 
40
    /**
41
     * Sets the holdingLocation value for this CompletedHoldAtLocationDetail.
42
     * 
43
     * @param holdingLocation   * Identifies the branded location name, the hold at location
44
     * phone number and the address of the location.
45
     */
46
    public void setHoldingLocation(com.fedex.ship.stub.ContactAndAddress holdingLocation) {
47
        this.holdingLocation = holdingLocation;
48
    }
49
 
50
 
51
    /**
52
     * Gets the holdingLocationType value for this CompletedHoldAtLocationDetail.
53
     * 
54
     * @return holdingLocationType   * Identifies the type of FedEx location.
55
     */
56
    public com.fedex.ship.stub.FedExLocationType getHoldingLocationType() {
57
        return holdingLocationType;
58
    }
59
 
60
 
61
    /**
62
     * Sets the holdingLocationType value for this CompletedHoldAtLocationDetail.
63
     * 
64
     * @param holdingLocationType   * Identifies the type of FedEx location.
65
     */
66
    public void setHoldingLocationType(com.fedex.ship.stub.FedExLocationType holdingLocationType) {
67
        this.holdingLocationType = holdingLocationType;
68
    }
69
 
70
    private java.lang.Object __equalsCalc = null;
71
    public synchronized boolean equals(java.lang.Object obj) {
72
        if (!(obj instanceof CompletedHoldAtLocationDetail)) return false;
73
        CompletedHoldAtLocationDetail other = (CompletedHoldAtLocationDetail) 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.holdingLocation==null && other.getHoldingLocation()==null) || 
83
             (this.holdingLocation!=null &&
84
              this.holdingLocation.equals(other.getHoldingLocation()))) &&
85
            ((this.holdingLocationType==null && other.getHoldingLocationType()==null) || 
86
             (this.holdingLocationType!=null &&
87
              this.holdingLocationType.equals(other.getHoldingLocationType())));
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 (getHoldingLocation() != null) {
100
            _hashCode += getHoldingLocation().hashCode();
101
        }
102
        if (getHoldingLocationType() != null) {
103
            _hashCode += getHoldingLocationType().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(CompletedHoldAtLocationDetail.class, true);
112
 
113
    static {
114
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CompletedHoldAtLocationDetail"));
115
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
116
        elemField.setFieldName("holdingLocation");
117
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HoldingLocation"));
118
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactAndAddress"));
119
        elemField.setMinOccurs(0);
120
        elemField.setNillable(false);
121
        typeDesc.addFieldDesc(elemField);
122
        elemField = new org.apache.axis.description.ElementDesc();
123
        elemField.setFieldName("holdingLocationType");
124
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HoldingLocationType"));
125
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FedExLocationType"));
126
        elemField.setMinOccurs(0);
127
        elemField.setNillable(false);
128
        typeDesc.addFieldDesc(elemField);
129
    }
130
 
131
    /**
132
     * Return type metadata object
133
     */
134
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
135
        return typeDesc;
136
    }
137
 
138
    /**
139
     * Get Custom Serializer
140
     */
141
    public static org.apache.axis.encoding.Serializer getSerializer(
142
           java.lang.String mechType, 
143
           java.lang.Class _javaType,  
144
           javax.xml.namespace.QName _xmlType) {
145
        return 
146
          new  org.apache.axis.encoding.ser.BeanSerializer(
147
            _javaType, _xmlType, typeDesc);
148
    }
149
 
150
    /**
151
     * Get Custom Deserializer
152
     */
153
    public static org.apache.axis.encoding.Deserializer getDeserializer(
154
           java.lang.String mechType, 
155
           java.lang.Class _javaType,  
156
           javax.xml.namespace.QName _xmlType) {
157
        return 
158
          new  org.apache.axis.encoding.ser.BeanDeserializer(
159
            _javaType, _xmlType, typeDesc);
160
    }
161
 
162
}