Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * DeleteShipmentRequest.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 sent to FedEx by a customer in order to delete
13
 * a package.
14
 */
15
public class DeleteShipmentRequest  implements java.io.Serializable {
16
    /* Descriptive data to be used in authentication of the sender's
17
     * identity (and right to use FedEx web services). */
18
    private com.fedex.ship.stub.WebAuthenticationDetail webAuthenticationDetail;
19
 
20
    /* Descriptive data identifying the client submitting the transaction. */
21
    private com.fedex.ship.stub.ClientDetail clientDetail;
22
 
23
    /* Descriptive data for this customer transaction. The TransactionDetail
24
     * from the request is echoed back to the caller in the corresponding
25
     * reply. */
26
    private com.fedex.ship.stub.TransactionDetail transactionDetail;
27
 
28
    /* Identifies the version/level of a service operation expected
29
     * by a caller (in each request) and performed by the callee (in each
30
     * reply). */
31
    private com.fedex.ship.stub.VersionId version;
32
 
33
    /* The timestamp of the shipment request. */
34
    private java.util.Calendar shipTimestamp;
35
 
36
    /* Identifies the FedEx tracking number of the package being cancelled. */
37
    private com.fedex.ship.stub.TrackingId trackingId;
38
 
39
    /* Determines the type of deletion to be performed in relation
40
     * to package level vs shipment level. */
41
    private com.fedex.ship.stub.DeletionControlType deletionControl;
42
 
43
    public DeleteShipmentRequest() {
44
    }
45
 
46
    public DeleteShipmentRequest(
47
           com.fedex.ship.stub.WebAuthenticationDetail webAuthenticationDetail,
48
           com.fedex.ship.stub.ClientDetail clientDetail,
49
           com.fedex.ship.stub.TransactionDetail transactionDetail,
50
           com.fedex.ship.stub.VersionId version,
51
           java.util.Calendar shipTimestamp,
52
           com.fedex.ship.stub.TrackingId trackingId,
53
           com.fedex.ship.stub.DeletionControlType deletionControl) {
54
           this.webAuthenticationDetail = webAuthenticationDetail;
55
           this.clientDetail = clientDetail;
56
           this.transactionDetail = transactionDetail;
57
           this.version = version;
58
           this.shipTimestamp = shipTimestamp;
59
           this.trackingId = trackingId;
60
           this.deletionControl = deletionControl;
61
    }
62
 
63
 
64
    /**
65
     * Gets the webAuthenticationDetail value for this DeleteShipmentRequest.
66
     * 
67
     * @return webAuthenticationDetail   * Descriptive data to be used in authentication of the sender's
68
     * identity (and right to use FedEx web services).
69
     */
70
    public com.fedex.ship.stub.WebAuthenticationDetail getWebAuthenticationDetail() {
71
        return webAuthenticationDetail;
72
    }
73
 
74
 
75
    /**
76
     * Sets the webAuthenticationDetail value for this DeleteShipmentRequest.
77
     * 
78
     * @param webAuthenticationDetail   * Descriptive data to be used in authentication of the sender's
79
     * identity (and right to use FedEx web services).
80
     */
81
    public void setWebAuthenticationDetail(com.fedex.ship.stub.WebAuthenticationDetail webAuthenticationDetail) {
82
        this.webAuthenticationDetail = webAuthenticationDetail;
83
    }
84
 
85
 
86
    /**
87
     * Gets the clientDetail value for this DeleteShipmentRequest.
88
     * 
89
     * @return clientDetail   * Descriptive data identifying the client submitting the transaction.
90
     */
91
    public com.fedex.ship.stub.ClientDetail getClientDetail() {
92
        return clientDetail;
93
    }
94
 
95
 
96
    /**
97
     * Sets the clientDetail value for this DeleteShipmentRequest.
98
     * 
99
     * @param clientDetail   * Descriptive data identifying the client submitting the transaction.
100
     */
101
    public void setClientDetail(com.fedex.ship.stub.ClientDetail clientDetail) {
102
        this.clientDetail = clientDetail;
103
    }
104
 
105
 
106
    /**
107
     * Gets the transactionDetail value for this DeleteShipmentRequest.
108
     * 
109
     * @return transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
110
     * from the request is echoed back to the caller in the corresponding
111
     * reply.
112
     */
113
    public com.fedex.ship.stub.TransactionDetail getTransactionDetail() {
114
        return transactionDetail;
115
    }
116
 
117
 
118
    /**
119
     * Sets the transactionDetail value for this DeleteShipmentRequest.
120
     * 
121
     * @param transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
122
     * from the request is echoed back to the caller in the corresponding
123
     * reply.
124
     */
125
    public void setTransactionDetail(com.fedex.ship.stub.TransactionDetail transactionDetail) {
126
        this.transactionDetail = transactionDetail;
127
    }
128
 
129
 
130
    /**
131
     * Gets the version value for this DeleteShipmentRequest.
132
     * 
133
     * @return version   * Identifies the version/level of a service operation expected
134
     * by a caller (in each request) and performed by the callee (in each
135
     * reply).
136
     */
137
    public com.fedex.ship.stub.VersionId getVersion() {
138
        return version;
139
    }
140
 
141
 
142
    /**
143
     * Sets the version value for this DeleteShipmentRequest.
144
     * 
145
     * @param version   * Identifies the version/level of a service operation expected
146
     * by a caller (in each request) and performed by the callee (in each
147
     * reply).
148
     */
149
    public void setVersion(com.fedex.ship.stub.VersionId version) {
150
        this.version = version;
151
    }
152
 
153
 
154
    /**
155
     * Gets the shipTimestamp value for this DeleteShipmentRequest.
156
     * 
157
     * @return shipTimestamp   * The timestamp of the shipment request.
158
     */
159
    public java.util.Calendar getShipTimestamp() {
160
        return shipTimestamp;
161
    }
162
 
163
 
164
    /**
165
     * Sets the shipTimestamp value for this DeleteShipmentRequest.
166
     * 
167
     * @param shipTimestamp   * The timestamp of the shipment request.
168
     */
169
    public void setShipTimestamp(java.util.Calendar shipTimestamp) {
170
        this.shipTimestamp = shipTimestamp;
171
    }
172
 
173
 
174
    /**
175
     * Gets the trackingId value for this DeleteShipmentRequest.
176
     * 
177
     * @return trackingId   * Identifies the FedEx tracking number of the package being cancelled.
178
     */
179
    public com.fedex.ship.stub.TrackingId getTrackingId() {
180
        return trackingId;
181
    }
182
 
183
 
184
    /**
185
     * Sets the trackingId value for this DeleteShipmentRequest.
186
     * 
187
     * @param trackingId   * Identifies the FedEx tracking number of the package being cancelled.
188
     */
189
    public void setTrackingId(com.fedex.ship.stub.TrackingId trackingId) {
190
        this.trackingId = trackingId;
191
    }
192
 
193
 
194
    /**
195
     * Gets the deletionControl value for this DeleteShipmentRequest.
196
     * 
197
     * @return deletionControl   * Determines the type of deletion to be performed in relation
198
     * to package level vs shipment level.
199
     */
200
    public com.fedex.ship.stub.DeletionControlType getDeletionControl() {
201
        return deletionControl;
202
    }
203
 
204
 
205
    /**
206
     * Sets the deletionControl value for this DeleteShipmentRequest.
207
     * 
208
     * @param deletionControl   * Determines the type of deletion to be performed in relation
209
     * to package level vs shipment level.
210
     */
211
    public void setDeletionControl(com.fedex.ship.stub.DeletionControlType deletionControl) {
212
        this.deletionControl = deletionControl;
213
    }
214
 
215
    private java.lang.Object __equalsCalc = null;
216
    public synchronized boolean equals(java.lang.Object obj) {
217
        if (!(obj instanceof DeleteShipmentRequest)) return false;
218
        DeleteShipmentRequest other = (DeleteShipmentRequest) obj;
219
        if (obj == null) return false;
220
        if (this == obj) return true;
221
        if (__equalsCalc != null) {
222
            return (__equalsCalc == obj);
223
        }
224
        __equalsCalc = obj;
225
        boolean _equals;
226
        _equals = true && 
227
            ((this.webAuthenticationDetail==null && other.getWebAuthenticationDetail()==null) || 
228
             (this.webAuthenticationDetail!=null &&
229
              this.webAuthenticationDetail.equals(other.getWebAuthenticationDetail()))) &&
230
            ((this.clientDetail==null && other.getClientDetail()==null) || 
231
             (this.clientDetail!=null &&
232
              this.clientDetail.equals(other.getClientDetail()))) &&
233
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
234
             (this.transactionDetail!=null &&
235
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
236
            ((this.version==null && other.getVersion()==null) || 
237
             (this.version!=null &&
238
              this.version.equals(other.getVersion()))) &&
239
            ((this.shipTimestamp==null && other.getShipTimestamp()==null) || 
240
             (this.shipTimestamp!=null &&
241
              this.shipTimestamp.equals(other.getShipTimestamp()))) &&
242
            ((this.trackingId==null && other.getTrackingId()==null) || 
243
             (this.trackingId!=null &&
244
              this.trackingId.equals(other.getTrackingId()))) &&
245
            ((this.deletionControl==null && other.getDeletionControl()==null) || 
246
             (this.deletionControl!=null &&
247
              this.deletionControl.equals(other.getDeletionControl())));
248
        __equalsCalc = null;
249
        return _equals;
250
    }
251
 
252
    private boolean __hashCodeCalc = false;
253
    public synchronized int hashCode() {
254
        if (__hashCodeCalc) {
255
            return 0;
256
        }
257
        __hashCodeCalc = true;
258
        int _hashCode = 1;
259
        if (getWebAuthenticationDetail() != null) {
260
            _hashCode += getWebAuthenticationDetail().hashCode();
261
        }
262
        if (getClientDetail() != null) {
263
            _hashCode += getClientDetail().hashCode();
264
        }
265
        if (getTransactionDetail() != null) {
266
            _hashCode += getTransactionDetail().hashCode();
267
        }
268
        if (getVersion() != null) {
269
            _hashCode += getVersion().hashCode();
270
        }
271
        if (getShipTimestamp() != null) {
272
            _hashCode += getShipTimestamp().hashCode();
273
        }
274
        if (getTrackingId() != null) {
275
            _hashCode += getTrackingId().hashCode();
276
        }
277
        if (getDeletionControl() != null) {
278
            _hashCode += getDeletionControl().hashCode();
279
        }
280
        __hashCodeCalc = false;
281
        return _hashCode;
282
    }
283
 
284
    // Type metadata
285
    private static org.apache.axis.description.TypeDesc typeDesc =
286
        new org.apache.axis.description.TypeDesc(DeleteShipmentRequest.class, true);
287
 
288
    static {
289
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeleteShipmentRequest"));
290
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
291
        elemField.setFieldName("webAuthenticationDetail");
292
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
293
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
294
        elemField.setNillable(false);
295
        typeDesc.addFieldDesc(elemField);
296
        elemField = new org.apache.axis.description.ElementDesc();
297
        elemField.setFieldName("clientDetail");
298
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
299
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
300
        elemField.setNillable(false);
301
        typeDesc.addFieldDesc(elemField);
302
        elemField = new org.apache.axis.description.ElementDesc();
303
        elemField.setFieldName("transactionDetail");
304
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
305
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
306
        elemField.setMinOccurs(0);
307
        elemField.setNillable(false);
308
        typeDesc.addFieldDesc(elemField);
309
        elemField = new org.apache.axis.description.ElementDesc();
310
        elemField.setFieldName("version");
311
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Version"));
312
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VersionId"));
313
        elemField.setNillable(false);
314
        typeDesc.addFieldDesc(elemField);
315
        elemField = new org.apache.axis.description.ElementDesc();
316
        elemField.setFieldName("shipTimestamp");
317
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipTimestamp"));
318
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
319
        elemField.setMinOccurs(0);
320
        elemField.setNillable(false);
321
        typeDesc.addFieldDesc(elemField);
322
        elemField = new org.apache.axis.description.ElementDesc();
323
        elemField.setFieldName("trackingId");
324
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
325
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
326
        elemField.setMinOccurs(0);
327
        elemField.setNillable(false);
328
        typeDesc.addFieldDesc(elemField);
329
        elemField = new org.apache.axis.description.ElementDesc();
330
        elemField.setFieldName("deletionControl");
331
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeletionControl"));
332
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeletionControlType"));
333
        elemField.setNillable(false);
334
        typeDesc.addFieldDesc(elemField);
335
    }
336
 
337
    /**
338
     * Return type metadata object
339
     */
340
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
341
        return typeDesc;
342
    }
343
 
344
    /**
345
     * Get Custom Serializer
346
     */
347
    public static org.apache.axis.encoding.Serializer getSerializer(
348
           java.lang.String mechType, 
349
           java.lang.Class _javaType,  
350
           javax.xml.namespace.QName _xmlType) {
351
        return 
352
          new  org.apache.axis.encoding.ser.BeanSerializer(
353
            _javaType, _xmlType, typeDesc);
354
    }
355
 
356
    /**
357
     * Get Custom Deserializer
358
     */
359
    public static org.apache.axis.encoding.Deserializer getDeserializer(
360
           java.lang.String mechType, 
361
           java.lang.Class _javaType,  
362
           javax.xml.namespace.QName _xmlType) {
363
        return 
364
          new  org.apache.axis.encoding.ser.BeanDeserializer(
365
            _javaType, _xmlType, typeDesc);
366
    }
367
 
368
}