Subversion Repositories SmartDukaan

Rev

Rev 22598 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * ProcessedShipment.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.aramex.stub;
9
 
10
public class ProcessedShipment  implements java.io.Serializable {
11
    private java.lang.String ID;
12
 
13
    private java.lang.String reference1;
14
 
15
    private java.lang.String reference2;
16
 
17
    private java.lang.String reference3;
18
 
19
    private java.lang.String foreignHAWB;
20
 
21
    private boolean hasErrors;
22
 
23
    private com.aramex.stub.ArrayOfNotification notifications;
24
 
25
    private com.aramex.stub.ShipmentLabel shipmentLabel;
26
 
27
    public ProcessedShipment() {
28
    }
29
 
30
    public ProcessedShipment(
31
           java.lang.String ID,
32
           java.lang.String reference1,
33
           java.lang.String reference2,
34
           java.lang.String reference3,
35
           java.lang.String foreignHAWB,
36
           boolean hasErrors,
37
           com.aramex.stub.ArrayOfNotification notifications,
38
           com.aramex.stub.ShipmentLabel shipmentLabel) {
39
           this.ID = ID;
40
           this.reference1 = reference1;
41
           this.reference2 = reference2;
42
           this.reference3 = reference3;
43
           this.foreignHAWB = foreignHAWB;
44
           this.hasErrors = hasErrors;
45
           this.notifications = notifications;
46
           this.shipmentLabel = shipmentLabel;
47
    }
48
 
49
 
50
    /**
51
     * Gets the ID value for this ProcessedShipment.
52
     * 
53
     * @return ID
54
     */
55
    public java.lang.String getID() {
56
        return ID;
57
    }
58
 
59
 
60
    /**
61
     * Sets the ID value for this ProcessedShipment.
62
     * 
63
     * @param ID
64
     */
65
    public void setID(java.lang.String ID) {
66
        this.ID = ID;
67
    }
68
 
69
 
70
    /**
71
     * Gets the reference1 value for this ProcessedShipment.
72
     * 
73
     * @return reference1
74
     */
75
    public java.lang.String getReference1() {
76
        return reference1;
77
    }
78
 
79
 
80
    /**
81
     * Sets the reference1 value for this ProcessedShipment.
82
     * 
83
     * @param reference1
84
     */
85
    public void setReference1(java.lang.String reference1) {
86
        this.reference1 = reference1;
87
    }
88
 
89
 
90
    /**
91
     * Gets the reference2 value for this ProcessedShipment.
92
     * 
93
     * @return reference2
94
     */
95
    public java.lang.String getReference2() {
96
        return reference2;
97
    }
98
 
99
 
100
    /**
101
     * Sets the reference2 value for this ProcessedShipment.
102
     * 
103
     * @param reference2
104
     */
105
    public void setReference2(java.lang.String reference2) {
106
        this.reference2 = reference2;
107
    }
108
 
109
 
110
    /**
111
     * Gets the reference3 value for this ProcessedShipment.
112
     * 
113
     * @return reference3
114
     */
115
    public java.lang.String getReference3() {
116
        return reference3;
117
    }
118
 
119
 
120
    /**
121
     * Sets the reference3 value for this ProcessedShipment.
122
     * 
123
     * @param reference3
124
     */
125
    public void setReference3(java.lang.String reference3) {
126
        this.reference3 = reference3;
127
    }
128
 
129
 
130
    /**
131
     * Gets the foreignHAWB value for this ProcessedShipment.
132
     * 
133
     * @return foreignHAWB
134
     */
135
    public java.lang.String getForeignHAWB() {
136
        return foreignHAWB;
137
    }
138
 
139
 
140
    /**
141
     * Sets the foreignHAWB value for this ProcessedShipment.
142
     * 
143
     * @param foreignHAWB
144
     */
145
    public void setForeignHAWB(java.lang.String foreignHAWB) {
146
        this.foreignHAWB = foreignHAWB;
147
    }
148
 
149
 
150
    /**
151
     * Gets the hasErrors value for this ProcessedShipment.
152
     * 
153
     * @return hasErrors
154
     */
155
    public boolean isHasErrors() {
156
        return hasErrors;
157
    }
158
 
159
 
160
    /**
161
     * Sets the hasErrors value for this ProcessedShipment.
162
     * 
163
     * @param hasErrors
164
     */
165
    public void setHasErrors(boolean hasErrors) {
166
        this.hasErrors = hasErrors;
167
    }
168
 
169
 
170
    /**
171
     * Gets the notifications value for this ProcessedShipment.
172
     * 
173
     * @return notifications
174
     */
175
    public com.aramex.stub.ArrayOfNotification getNotifications() {
176
        return notifications;
177
    }
178
 
179
 
180
    /**
181
     * Sets the notifications value for this ProcessedShipment.
182
     * 
183
     * @param notifications
184
     */
185
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
186
        this.notifications = notifications;
187
    }
