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
 * ProcessedShipmentHold.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 ProcessedShipmentHold  implements java.io.Serializable {
11
    private java.lang.String ID;
12
 
13
    private boolean hasErrors;
14
 
22598 amit.gupta 15
    private com.aramex.stub.Notification[] notifications;
20640 amit.gupta 16
 
17
    public ProcessedShipmentHold() {
18
    }
19
 
20
    public ProcessedShipmentHold(
21
           java.lang.String ID,
22
           boolean hasErrors,
22598 amit.gupta 23
           com.aramex.stub.Notification[] notifications) {
20640 amit.gupta 24
           this.ID = ID;
25
           this.hasErrors = hasErrors;
26
           this.notifications = notifications;
27
    }
28
 
29
 
30
    /**
31
     * Gets the ID value for this ProcessedShipmentHold.
32
     * 
33
     * @return ID
34
     */
35
    public java.lang.String getID() {
36
        return ID;
37
    }
38
 
39
 
40
    /**
41
     * Sets the ID value for this ProcessedShipmentHold.
42
     * 
43
     * @param ID
44
     */
45
    public void setID(java.lang.String ID) {
46
        this.ID = ID;
47
    }
48
 
49
 
50
    /**
51
     * Gets the hasErrors value for this ProcessedShipmentHold.
52
     * 
53
     * @return hasErrors
54
     */
55
    public boolean isHasErrors() {
56
        return hasErrors;
57
    }
58
 
59
 
60
    /**
61
     * Sets the hasErrors value for this ProcessedShipmentHold.
62
     * 
63
     * @param hasErrors
64
     */
65
    public void setHasErrors(boolean hasErrors) {
66
        this.hasErrors = hasErrors;
67
    }
68
 
69
 
70
    /**
71
     * Gets the notifications value for this ProcessedShipmentHold.
72
     * 
73
     * @return notifications
74
     */
22598 amit.gupta 75
    public com.aramex.stub.Notification[] getNotifications() {
20640 amit.gupta 76
        return notifications;
77
    }
78
 
79
 
80
    /**
81
     * Sets the notifications value for this ProcessedShipmentHold.
82
     * 
83
     * @param notifications
84
     */
22598 amit.gupta 85
    public void setNotifications(com.aramex.stub.Notification[] notifications) {
20640 amit.gupta 86
        this.notifications = notifications;
87
    }
88
 
89
    private java.lang.Object __equalsCalc = null;
90
    public synchronized boolean equals(java.lang.Object obj) {
91
        if (!(obj instanceof ProcessedShipmentHold)) return false;
92
        ProcessedShipmentHold other = (ProcessedShipmentHold) obj;
93
        if (obj == null) return false;
94
        if (this == obj) return true;
95
        if (__equalsCalc != null) {
96
            return (__equalsCalc == obj);
97
        }
98
        __equalsCalc = obj;
99
        boolean _equals;
100
        _equals = true && 
101
            ((this.ID==null && other.getID()==null) || 
102
             (this.ID!=null &&
103
              this.ID.equals(other.getID()))) &&
104
            this.hasErrors == other.isHasErrors() &&
105
            ((this.notifications==null && other.getNotifications()==null) || 
106
             (this.notifications!=null &&
22598 amit.gupta 107
              java.util.Arrays.equals(this.notifications, other.getNotifications())));
20640 amit.gupta 108
        __equalsCalc = null;
109
        return _equals;
110
    }
111
 
112
    private boolean __hashCodeCalc = false;
113
    public synchronized int hashCode() {
114
        if (__hashCodeCalc) {
115
            return 0;
116
        }
117
        __hashCodeCalc = true;
118
        int _hashCode = 1;
119
        if (getID() != null) {
120
            _hashCode += getID().hashCode();
121
        }
122
        _hashCode += (isHasErrors() ? Boolean.TRUE : Boolean.FALSE).hashCode();
123
        if (getNotifications() != null) {
22598 amit.gupta 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()) {
130
                    _hashCode += obj.hashCode();
131
                }
132
            }
20640 amit.gupta 133
        }
134
        __hashCodeCalc = false;
135
        return _hashCode;
136
    }
137
 
138
    // Type metadata
139
    private static org.apache.axis.description.TypeDesc typeDesc =
140
        new org.apache.axis.description.TypeDesc(ProcessedShipmentHold.class, true);
141
 
142
    static {
143
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedShipmentHold"));
144
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
145
        elemField.setFieldName("ID");
146
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ID"));
147
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
148
        elemField.setNillable(true);
149
        typeDesc.addFieldDesc(elemField);
150
        elemField = new org.apache.axis.description.ElementDesc();
151
        elemField.setFieldName("hasErrors");
152
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
153
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
154
        elemField.setNillable(false);
155
        typeDesc.addFieldDesc(elemField);
156
        elemField = new org.apache.axis.description.ElementDesc();
157
        elemField.setFieldName("notifications");
158
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notifications"));
22598 amit.gupta 159
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
20640 amit.gupta 160
        elemField.setNillable(true);
22598 amit.gupta 161
        elemField.setItemQName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Notification"));
20640 amit.gupta 162
        typeDesc.addFieldDesc(elemField);
163
    }
164
 
165
    /**
166
     * Return type metadata object
167
     */
168
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
169
        return typeDesc;
170
    }
171
 
172
    /**
173
     * Get Custom Serializer
174
     */
175
    public static org.apache.axis.encoding.Serializer getSerializer(
176
           java.lang.String mechType, 
177
           java.lang.Class _javaType,  
178
           javax.xml.namespace.QName _xmlType) {
179
        return 
180
          new  org.apache.axis.encoding.ser.BeanSerializer(
181
            _javaType, _xmlType, typeDesc);
182
    }
183
 
184
    /**
185
     * Get Custom Deserializer
186
     */
187
    public static org.apache.axis.encoding.Deserializer getDeserializer(
188
           java.lang.String mechType, 
189
           java.lang.Class _javaType,  
190
           javax.xml.namespace.QName _xmlType) {
191
        return 
192
          new  org.apache.axis.encoding.ser.BeanDeserializer(
193
            _javaType, _xmlType, typeDesc);
194
    }
195
 
196
}