Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CancelPendingShipmentRequest.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 Cancel
13
 * a Pending shipment.
14
 */
15
public class CancelPendingShipmentRequest  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
    private com.fedex.ship.stub.TrackingId trackingId;
34
 
35
    public CancelPendingShipmentRequest() {
36
    }
37
 
38
    public CancelPendingShipmentRequest(
39
           com.fedex.ship.stub.WebAuthenticationDetail webAuthenticationDetail,
40
           com.fedex.ship.stub.ClientDetail clientDetail,
41
           com.fedex.ship.stub.TransactionDetail transactionDetail,
42
           com.fedex.ship.stub.VersionId version,
43
           com.fedex.ship.stub.TrackingId trackingId) {
44
           this.webAuthenticationDetail = webAuthenticationDetail;
45
           this.clientDetail = clientDetail;
46
           this.transactionDetail = transactionDetail;
47
           this.version = version;
48
           this.trackingId = trackingId;
49
    }
50
 
51
 
52
    /**
53
     * Gets the webAuthenticationDetail value for this CancelPendingShipmentRequest.
54
     * 
55
     * @return webAuthenticationDetail   * Descriptive data to be used in authentication of the sender's
56
     * identity (and right to use FedEx web services).
57
     */
58
    public com.fedex.ship.stub.WebAuthenticationDetail getWebAuthenticationDetail() {
59
        return webAuthenticationDetail;
60
    }
61
 
62
 
63
    /**
64
     * Sets the webAuthenticationDetail value for this CancelPendingShipmentRequest.
65
     * 
66
     * @param webAuthenticationDetail   * Descriptive data to be used in authentication of the sender's
67
     * identity (and right to use FedEx web services).
68
     */
69
    public void setWebAuthenticationDetail(com.fedex.ship.stub.WebAuthenticationDetail webAuthenticationDetail) {
70
        this.webAuthenticationDetail = webAuthenticationDetail;
71
    }
72
 
73
 
74
    /**
75
     * Gets the clientDetail value for this CancelPendingShipmentRequest.
76
     * 
77
     * @return clientDetail   * Descriptive data identifying the client submitting the transaction.
78
     */
79
    public com.fedex.ship.stub.ClientDetail getClientDetail() {
80
        return clientDetail;
81
    }
82
 
83
 
84
    /**
85
     * Sets the clientDetail value for this CancelPendingShipmentRequest.
86
     * 
87
     * @param clientDetail   * Descriptive data identifying the client submitting the transaction.
88
     */
89
    public void setClientDetail(com.fedex.ship.stub.ClientDetail clientDetail) {
90
        this.clientDetail = clientDetail;
91
    }
92
 
93
 
94
    /**
95
     * Gets the transactionDetail value for this CancelPendingShipmentRequest.
96
     * 
97
     * @return transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
98
     * from the request is echoed back to the caller in the corresponding
99
     * reply.
100
     */
101
    public com.fedex.ship.stub.TransactionDetail getTransactionDetail() {
102
        return transactionDetail;
103
    }
104
 
105
 
106
    /**
107
     * Sets the transactionDetail value for this CancelPendingShipmentRequest.
108
     * 
109
     * @param 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 void setTransactionDetail(com.fedex.ship.stub.TransactionDetail transactionDetail) {
114
        this.transactionDetail = transactionDetail;
115
    }
116
 
117
 
118
    /**
119
     * Gets the version value for this CancelPendingShipmentRequest.
120
     * 
121
     * @return version   * Identifies the version/level of a service operation expected
122
     * by a caller (in each request) and performed by the callee (in each
123
     * reply).
124
     */
125
    public com.fedex.ship.stub.VersionId getVersion() {
126
        return version;
127
    }
128
 
129
 
130
    /**
131
     * Sets the version value for this CancelPendingShipmentRequest.
132
     * 
133
     * @param 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 void setVersion(com.fedex.ship.stub.VersionId version) {
138
        this.version = version;
139
    }
140
 
141
 
142
    /**
143
     * Gets the trackingId value for this CancelPendingShipmentRequest.
144
     * 
145
     * @return trackingId
146
     */
147
    public com.fedex.ship.stub.TrackingId getTrackingId() {
148
        return trackingId;
149
    }
150
 
151
 
152
    /**
153
     * Sets the trackingId value for this CancelPendingShipmentRequest.
154
     * 
155
     * @param trackingId
156
     */
157
    public void setTrackingId(com.fedex.ship.stub.TrackingId trackingId) {
158
        this.trackingId = trackingId;
159
    }
160
 
161
    private java.lang.Object __equalsCalc = null;