188
 
189
 
190
    /**
191
     * Gets the shipmentLabel value for this ProcessedShipment.
192
     * 
193
     * @return shipmentLabel
194
     */
195
    public com.aramex.stub.ShipmentLabel getShipmentLabel() {
196
        return shipmentLabel;
197
    }
198
 
199
 
200
    /**
201
     * Sets the shipmentLabel value for this ProcessedShipment.
202
     * 
203
     * @param shipmentLabel
204
     */
205
    public void setShipmentLabel(com.aramex.stub.ShipmentLabel shipmentLabel) {
206
        this.shipmentLabel = shipmentLabel;
207
    }
208
 
209
    private java.lang.Object __equalsCalc = null;
210
    public synchronized boolean equals(java.lang.Object obj) {
211
        if (!(obj instanceof ProcessedShipment)) return false;
212
        ProcessedShipment other = (ProcessedShipment) obj;
213
        if (obj == null) return false;
214
        if (this == obj) return true;
215
        if (__equalsCalc != null) {
216
            return (__equalsCalc == obj);
217
        }
218
        __equalsCalc = obj;
219
        boolean _equals;
220
        _equals = true && 
221
            ((this.ID==null && other.getID()==null) || 
222
             (this.ID!=null &&
223
              this.ID.equals(other.getID()))) &&
224
            ((this.reference1==null && other.getReference1()==null) || 
225
             (this.reference1!=null &&
226
              this.reference1.equals(other.getReference1()))) &&
227
            ((this.reference2==null && other.getReference2()==null) || 
228
             (this.reference2!=null &&
229
              this.reference2.equals(other.getReference2()))) &&
230
            ((this.reference3==null && other.getReference3()==null) || 
231
             (this.reference3!=null &&
232
              this.reference3.equals(other.getReference3()))) &&
233
            ((this.foreignHAWB==null && other.getForeignHAWB()==null) || 
234
             (this.foreignHAWB!=null &&
235
              this.foreignHAWB.equals(other.getForeignHAWB()))) &&
236
            this.hasErrors == other.isHasErrors() &&
237
            ((this.notifications==null && other.getNotifications()==null) || 
238
             (this.notifications!=null &&
239
              this.notifications.equals(other.getNotifications()))) &&
240
            ((this.shipmentLabel==null && other.getShipmentLabel()==null) || 
241
             (this.shipmentLabel!=null &&
242
              this.shipmentLabel.equals(other.getShipmentLabel())));
243
        __equalsCalc = null;
244
        return _equals;
245
    }
246
 
247
    private boolean __hashCodeCalc = false;
