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