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
 * PickupCreationResponse.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 PickupCreationResponse  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 com.aramex.stub.ProcessedPickup processedPickup;
18
 
19
    public PickupCreationResponse() {
20
    }
21
 
22
    public PickupCreationResponse(
23
           com.aramex.stub.Transaction transaction,
24
           com.aramex.stub.ArrayOfNotification notifications,
25
           java.lang.Boolean hasErrors,
26
           com.aramex.stub.ProcessedPickup processedPickup) {
27
           this.transaction = transaction;
28
           this.notifications = notifications;
29
           this.hasErrors = hasErrors;
30
           this.processedPickup = processedPickup;
31
    }
32
 
33
 
34
    /**
35
     * Gets the transaction value for this PickupCreationResponse.
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 PickupCreationResponse.
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 PickupCreationResponse.
56
     * 
57
     * @return notifications
58
     */
59
    public com.aramex.stub.ArrayOfNotification getNotifications() {
60
        return notifications;
61
    }
62
 
63
 
64
    /**
65
     * Sets the notifications value for this PickupCreationResponse.
66
     * 
67
     * @param notifications
68
     */
69
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
70
        this.notifications = notifications;
71
    }
72
 
73
 
74
    /**
75
     * Gets the hasErrors value for this PickupCreationResponse.
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 PickupCreationResponse.
86
     * 
87
     * @param hasErrors
88
     */
89
    public void setHasErrors(java.lang.Boolean hasErrors) {
90
        this.hasErrors = hasErrors;
91
    }
92
 
93
 
94
    /**
95
     * Gets the processedPickup value for this PickupCreationResponse.
96
     * 
97
     * @return processedPickup
98
     */
99
    public com.aramex.stub.ProcessedPickup getProcessedPickup() {
100
        return processedPickup;
101
    }
102
 
103
 
104
    /**
105
     * Sets the processedPickup value for this PickupCreationResponse.
106
     * 
107
     * @param processedPickup
108
     */
109
    public void setProcessedPickup(com.aramex.stub.ProcessedPickup processedPickup) {
110
        this.processedPickup = processedPickup;
111
    }
112
 
113
    private java.lang.Object __equalsCalc = null;
114
    public synchronized boolean equals(java.lang.Object obj) {
115
        if (!(obj instanceof PickupCreationResponse)) return false;
116
        PickupCreationResponse other = (PickupCreationResponse) 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 &&
130
              this.notifications.equals(other.getNotifications()))) &&
131
            ((this.hasErrors==null && other.getHasErrors()==null) || 
132
             (this.hasErrors!=null &&
133
              this.hasErrors.equals(other.getHasErrors()))) &&
134
            ((this.processedPickup==null && other.getProcessedPickup()==null) || 
135
             (this.processedPickup!=null &&
136
              this.processedPickup.equals(other.getProcessedPickup())));
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) {
152
            _hashCode += getNotifications().hashCode();
153
        }
154
        if (getHasErrors() != null) {
155
            _hashCode += getHasErrors().hashCode();
156
        }
157
        if (getProcessedPickup() != null) {
158
            _hashCode += getProcessedPickup().hashCode();
159
        }
160
        __hashCodeCalc = false;
161
        return _hashCode;
162
    }
163
 
164
    // Type metadata
165
    private static org.apache.axis.description.TypeDesc typeDesc =
166
        new org.apache.axis.description.TypeDesc(PickupCreationResponse.class, true);
167
 
168
    static {
169
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">PickupCreationResponse"));
170
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
171
        elemField.setFieldName("transaction");
172
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
173
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
174
        elemField.setMinOccurs(0);
175
        elemField.setNillable(true);
176
        typeDesc.addFieldDesc(elemField);
177
        elemField = new org.apache.axis.description.ElementDesc();
178
        elemField.setFieldName("notifications");
179
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
180
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfNotification"));
181
        elemField.setMinOccurs(0);
182
        elemField.setNillable(true);
183
        typeDesc.addFieldDesc(elemField);
184
        elemField = new org.apache.axis.description.ElementDesc();
185
        elemField.setFieldName("hasErrors");
186
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
187
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
188
        elemField.setMinOccurs(0);
189
        elemField.setNillable(false);
190
        typeDesc.addFieldDesc(elemField);
191
        elemField = new org.apache.axis.description.ElementDesc();
192
        elemField.setFieldName("processedPickup");
193
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedPickup"));
194
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedPickup"));
195
        elemField.setMinOccurs(0);
196
        elemField.setNillable(true);
197
        typeDesc.addFieldDesc(elemField);
198
    }
199
 
200
    /**
201
     * Return type metadata object
202
     */
203
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
204
        return typeDesc;
205
    }
206
 
207
    /**
208
     * Get Custom Serializer
209
     */
210
    public static org.apache.axis.encoding.Serializer getSerializer(
211
           java.lang.String mechType, 
212
           java.lang.Class _javaType,  
213
           javax.xml.namespace.QName _xmlType) {
214
        return 
215
          new  org.apache.axis.encoding.ser.BeanSerializer(
216
            _javaType, _xmlType, typeDesc);
217
    }
218
 
219
    /**
220
     * Get Custom Deserializer
221
     */
222
    public static org.apache.axis.encoding.Deserializer getDeserializer(
223
           java.lang.String mechType, 
224
           java.lang.Class _javaType,  
225
           javax.xml.namespace.QName _xmlType) {
226
        return 
227
          new  org.apache.axis.encoding.ser.BeanDeserializer(
228
            _javaType, _xmlType, typeDesc);
229
    }
230
 
231
}