Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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