Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ProcessShipmentRequest.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 ship a
13
 * package.
14
 */
15
public class ProcessShipmentRequest  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
    /* Descriptive data about the shipment being sent by the requestor. */
34
    private com.fedex.ship.stub.RequestedShipment requestedShipment;
35
 
36
    public ProcessShipmentRequest() {
37
    }
38
 
39
    public ProcessShipmentRequest(
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 ProcessShipmentRequest.
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 ProcessShipmentRequest.
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 ProcessShipmentRequest.
77
     * 
78
     * @return clientDetail   * Descriptive data identifying the client submitting the transaction.
79
     */
80
    public com.fedex.ship.stub.ClientDetail getClientDetail() {
81
        return clientDetail;
82
    }
83
 
84
 
85
    /**
86
     * Sets the clientDetail value for this ProcessShipmentRequest.
87
     * 
88
     * @param clientDetail   * Descriptive data identifying the client submitting the transaction.
89
     */
90
    public void setClientDetail(com.fedex.ship.stub.ClientDetail clientDetail) {
91
        this.clientDetail = clientDetail;
92
    }
93
 
94
 
95
    /**
96
     * Gets the transactionDetail value for this ProcessShipmentRequest.
97
     * 
98
     * @return transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
99
     * from the request is echoed back to the caller in the corresponding
100
     * reply.
101
     */
102
    public com.fedex.ship.stub.TransactionDetail getTransactionDetail() {
103
        return transactionDetail;
104
    }
105
 
106
 
107
    /**
108
     * Sets the transactionDetail value for this ProcessShipmentRequest.
109
     * 
110
     * @param transactionDetail   * Descriptive data for this customer transaction. The TransactionDetail
111
     * from the request is echoed back to the caller in the corresponding
112
     * reply.
113
     */
114
    public void setTransactionDetail(com.fedex.ship.stub.TransactionDetail transactionDetail) {
115
        this.transactionDetail = transactionDetail;
116
    }
117
 
118
 
119
    /**
120
     * Gets the version value for this ProcessShipmentRequest.
121
     * 
122
     * @return version   * Identifies the version/level of a service operation expected
123
     * by a caller (in each request) and performed by the callee (in each
124
     * reply).
125
     */
126
    public com.fedex.ship.stub.VersionId getVersion() {
127
        return version;
128
    }
129
 
130
 
131
    /**
132
     * Sets the version value for this ProcessShipmentRequest.
133
     * 
134
     * @param version   * Identifies the version/level of a service operation expected
135
     * by a caller (in each request) and performed by the callee (in each
136
     * reply).
137
     */
138
    public void setVersion(com.fedex.ship.stub.VersionId version) {
139
        this.version = version;
140
    }
141
 
142
 
143
    /**
144
     * Gets the requestedShipment value for this ProcessShipmentRequest.
145
     * 
146
     * @return requestedShipment   * Descriptive data about the shipment being sent by the requestor.
147
     */
148
    public com.fedex.ship.stub.RequestedShipment getRequestedShipment() {
149
        return requestedShipment;
150
    }
151
 
152
 
153
    /**
154
     * Sets the requestedShipment value for this ProcessShipmentRequest.
155
     * 
156
     * @param requestedShipment   * Descriptive data about the shipment being sent by the requestor.
157
     */
158
    public void setRequestedShipment(com.fedex.ship.stub.RequestedShipment requestedShipment) {
159
        this.requestedShipment = requestedShipment;
160
    }
161
 
162
    private java.lang.Object __equalsCalc = null;
163
    public synchronized boolean equals(java.lang.Object obj) {
164
        if (!(obj instanceof ProcessShipmentRequest)) return false;
165
        ProcessShipmentRequest other = (ProcessShipmentRequest) obj;
166
        if (obj == null) return false;
167
        if (this == obj) return true;
168
        if (__equalsCalc != null) {
169
            return (__equalsCalc == obj);
170
        }
171
        __equalsCalc = obj;
172
        boolean _equals;
173
        _equals = true && 
174
            ((this.webAuthenticationDetail==null && other.getWebAuthenticationDetail()==null) || 
175
             (this.webAuthenticationDetail!=null &&
176
              this.webAuthenticationDetail.equals(other.getWebAuthenticationDetail()))) &&
177
            ((this.clientDetail==null && other.getClientDetail()==null) || 
178
             (this.clientDetail!=null &&
179
              this.clientDetail.equals(other.getClientDetail()))) &&
180
            ((this.transactionDetail==null && other.getTransactionDetail()==null) || 
181
             (this.transactionDetail!=null &&
182
              this.transactionDetail.equals(other.getTransactionDetail()))) &&
183
            ((this.version==null && other.getVersion()==null) || 
184
             (this.version!=null &&
185
              this.version.equals(other.getVersion()))) &&
186
            ((this.requestedShipment==null && other.getRequestedShipment()==null) || 
187
             (this.requestedShipment!=null &&
188
              this.requestedShipment.equals(other.getRequestedShipment())));
189
        __equalsCalc = null;
190
        return _equals;
191
    }
192
 
193
    private boolean __hashCodeCalc = false;
194
    public synchronized int hashCode() {
195
        if (__hashCodeCalc) {
196
            return 0;
197
        }
198
        __hashCodeCalc = true;
199
        int _hashCode = 1;
200
        if (getWebAuthenticationDetail() != null) {
201
            _hashCode += getWebAuthenticationDetail().hashCode();
202
        }
203
        if (getClientDetail() != null) {
204
            _hashCode += getClientDetail().hashCode();
205
        }
206
        if (getTransactionDetail() != null) {
207
            _hashCode += getTransactionDetail().hashCode();
208
        }
209
        if (getVersion() != null) {
210
            _hashCode += getVersion().hashCode();
211
        }
212
        if (getRequestedShipment() != null) {
213
            _hashCode += getRequestedShipment().hashCode();
214
        }
215
        __hashCodeCalc = false;
216
        return _hashCode;
217
    }
218
 
219
    // Type metadata
220
    private static org.apache.axis.description.TypeDesc typeDesc =
221
        new org.apache.axis.description.TypeDesc(ProcessShipmentRequest.class, true);
222
 
223
    static {
224
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ProcessShipmentRequest"));
225
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
226
        elemField.setFieldName("webAuthenticationDetail");
227
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
228
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "WebAuthenticationDetail"));
229
        elemField.setNillable(false);
230
        typeDesc.addFieldDesc(elemField);
231
        elemField = new org.apache.axis.description.ElementDesc();
232
        elemField.setFieldName("clientDetail");
233
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
234
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDetail"));
235
        elemField.setNillable(false);
236
        typeDesc.addFieldDesc(elemField);
237
        elemField = new org.apache.axis.description.ElementDesc();
238
        elemField.setFieldName("transactionDetail");
239
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
240
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TransactionDetail"));
241
        elemField.setMinOccurs(0);
242
        elemField.setNillable(false);
243
        typeDesc.addFieldDesc(elemField);
244
        elemField = new org.apache.axis.description.ElementDesc();
245
        elemField.setFieldName("version");
246
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Version"));
247
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VersionId"));
248
        elemField.setNillable(false);
249
        typeDesc.addFieldDesc(elemField);
250
        elemField = new org.apache.axis.description.ElementDesc();
251
        elemField.setFieldName("requestedShipment");
252
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestedShipment"));
253
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestedShipment"));
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
}