248
    public synchronized int hashCode() {
249
        if (__hashCodeCalc) {
250
            return 0;
251
        }
252
        __hashCodeCalc = true;
253
        int _hashCode = 1;
254
        if (getID() != null) {
255
            _hashCode += getID().hashCode();
256
        }
257
        if (getReference1() != null) {
258
            _hashCode += getReference1().hashCode();
259
        }
260
        if (getReference2() != null) {
261
            _hashCode += getReference2().hashCode();
262
        }
263
        if (getReference3() != null) {
264
            _hashCode += getReference3().hashCode();
265
        }
266
        if (getForeignHAWB() != null) {
267
            _hashCode += getForeignHAWB().hashCode();
268
        }
269
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
270
        if (getNotifications() != null) {
271
            _hashCode += getNotifications().hashCode();
272
        }
273
        if (getShipmentLabel() != null) {
274
            _hashCode += getShipmentLabel().hashCode();
275
        }
276
        __hashCodeCalc = false;
277
        return _hashCode;
278
    }
279
 
280
    // Type metadata
281
    private static org.apache.axis.description.TypeDesc typeDesc =
282
        new org.apache.axis.description.TypeDesc(ProcessedShipment.class, true);
283
 
284
    static {
285
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedShipment"));
286
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
287
        elemField.setFieldName("ID");
288
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ID"));
289
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
290
        elemField.setNillable(true);
291
        typeDesc.addFieldDesc(elemField);
292
        elemField = new org.apache.axis.description.ElementDesc();
293
        elemField.setFieldName("reference1");
294
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference1"));
295
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
296
        elemField.setNillable(true);
297
        typeDesc.addFieldDesc(elemField);
298
        elemField = new org.apache.axis.description.ElementDesc();
299
        elemField.setFieldName("reference2");
300
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference2"));
301
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
302
        elemField.setNillable(true);
303
        typeDesc.addFieldDesc(elemField);
304
        elemField = new org.apache.axis.description.ElementDesc();
305
        elemField.setFieldName("reference3");
306
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Reference3"));
307
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
308
        elemField.setNillable(true);
309
        typeDesc.addFieldDesc(elemField);
310
        elemField = new org.apache.axis.description.ElementDesc();
311
        elemField.setFieldName("foreignHAWB");
312
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ForeignHAWB"));
313
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
314
        elemField.setNillable(true);
315
        typeDesc.addFieldDesc(elemField);
316
        elemField = new org.apache.axis.description.ElementDesc();
317
        elemField.setFieldName("hasErrors");
318
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
319
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
320
        elemField.setNillable(false);
321
        typeDesc.addFieldDesc(elemField);
322
        elemField = new org.apache.axis.description.ElementDesc();
323
        elemField.setFieldName("notifications");
324
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
325
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfNotification"));
326
        elemField.setNillable(true);
327
        typeDesc.addFieldDesc(elemField);
328
        elemField = new org.apache.axis.description.ElementDesc();
329
        elemField.setFieldName("shipmentLabel");
330
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentLabel"));
331
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentLabel"));
332
        elemField.setNillable(true);
333
        typeDesc.addFieldDesc(elemField);
334
    }
335
 
336
    /**
337
     * Return type metadata object
338
     */
339
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
340
        return typeDesc;
341
    }
342
 
343
    /**
344
     * Get Custom Serializer
345
     */
346
    public static org.apache.axis.encoding.Serializer getSerializer(
347
           java.lang.String mechType, 
348
           java.lang.Class _javaType,  
349
           javax.xml.namespace.QName _xmlType) {
350
        return 
351
          new  org.apache.axis.encoding.ser.BeanSerializer(
352
            _javaType, _xmlType, typeDesc);
353
    }
354
 
355
    /**
356
     * Get Custom Deserializer
357
     */
358
    public static org.apache.axis.encoding.Deserializer getDeserializer(
359
           java.lang.String mechType, 
360
           java.lang.Class _javaType,  
361
           javax.xml.namespace.QName _xmlType) {
362
        return 
363
          new  org.apache.axis.encoding.ser.BeanDeserializer(
364
            _javaType, _xmlType, typeDesc);
365
    }
366
 
367
}