Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * PickupDetail.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
 * This class describes the pickup characteristics of a shipment (e.g.
13
 * for use in a tag request).
14
 */
15
public class PickupDetail  implements java.io.Serializable {
16
    private java.util.Calendar readyDateTime;
17
 
18
    private java.util.Calendar latestPickupDateTime;
19
 
20
    private java.lang.String courierInstructions;
21
 
22
    /* Identifies the type of Pickup request */
23
    private com.fedex.ship.stub.PickupRequestType requestType;
24
 
25
    /* Identifies the type of source for Pickup request */
26
    private com.fedex.ship.stub.PickupRequestSourceType requestSource;
27
 
28
    public PickupDetail() {
29
    }
30
 
31
    public PickupDetail(
32
           java.util.Calendar readyDateTime,
33
           java.util.Calendar latestPickupDateTime,
34
           java.lang.String courierInstructions,
35
           com.fedex.ship.stub.PickupRequestType requestType,
36
           com.fedex.ship.stub.PickupRequestSourceType requestSource) {
37
           this.readyDateTime = readyDateTime;
38
           this.latestPickupDateTime = latestPickupDateTime;
39
           this.courierInstructions = courierInstructions;
40
           this.requestType = requestType;
41
           this.requestSource = requestSource;
42
    }
43
 
44
 
45
    /**
46
     * Gets the readyDateTime value for this PickupDetail.
47
     * 
48
     * @return readyDateTime
49
     */
50
    public java.util.Calendar getReadyDateTime() {
51
        return readyDateTime;
52
    }
53
 
54
 
55
    /**
56
     * Sets the readyDateTime value for this PickupDetail.
57
     * 
58
     * @param readyDateTime
59
     */
60
    public void setReadyDateTime(java.util.Calendar readyDateTime) {
61
        this.readyDateTime = readyDateTime;
62
    }
63
 
64
 
65
    /**
66
     * Gets the latestPickupDateTime value for this PickupDetail.
67
     * 
68
     * @return latestPickupDateTime
69
     */
70
    public java.util.Calendar getLatestPickupDateTime() {
71
        return latestPickupDateTime;
72
    }
73
 
74
 
75
    /**
76
     * Sets the latestPickupDateTime value for this PickupDetail.
77
     * 
78
     * @param latestPickupDateTime
79
     */
80
    public void setLatestPickupDateTime(java.util.Calendar latestPickupDateTime) {
81
        this.latestPickupDateTime = latestPickupDateTime;
82
    }
83
 
84
 
85
    /**
86
     * Gets the courierInstructions value for this PickupDetail.
87
     * 
88
     * @return courierInstructions
89
     */
90
    public java.lang.String getCourierInstructions() {
91
        return courierInstructions;
92
    }
93
 
94
 
95
    /**
96
     * Sets the courierInstructions value for this PickupDetail.
97
     * 
98
     * @param courierInstructions
99
     */
100
    public void setCourierInstructions(java.lang.String courierInstructions) {
101
        this.courierInstructions = courierInstructions;
102
    }
103
 
104
 
105
    /**
106
     * Gets the requestType value for this PickupDetail.
107
     * 
108
     * @return requestType   * Identifies the type of Pickup request
109
     */
110
    public com.fedex.ship.stub.PickupRequestType getRequestType() {
111
        return requestType;
112
    }
113
 
114
 
115
    /**
116
     * Sets the requestType value for this PickupDetail.
117
     * 
118
     * @param requestType   * Identifies the type of Pickup request
119
     */
120
    public void setRequestType(com.fedex.ship.stub.PickupRequestType requestType) {
121
        this.requestType = requestType;
122
    }
123
 
124
 
125
    /**
126
     * Gets the requestSource value for this PickupDetail.
127
     * 
128
     * @return requestSource   * Identifies the type of source for Pickup request
129
     */
130
    public com.fedex.ship.stub.PickupRequestSourceType getRequestSource() {
131
        return requestSource;
132
    }
133
 
134
 
135
    /**
136
     * Sets the requestSource value for this PickupDetail.
137
     * 
138
     * @param requestSource   * Identifies the type of source for Pickup request
139
     */
140
    public void setRequestSource(com.fedex.ship.stub.PickupRequestSourceType requestSource) {
141
        this.requestSource = requestSource;
142
    }
143
 
144
    private java.lang.Object __equalsCalc = null;
145
    public synchronized boolean equals(java.lang.Object obj) {
146
        if (!(obj instanceof PickupDetail)) return false;
147
        PickupDetail other = (PickupDetail) obj;
148
        if (obj == null) return false;
149
        if (this == obj) return true;
150
        if (__equalsCalc != null) {
151
            return (__equalsCalc == obj);
152
        }
153
        __equalsCalc = obj;
154
        boolean _equals;
155
        _equals = true && 
156
            ((this.readyDateTime==null && other.getReadyDateTime()==null) || 
157
             (this.readyDateTime!=null &&
158
              this.readyDateTime.equals(other.getReadyDateTime()))) &&
159
            ((this.latestPickupDateTime==null && other.getLatestPickupDateTime()==null) || 
160
             (this.latestPickupDateTime!=null &&
161
              this.latestPickupDateTime.equals(other.getLatestPickupDateTime()))) &&
162
            ((this.courierInstructions==null && other.getCourierInstructions()==null) || 
163
             (this.courierInstructions!=null &&
164
              this.courierInstructions.equals(other.getCourierInstructions()))) &&
165
            ((this.requestType==null && other.getRequestType()==null) || 
166
             (this.requestType!=null &&
167
              this.requestType.equals(other.getRequestType()))) &&
168
            ((this.requestSource==null && other.getRequestSource()==null) || 
169
             (this.requestSource!=null &&
170
              this.requestSource.equals(other.getRequestSource())));
171
        __equalsCalc = null;
172
        return _equals;
173
    }
174
 
175
    private boolean __hashCodeCalc = false;
176
    public synchronized int hashCode() {
177
        if (__hashCodeCalc) {
178
            return 0;
179
        }
180
        __hashCodeCalc = true;
181
        int _hashCode = 1;
182
        if (getReadyDateTime() != null) {
183
            _hashCode += getReadyDateTime().hashCode();
184
        }
185
        if (getLatestPickupDateTime() != null) {
186
            _hashCode += getLatestPickupDateTime().hashCode();
187
        }
188
        if (getCourierInstructions() != null) {
189
            _hashCode += getCourierInstructions().hashCode();
190
        }
191
        if (getRequestType() != null) {
192
            _hashCode += getRequestType().hashCode();
193
        }
194
        if (getRequestSource() != null) {
195
            _hashCode += getRequestSource().hashCode();
196
        }
197
        __hashCodeCalc = false;
198
        return _hashCode;
199
    }
200
 
201
    // Type metadata
202
    private static org.apache.axis.description.TypeDesc typeDesc =
203
        new org.apache.axis.description.TypeDesc(PickupDetail.class, true);
204
 
205
    static {
206
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PickupDetail"));
207
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("readyDateTime");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReadyDateTime"));
210
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
211
        elemField.setMinOccurs(0);
212
        elemField.setNillable(false);
213
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("latestPickupDateTime");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LatestPickupDateTime"));
217
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
218
        elemField.setMinOccurs(0);
219
        elemField.setNillable(false);
220
        typeDesc.addFieldDesc(elemField);
221
        elemField = new org.apache.axis.description.ElementDesc();
222
        elemField.setFieldName("courierInstructions");
223
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CourierInstructions"));
224
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
225
        elemField.setMinOccurs(0);
226
        elemField.setNillable(false);
227
        typeDesc.addFieldDesc(elemField);
228
        elemField = new org.apache.axis.description.ElementDesc();
229
        elemField.setFieldName("requestType");
230
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestType"));
231
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PickupRequestType"));
232
        elemField.setMinOccurs(0);
233
        elemField.setNillable(false);
234
        typeDesc.addFieldDesc(elemField);
235
        elemField = new org.apache.axis.description.ElementDesc();
236
        elemField.setFieldName("requestSource");
237
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestSource"));
238
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PickupRequestSourceType"));
239
        elemField.setMinOccurs(0);
240
        elemField.setNillable(false);
241
        typeDesc.addFieldDesc(elemField);
242
    }
243
 
244
    /**
245
     * Return type metadata object
246
     */
247
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
248
        return typeDesc;
249
    }
250
 
251
    /**
252
     * Get Custom Serializer
253
     */
254
    public static org.apache.axis.encoding.Serializer getSerializer(
255
           java.lang.String mechType, 
256
           java.lang.Class _javaType,  
257
           javax.xml.namespace.QName _xmlType) {
258
        return 
259
          new  org.apache.axis.encoding.ser.BeanSerializer(
260
            _javaType, _xmlType, typeDesc);
261
    }
262
 
263
    /**
264
     * Get Custom Deserializer
265
     */
266
    public static org.apache.axis.encoding.Deserializer getDeserializer(
267
           java.lang.String mechType, 
268
           java.lang.Class _javaType,  
269
           javax.xml.namespace.QName _xmlType) {
270
        return 
271
          new  org.apache.axis.encoding.ser.BeanDeserializer(
272
            _javaType, _xmlType, typeDesc);
273
    }
274
 
275
}