Subversion Repositories SmartDukaan

Rev

Rev 20640 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20640 Rev 22598
Line 8... Line 8...
8
package com.aramex.stub;
8
package com.aramex.stub;
9
 
9
 
10
public class ReserveRangeResponse  implements java.io.Serializable {
10
public class ReserveRangeResponse  implements java.io.Serializable {
11
    private com.aramex.stub.Transaction transaction;
11
    private com.aramex.stub.Transaction transaction;
12
 
12
 
13
    private com.aramex.stub.ArrayOfNotification notifications;
13
    private com.aramex.stub.Notification[] notifications;
14
 
14
 
15
    private java.lang.Boolean hasErrors;
15
    private java.lang.Boolean hasErrors;
16
 
16
 
17
    private java.lang.String fromWaybill;
17
    private java.lang.String fromWaybill;
18
 
18
 
Line 21... Line 21...
21
    public ReserveRangeResponse() {
21
    public ReserveRangeResponse() {
22
    }
22
    }
23
 
23
 
24
    public ReserveRangeResponse(
24
    public ReserveRangeResponse(
25
           com.aramex.stub.Transaction transaction,
25
           com.aramex.stub.Transaction transaction,
26
           com.aramex.stub.ArrayOfNotification notifications,
26
           com.aramex.stub.Notification[] notifications,
27
           java.lang.Boolean hasErrors,
27
           java.lang.Boolean hasErrors,
28
           java.lang.String fromWaybill,
28
           java.lang.String fromWaybill,
29
           java.lang.String toWaybill) {
29
           java.lang.String toWaybill) {
30
           this.transaction = transaction;
30
           this.transaction = transaction;
31
           this.notifications = notifications;
31
           this.notifications = notifications;
Line 58... Line 58...
58
    /**
58
    /**
59
     * Gets the notifications value for this ReserveRangeResponse.
59
     * Gets the notifications value for this ReserveRangeResponse.
60
     * 
60
     * 
61
     * @return notifications
61
     * @return notifications
62
     */
62
     */
63
    public com.aramex.stub.ArrayOfNotification getNotifications() {
63
    public com.aramex.stub.Notification[] getNotifications() {
64
        return notifications;
64
        return notifications;
65
    }
65
    }
66
 
66
 
67
 
67
 
68
    /**
68
    /**
69
     * Sets the notifications value for this ReserveRangeResponse.
69
     * Sets the notifications value for this ReserveRangeResponse.
70
     * 
70
     * 
71
     * @param notifications
71
     * @param notifications
72
     */
72
     */
73
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
73
    public void setNotifications(com.aramex.stub.Notification[] notifications) {
74
        this.notifications = notifications;
74
        this.notifications = notifications;
75
    }
75
    }
76
 
76
 
77
 
77
 
78
    /**
78
    /**
Line 149... Line 149...
149
            ((this.transaction==null && other.getTransaction()==null) || 
149
            ((this.transaction==null && other.getTransaction()==null) || 
150
             (this.transaction!=null &&
150
             (this.transaction!=null &&
151
              this.transaction.equals(other.getTransaction()))) &&
151
              this.transaction.equals(other.getTransaction()))) &&
152
            ((this.notifications==null && other.getNotifications()==null) || 
152
            ((this.notifications==null && other.getNotifications()==null) || 
153
             (this.notifications!=null &&
153
             (this.notifications!=null &&
154
              this.notifications.equals(other.getNotifications()))) &&
154
              java.util.Arrays.equals(this.notifications, other.getNotifications()))) &&
155
            ((this.hasErrors==null && other.getHasErrors()==null) || 
155
            ((this.hasErrors==null && other.getHasErrors()==null) || 
156
             (this.hasErrors!=null &&
156
             (this.hasErrors!=null &&
157
              this.hasErrors.equals(other.getHasErrors()))) &&
157
              this.hasErrors.equals(other.getHasErrors()))) &&
158
            ((this.fromWaybill==null && other.getFromWaybill()==null) || 
158
            ((this.fromWaybill==null && other.getFromWaybill()==null) || 
159
             (this.fromWaybill!=null &&
159
             (this.fromWaybill!=null &&
Line 174... Line 174...
174
        int _hashCode = 1;
174
        int _hashCode = 1;
175
        if (getTransaction() != null) {
175
        if (getTransaction() != null) {
176
            _hashCode += getTransaction().hashCode();
176
            _hashCode += getTransaction().hashCode();
177
        }
177
        }
178
        if (getNotifications() != null) {
178
        if (getNotifications() != null) {
-
 
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()) {
179
            _hashCode += getNotifications().hashCode();
185
                    _hashCode += obj.hashCode();
-
 
186
                }
-
 
187
            }
180
        }
188
        }
181
        if (getHasErrors() != null) {
189
        if (getHasErrors() != null) {
182
            _hashCode += getHasErrors().hashCode();
190
            _hashCode += getHasErrors().hashCode();
183
        }
191
        }
184
        if (getFromWaybill() != null) {
192
        if (getFromWaybill() != null) {
Line 205... Line 213...
205
        elemField.setNillable(true);
213
        elemField.setNillable(true);
206
        typeDesc.addFieldDesc(elemField);
214
        typeDesc.addFieldDesc(elemField);
207
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("notifications");
216
        elemField.setFieldName("notifications");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
217
        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"));
218
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
211
        elemField.setMinOccurs(0);
219
        elemField.setMinOccurs(0);
212
        elemField.setNillable(true);
220
        elemField.setNillable(true);
-
 
221
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
213
        typeDesc.addFieldDesc(elemField);
222
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
223
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("hasErrors");
224
        elemField.setFieldName("hasErrors");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
225
        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"));
226
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));