Subversion Repositories SmartDukaan

Rev

Rev 20640 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * ReserveRangeResponse.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 ReserveRangeResponse  implements java.io.Serializable {
11
    private com.aramex.stub.Transaction transaction;
12
 
22598 amit.gupta 13
    private com.aramex.stub.Notification[] notifications;
20640 amit.gupta 14
 
15
    private java.lang.Boolean hasErrors;
16
 
17
    private java.lang.String fromWaybill;
18
 
19
    private java.lang.String toWaybill;
20
 
21
    public ReserveRangeResponse() {
22
    }
23
 
24
    public ReserveRangeResponse(
25
           com.aramex.stub.Transaction transaction,
22598 amit.gupta 26
           com.aramex.stub.Notification[] notifications,
20640 amit.gupta 27
           java.lang.Boolean hasErrors,
28
           java.lang.String fromWaybill,
29
           java.lang.String toWaybill) {
30
           this.transaction = transaction;
31
           this.notifications = notifications;
32
           this.hasErrors = hasErrors;
33
           this.fromWaybill = fromWaybill;
34
           this.toWaybill = toWaybill;
35
    }
36
 
37
 
38
    /**
39
     * Gets the transaction value for this ReserveRangeResponse.
40
     * 
41
     * @return transaction
42
     */
43
    public com.aramex.stub.Transaction getTransaction() {
44
        return transaction;
45
    }
46
 
47
 
48
    /**
49
     * Sets the transaction value for this ReserveRangeResponse.
50
     * 
51
     * @param transaction
52
     */
53
    public void setTransaction(com.aramex.stub.Transaction transaction) {
54
        this.transaction = transaction;
55
    }
56
 
57
 
58
    /**
59
     * Gets the notifications value for this ReserveRangeResponse.
60
     * 
61
     * @return notifications
62
     */
22598 amit.gupta 63
    public com.aramex.stub.Notification[] getNotifications() {
20640 amit.gupta 64
        return notifications;
65
    }
66
 
67
 
68
    /**
69
     * Sets the notifications value for this ReserveRangeResponse.
70
     * 
71
     * @param notifications
72
     */
22598 amit.gupta 73
    public void setNotifications(com.aramex.stub.Notification[] notifications) {
20640 amit.gupta 74
        this.notifications = notifications;
75
    }
76
 
77
 
78
    /**
79
     * Gets the hasErrors value for this ReserveRangeResponse.
80
     * 
81
     * @return hasErrors
82
     */
83
    public java.lang.Boolean getHasErrors() {
84
        return hasErrors;
85
    }
86
 
87
 
88
    /**
89
     * Sets the hasErrors value for this ReserveRangeResponse.
90
     * 
91
     * @param hasErrors
92
     */
93
    public void setHasErrors(java.lang.Boolean hasErrors) {
94
        this.hasErrors = hasErrors;
95
    }
96
 
97
 
98
    /**
99
     * Gets the fromWaybill value for this ReserveRangeResponse.
100
     * 
101
     * @return fromWaybill
102
     */
103
    public java.lang.String getFromWaybill() {
104
        return fromWaybill;
105
    }
106
 
107
 
108
    /**
109
     * Sets the fromWaybill value for this ReserveRangeResponse.
110
     * 
111
     * @param fromWaybill
112
     */
113
    public void setFromWaybill(java.lang.String fromWaybill) {
114
        this.fromWaybill = fromWaybill;
115
    }
116
 
117
 
118
    /**
119
     * Gets the toWaybill value for this ReserveRangeResponse.
120
     * 
121
     * @return toWaybill
122
     */
123
    public java.lang.String getToWaybill() {
124
        return toWaybill;
125
    }
126
 
127
 
128
    /**
129
     * Sets the toWaybill value for this ReserveRangeResponse.
130
     * 
131
     * @param toWaybill
132
     */
133
    public void setToWaybill(java.lang.String toWaybill) {
134
        this.toWaybill = toWaybill;
135
    }
136
 
137
    private java.lang.Object __equalsCalc = null;
138
    public synchronized boolean equals(java.lang.Object obj) {
139
        if (!(obj instanceof ReserveRangeResponse)) return false;
140
        ReserveRangeResponse other = (ReserveRangeResponse) obj;
141
        if (obj == null) return false;
142
        if (this == obj) return true;
143
        if (__equalsCalc != null) {
144
            return (__equalsCalc == obj);
145
        }
146
        __equalsCalc = obj;
147
        boolean _equals;
148
        _equals = true && 
149
            ((this.transaction==null && other.getTransaction()==null) || 
150
             (this.transaction!=null &&
151
              this.transaction.equals(other.getTransaction()))) &&
152
            ((this.notifications==null && other.getNotifications()==null) || 
153
             (this.notifications!=null &&
22598 amit.gupta 154
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
20640 amit.gupta 155
            ((this.hasErrors==null && other.getHasErrors()==null) || 
156
             (this.hasErrors!=null &&
157
              this.hasErrors.equals(other.getHasErrors()))) &&
158
            ((this.fromWaybill==null && other.getFromWaybill()==null) || 
159
             (this.fromWaybill!=null &&
160
              this.fromWaybill.equals(other.getFromWaybill()))) &&
161
            ((this.toWaybill==null && other.getToWaybill()==null) || 
162
             (this.toWaybill!=null &&
163
              this.toWaybill.equals(other.getToWaybill())));
164
        __equalsCalc = null;
165
        return _equals;
166
    }
167
 
168
    private boolean __hashCodeCalc = false;
169
    public synchronized int hashCode() {
170
        if (__hashCodeCalc) {
171
            return 0;
172
        }
173
        __hashCodeCalc = true;
174
        int _hashCode = 1;
175
        if (getTransaction() != null) {
176
            _hashCode += getTransaction().hashCode();
177
        }
178
        if (getNotifications() != null) {
22598 amit.gupta 179
            for (int i=0;
180
                 i<java.lang.reflect.Array.getLength(getNotifications());
181
                 i++) {
182
                java.lang.Object obj = java.lang.reflect.Array.get(getNotifications(), i);
183
                if (obj != null &&
184
                    !obj.getClass().isArray()) {
185
                    _hashCode += obj.hashCode();
186
                }
187
            }
20640 amit.gupta 188
        }
189
        if (getHasErrors() != null) {
190
            _hashCode += getHasErrors().hashCode();
191
        }
192
        if (getFromWaybill() != null) {
193
            _hashCode += getFromWaybill().hashCode();
194
        }
195
        if (getToWaybill() != null) {
196
            _hashCode += getToWaybill().hashCode();
197
        }
198
        __hashCodeCalc = false;
199
        return _hashCode;
200
    }
201
 
202
    // Type metadata
203
    private static org.apache.axis.description.TypeDesc typeDesc =
204
        new org.apache.axis.description.TypeDesc(ReserveRangeResponse.class, true);
205
 
206
    static {
207
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ReserveRangeResponse"));
208
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
209
        elemField.setFieldName("transaction");
210
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
211
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
212
        elemField.setMinOccurs(0);
213
        elemField.setNillable(true);
214
        typeDesc.addFieldDesc(elemField);
215
        elemField = new org.apache.axis.description.ElementDesc();
216
        elemField.setFieldName("notifications");
217
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
22598 amit.gupta 218
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
20640 amit.gupta 219
        elemField.setMinOccurs(0);
220
        elemField.setNillable(true);
22598 amit.gupta 221
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
20640 amit.gupta 222
        typeDesc.addFieldDesc(elemField);
223
        elemField = new org.apache.axis.description.ElementDesc();
224
        elemField.setFieldName("hasErrors");
225
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
226
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
227
        elemField.setMinOccurs(0);
228
        elemField.setNillable(false);
229
        typeDesc.addFieldDesc(elemField);
230
        elemField = new org.apache.axis.description.ElementDesc();
231
        elemField.setFieldName("fromWaybill");
232
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "FromWaybill"));
233
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
234
        elemField.setMinOccurs(0);
235
        elemField.setNillable(true);
236
        typeDesc.addFieldDesc(elemField);
237
        elemField = new org.apache.axis.description.ElementDesc();
238
        elemField.setFieldName("toWaybill");
239
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ToWaybill"));
240
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
241
        elemField.setMinOccurs(0);
242
        elemField.setNillable(true);
243
        typeDesc.addFieldDesc(elemField);
244
    }
245
 
246
    /**
247
     * Return type metadata object
248
     */
249
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
250
        return typeDesc;
251
    }
252
 
253
    /**
254
     * Get Custom Serializer
255
     */
256
    public static org.apache.axis.encoding.Serializer getSerializer(
257
           java.lang.String mechType, 
258
           java.lang.Class _javaType,  
259
           javax.xml.namespace.QName _xmlType) {
260
        return 
261
          new  org.apache.axis.encoding.ser.BeanSerializer(
262
            _javaType, _xmlType, typeDesc);
263
    }
264
 
265
    /**
266
     * Get Custom Deserializer
267
     */
268
    public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
274
            _javaType, _xmlType, typeDesc);
275
    }
276
 
277
}