Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | 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
 
13
    private com.aramex.stub.ArrayOfNotification notifications;
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,
26
           com.aramex.stub.ArrayOfNotification notifications,
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
     */
63
    public com.aramex.stub.ArrayOfNotification getNotifications() {
64
        return notifications;
65
    }
66
 
67
 
68
    /**
69
     * Sets the notifications value for this ReserveRangeResponse.
70
     * 
71
     * @param notifications
72
     */
73
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
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 &&
154
              this.notifications.equals(other.getNotifications()))) &&
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) {
179
            _hashCode += getNotifications().hashCode();
180
        }
181
        if (getHasErrors() != null) {
182
            _hashCode += getHasErrors().hashCode();
183
        }
184
        if (getFromWaybill() != null) {
185
            _hashCode += getFromWaybill().hashCode();
186
        }
187
        if (getToWaybill() != null) {
188
            _hashCode += getToWaybill().hashCode();
189
        }
190
        __hashCodeCalc = false;
191
        return _hashCode;
192
    }
193
 
194
    // Type metadata
195
    private static org.apache.axis.description.TypeDesc typeDesc =
196
        new org.apache.axis.description.TypeDesc(ReserveRangeResponse.class, true);
197
 
198
    static {
199
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ReserveRangeResponse"));
200
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201
        elemField.setFieldName("transaction");
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
204
        elemField.setMinOccurs(0);
205
        elemField.setNillable(true);
206
        typeDesc.addFieldDesc(elemField);
207
        elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("notifications");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
210
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfNotification"));
211
        elemField.setMinOccurs(0);
212
        elemField.setNillable(true);
213
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("hasErrors");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
217
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
218
        elemField.setMinOccurs(0);
219
        elemField.setNillable(false);
220
        typeDesc.addFieldDesc(elemField);
221
        elemField = new org.apache.axis.description.ElementDesc();
222
        elemField.setFieldName("fromWaybill");
223
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "FromWaybill"));
224
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
225
        elemField.setMinOccurs(0);
226
        elemField.setNillable(true);
227
        typeDesc.addFieldDesc(elemField);
228
        elemField = new org.apache.axis.description.ElementDesc();
229
        elemField.setFieldName("toWaybill");
230
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ToWaybill"));
231
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
232
        elemField.setMinOccurs(0);
233
        elemField.setNillable(true);
234
        typeDesc.addFieldDesc(elemField);
235
    }
236
 
237
    /**
238
     * Return type metadata object
239
     */
240
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
241
        return typeDesc;
242
    }
243
 
244
    /**
245
     * Get Custom Serializer
246
     */
247
    public static org.apache.axis.encoding.Serializer getSerializer(
248
           java.lang.String mechType, 
249
           java.lang.Class _javaType,  
250
           javax.xml.namespace.QName _xmlType) {
251
        return 
252
          new  org.apache.axis.encoding.ser.BeanSerializer(
253
            _javaType, _xmlType, typeDesc);
254
    }
255
 
256
    /**
257
     * Get Custom Deserializer
258
     */
259
    public static org.apache.axis.encoding.Deserializer getDeserializer(
260
           java.lang.String mechType, 
261
           java.lang.Class _javaType,  
262
           javax.xml.namespace.QName _xmlType) {
263
        return 
264
          new  org.apache.axis.encoding.ser.BeanDeserializer(
265
            _javaType, _xmlType, typeDesc);
266
    }
267
 
268
}