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
 * 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
 
15
    private com.aramex.stub.ArrayOfNotification notifications;
16
 
17
    public ProcessedShipmentHold() {
18
    }
19
 
20
    public ProcessedShipmentHold(
21
           java.lang.String ID,
22
           boolean hasErrors,
23
           com.aramex.stub.ArrayOfNotification notifications) {
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
     */
75
    public com.aramex.stub.ArrayOfNotification getNotifications() {
76
        return notifications;
77
    }
78
 
79
 
80
    /**
81
     * Sets the notifications value for this ProcessedShipmentHold.
82
     * 
83
     * @param notifications
84
     */
85
    public void setNotifications(com.aramex.stub.ArrayOfNotification notifications) {
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 &&
107
              this.notifications.equals(other.getNotifications())));
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) {
124
            _hashCode += getNotifications().hashCode();
125
        }
126
        __hashCodeCalc = false;
127
        return _hashCode;
128
    }
129
 
130
    // Type metadata
131
    private static org.apache.axis.description.TypeDesc typeDesc =
132
        new org.apache.axis.description.TypeDesc(ProcessedShipmentHold.class, true);
133
 
134
    static {
135
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProcessedShipmentHold"));
136
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
137
        elemField.setFieldName("ID");
138
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ID"));
139
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
140
        elemField.setNillable(true);
141
        typeDesc.addFieldDesc(elemField);
142
        elemField = new org.apache.axis.description.ElementDesc();
143
        elemField.setFieldName("hasErrors");
144
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "HasErrors"));
145
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
146
        elemField.setNillable(false);
147
        typeDesc.addFieldDesc(elemField);
148
        elemField = new org.apache.axis.description.ElementDesc();
149
        elemField.setFieldName("notifications");
150
        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"));
152
        elemField.setNillable(true);
153
        typeDesc.addFieldDesc(elemField);
154
    }
155
 
156
    /**
157
     * Return type metadata object
158
     */
159
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
160
        return typeDesc;
161
    }
162
 
163
    /**
164
     * Get Custom Serializer
165
     */
166
    public static org.apache.axis.encoding.Serializer getSerializer(
167
           java.lang.String mechType, 
168
           java.lang.Class _javaType,  
169
           javax.xml.namespace.QName _xmlType) {
170
        return 
171
          new  org.apache.axis.encoding.ser.BeanSerializer(
172
            _javaType, _xmlType, typeDesc);
173
    }
174
 
175
    /**
176
     * Get Custom Deserializer
177
     */
178
    public static org.apache.axis.encoding.Deserializer getDeserializer(
179
           java.lang.String mechType, 
180
           java.lang.Class _javaType,  
181
           javax.xml.namespace.QName _xmlType) {
182
        return 
183
          new  org.apache.axis.encoding.ser.BeanDeserializer(
184
            _javaType, _xmlType, typeDesc);
185
    }
186
 
187
}