162
    public synchronized boolean equals(java.lang.Object obj) {
163
        if (!(obj instanceof CancelPendingShipmentRequest)) return false;
164
        CancelPendingShipmentRequest other = (CancelPendingShipmentRequest) obj;
165
        if (obj == null) return false;
166
        if (this == obj) return true;
167
        if (__equalsCalc != null) {
168
            return (__equalsCalc == obj);
169
        }
170
        __equalsCalc = obj;
171
        boolean _equals;
172
        _equals = true && 
173
            ((this.webAuthenticationDetail==null && other.getWebAuthenticationDetail()==null) || 
174
             (this.webAuthenticationDetail!=null &&
175
              this.webAuthenticationDetail.equals(other.getWebAuthenticationDetail()))) &&
176
            ((this.clientDetail==null && other.getClientDetail()==null) || 
177
             (this.clientDetail!=null &&
178
              this.clientDetail.equals(other.getClientDetail()))) &&
179
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
180
             (this.transactionDetail!=null &&
181
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
182
            ((this.version==null && other.getVersion()==null) || 
183
             (this.version!=null &&
184
              this.version.equals(other.getVersion()))) &&
185
            ((this.trackingId==null && other.getTrackingId()==null) || 
186
             (this.trackingId!=null &&
187
              this.trackingId.equals(other.getTrackingId())));
188
        __equalsCalc = null;
189
        return _equals;
190
    }
191
 
192
    private boolean __hashCodeCalc = false;
193
    public synchronized int hashCode() {
194
        if (__hashCodeCalc) {
195
            return 0;
196
        }
197
        __hashCodeCalc = true;
198
        int _hashCode = 1;
199
        if (getWebAuthenticationDetail() != null) {
200
            _hashCode += getWebAuthenticationDetail().hashCode();
201
        }
202
        if (getClientDetail() != null) {
203
            _hashCode += getClientDetail().hashCode();
204
        }
205
        if (getTransactionDetail() != null) {
206
            _hashCode += getTransactionDetail().hashCode();
207
        }
208
        if (getVersion() != null) {
209
            _hashCode += getVersion().hashCode();
210
        }
211
        if (getTrackingId() != null) {
212
            _hashCode += getTrackingId().hashCode();
213
        }
214
        __hashCodeCalc = false;
215
        return _hashCode;
216
    }
217
 
218
    // Type metadata
219
    private static org.apache.axis.description.TypeDesc typeDesc =
220
        new org.apache.axis.description.TypeDesc(CancelPendingShipmentRequest.class, true);
221
 
222
    static {
223
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CancelPendingShipmentRequest"));
224
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
225
        elemField.setFieldName("webAuthenticationDetail");
226
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
227
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
228
        elemField.setNillable(false);
229
        typeDesc.addFieldDesc(elemField);
230
        elemField = new org.apache.axis.description.ElementDesc();
231
        elemField.setFieldName("clientDetail");
232
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
233
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
234
        elemField.setNillable(false);
235
        typeDesc.addFieldDesc(elemField);
236
        elemField = new org.apache.axis.description.ElementDesc();
237
        elemField.setFieldName("transactionDetail");
238
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
239
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
240
        elemField.setMinOccurs(0);
241
        elemField.setNillable(false);
242
        typeDesc.addFieldDesc(elemField);
243
        elemField = new org.apache.axis.description.ElementDesc();
244
        elemField.setFieldName("version");
245
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Version"));
246
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VersionId"));
247
        elemField.setNillable(false);
248
        typeDesc.addFieldDesc(elemField);
249
        elemField = new org.apache.axis.description.ElementDesc();
250
        elemField.setFieldName("trackingId");
251
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
252
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
253
        elemField.setMinOccurs(0);
254
        elemField.setNillable(false);
255
        typeDesc.addFieldDesc(elemField);
256
    }
257
 
258
    /**
259
     * Return type metadata object
260
     */
261
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
262
        return typeDesc;
263
    }
264
 
265
    /**
266
     * Get Custom Serializer
267
     */
268
    public static org.apache.axis.encoding.Serializer getSerializer(
269
           java.lang.String mechType, 
270
           java.lang.Class _javaType,  
271
           javax.xml.namespace.QName _xmlType) {
272
        return 
273
          new  org.apache.axis.encoding.ser.BeanSerializer(
274
            _javaType, _xmlType, typeDesc);
275
    }
276
 
277
    /**
278
     * Get Custom Deserializer
279
     */
280
    public static org.apache.axis.encoding.Deserializer getDeserializer(
281
           java.lang.String mechType, 
282
           java.lang.Class _javaType,  
283
           javax.xml.namespace.QName _xmlType) {
284
        return 
285
          new  org.apache.axis.encoding.ser.BeanDeserializer(
286
            _javaType, _xmlType, typeDesc);
287
    }
288
 
289
}