Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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