Subversion Repositories SmartDukaan

Rev

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

Rev 20640 Rev 22598
Line 10... Line 10...
10
public class ProcessedShipmentHold  implements java.io.Serializable {
10
public class ProcessedShipmentHold  implements java.io.Serializable {
11
    private java.lang.String ID;
11
    private java.lang.String ID;
12
 
12
 
13
    private boolean hasErrors;
13
    private boolean hasErrors;
14
 
14
 
15
    private com.aramex.stub.ArrayOfNotification notifications;
15
    private com.aramex.stub.Notification[] notifications;
16
 
16
 
17
    public ProcessedShipmentHold() {
17
    public ProcessedShipmentHold() {
18
    }
18
    }
19
 
19
 
20
    public ProcessedShipmentHold(
20
    public ProcessedShipmentHold(
21
           java.lang.String ID,
21
           java.lang.String ID,
22
           boolean hasErrors,
22
           boolean hasErrors,
23
           com.aramex.stub.ArrayOfNotification notifications) {
23
           com.aramex.stub.Notification[] notifications) {
24
           this.ID = ID;
24
           this.ID = ID;
25
           this.hasErrors = hasErrors;
25
           this.hasErrors = hasErrors;
26
           this.notifications = notifications;
26
           this.notifications = notifications;
27
    }
27
    }
28
 
28
 
Line 70... Line 70...
70
    /**
70
    /**
71
     * Gets the notifications value for this ProcessedShipmentHold.
71
     * Gets the notifications value for this ProcessedShipmentHold.
72
     * 
72
     * 
73
     * @return notifications
73
     * @return notifications
74
     */
74
     */
75
    public com.aramex.stub.ArrayOfNotification getNotifications() {
75
    public com.aramex.stub.Notification[] getNotifications() {
76
        return notifications;
76
        return notifications;
77
    }
77
    }
78
 
78
 
79
 
79
 
80
    /**
80
    /**
81
     * Sets the notifications value for this ProcessedShipmentHold.
81
     * Sets the notifications value for this ProcessedShipmentHold.
82
     * 
82
     * 
83
     * @param notifications
83
     * @param notifications
84
     */
84
     */
85
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
85
    public void setNotifications(com.aramex.stub.Notification[] notifications) {
86
        this.notifications = notifications;
86
        this.notifications = notifications;
87
    }
87
    }
88
 
88
 
89
    private java.lang.Object __equalsCalc = null;
89
    private java.lang.Object __equalsCalc = null;
90
    public synchronized boolean equals(java.lang.Object obj) {
90
    public synchronized boolean equals(java.lang.Object obj) {
Line 102... Line 102...
102
             (this.ID!=null &&
102
             (this.ID!=null &&
103
              this.ID.equals(other.getID()))) &&
103
              this.ID.equals(other.getID()))) &&
104
            this.hasErrors == other.isHasErrors() &&
104
            this.hasErrors == other.isHasErrors() &&
105
            ((this.notifications==null && other.getNotifications()==null) || 
105
            ((this.notifications==null && other.getNotifications()==null) || 
106
             (this.notifications!=null &&
106
             (this.notifications!=null &&
107
              this.notifications.equals(other.getNotifications())));
107
              java.util.Arrays.equals(this.notifications, other.getNotifications())));
108
        __equalsCalc = null;
108
        __equalsCalc = null;
109
        return _equals;
109
        return _equals;
110
    }
110
    }
111
 
111
 
112
    private boolean __hashCodeCalc = false;
112
    private boolean __hashCodeCalc = false;
Line 119... Line 119...
119
        if (getID() != null) {
119
        if (getID() != null) {
120
            _hashCode += getID().hashCode();
120
            _hashCode += getID().hashCode();
121
        }
121
        }
122
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
122
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
123
        if (getNotifications() != null) {
123
        if (getNotifications() != null) {
-
 
124
            for (int i=0;
-
 
125
                 i<java.lang.reflect.Array.getLength(getNotifications());
-
 
126
                 i++) {
-
 
127
                java.lang.Object obj = java.lang.reflect.Array.get(getNotifications(), i);
-
 
128
                if (obj != null &&
-
 
129
                    !obj.getClass().isArray()) {
124
            _hashCode += getNotifications().hashCode();
130
                    _hashCode += obj.hashCode();
-
 
131
                }
-
 
132
            }
125
        }
133
        }
126
        __hashCodeCalc = false;
134
        __hashCodeCalc = false;
127
        return _hashCode;
135
        return _hashCode;
128
    }
136
    }
129
 
137
 
Line 146... Line 154...
146
        elemField.setNillable(false);
154
        elemField.setNillable(false);
147
        typeDesc.addFieldDesc(elemField);
155
        typeDesc.addFieldDesc(elemField);
148
        elemField = new org.apache.axis.description.ElementDesc();
156
        elemField = new org.apache.axis.description.ElementDesc();
149
        elemField.setFieldName("notifications");
157
        elemField.setFieldName("notifications");
150
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
158
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
151
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfNotification"));
159
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
152
        elemField.setNillable(true);
160
        elemField.setNillable(true);
-
 
161
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
153
        typeDesc.addFieldDesc(elemField);
162
        typeDesc.addFieldDesc(elemField);
154
    }
163
    }
155
 
164
 
156
    /**
165
    /**
157
     * Return type metadata object
166
     * Return type metadata object