Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
20640 amit.gupta 1
/**
2
 * ReserveRangeRequest.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 ReserveRangeRequest  implements java.io.Serializable {
11
    private com.aramex.stub.ClientInfo clientInfo;
12
 
13
    private com.aramex.stub.Transaction transaction;
14
 
15
    private java.lang.String entity;
16
 
17
    private java.lang.String productGroup;
18
 
19
    private java.lang.Integer count;
20
 
21
    public ReserveRangeRequest() {
22
    }
23
 
24
    public ReserveRangeRequest(
25
           com.aramex.stub.ClientInfo clientInfo,
26
           com.aramex.stub.Transaction transaction,
27
           java.lang.String entity,
28
           java.lang.String productGroup,
29
           java.lang.Integer count) {
30
           this.clientInfo = clientInfo;
31
           this.transaction = transaction;
32
           this.entity = entity;
33
           this.productGroup = productGroup;
34
           this.count = count;
35
    }
36
 
37
 
38
    /**
39
     * Gets the clientInfo value for this ReserveRangeRequest.
40
     * 
41
     * @return clientInfo
42
     */
43
    public com.aramex.stub.ClientInfo getClientInfo() {
44
        return clientInfo;
45
    }
46
 
47
 
48
    /**
49
     * Sets the clientInfo value for this ReserveRangeRequest.
50
     * 
51
     * @param clientInfo
52
     */
53
    public void setClientInfo(com.aramex.stub.ClientInfo clientInfo) {
54
        this.clientInfo = clientInfo;
55
    }
56
 
57
 
58
    /**
59
     * Gets the transaction value for this ReserveRangeRequest.
60
     * 
61
     * @return transaction
62
     */
63
    public com.aramex.stub.Transaction getTransaction() {
64
        return transaction;
65
    }
66
 
67
 
68
    /**
69
     * Sets the transaction value for this ReserveRangeRequest.
70
     * 
71
     * @param transaction
72
     */
73
    public void setTransaction(com.aramex.stub.Transaction transaction) {
74
        this.transaction = transaction;
75
    }
76
 
77
 
78
    /**
79
     * Gets the entity value for this ReserveRangeRequest.
80
     * 
81
     * @return entity
82
     */
83
    public java.lang.String getEntity() {
84
        return entity;
85
    }
86
 
87
 
88
    /**
89
     * Sets the entity value for this ReserveRangeRequest.
90
     * 
91
     * @param entity
92
     */
93
    public void setEntity(java.lang.String entity) {
94
        this.entity = entity;
95
    }
96
 
97
 
98
    /**
99
     * Gets the productGroup value for this ReserveRangeRequest.
100
     * 
101
     * @return productGroup
102
     */
103
    public java.lang.String getProductGroup() {
104
        return productGroup;
105
    }
106
 
107
 
108
    /**
109
     * Sets the productGroup value for this ReserveRangeRequest.
110
     * 
111
     * @param productGroup
112
     */
113
    public void setProductGroup(java.lang.String productGroup) {
114
        this.productGroup = productGroup;
115
    }
116
 
117
 
118
    /**
119
     * Gets the count value for this ReserveRangeRequest.
120
     * 
121
     * @return count
122
     */
123
    public java.lang.Integer getCount() {
124
        return count;
125
    }
126
 
127
 
128
    /**
129
     * Sets the count value for this ReserveRangeRequest.
130
     * 
131
     * @param count
132
     */
133
    public void setCount(java.lang.Integer count) {
134
        this.count = count;
135
    }
136
 
137
    private java.lang.Object __equalsCalc = null;
138
    public synchronized boolean equals(java.lang.Object obj) {
139
        if (!(obj instanceof ReserveRangeRequest)) return false;
140
        ReserveRangeRequest other = (ReserveRangeRequest) obj;
141
        if (obj == null) return false;
142
        if (this == obj) return true;
143
        if (__equalsCalc != null) {
144
            return (__equalsCalc == obj);
145
        }
146
        __equalsCalc = obj;
147
        boolean _equals;
148
        _equals = true && 
149
            ((this.clientInfo==null && other.getClientInfo()==null) || 
150
             (this.clientInfo!=null &&
151
              this.clientInfo.equals(other.getClientInfo()))) &&
152
            ((this.transaction==null && other.getTransaction()==null) || 
153
             (this.transaction!=null &&
154
              this.transaction.equals(other.getTransaction()))) &&
155
            ((this.entity==null && other.getEntity()==null) || 
156
             (this.entity!=null &&
157
              this.entity.equals(other.getEntity()))) &&
158
            ((this.productGroup==null && other.getProductGroup()==null) || 
159
             (this.productGroup!=null &&
160
              this.productGroup.equals(other.getProductGroup()))) &&
161
            ((this.count==null && other.getCount()==null) || 
162
             (this.count!=null &&
163
              this.count.equals(other.getCount())));
164
        __equalsCalc = null;
165
        return _equals;
166
    }
167
 
168
    private boolean __hashCodeCalc = false;
169
    public synchronized int hashCode() {
170
        if (__hashCodeCalc) {
171
            return 0;
172
        }
173
        __hashCodeCalc = true;
174
        int _hashCode = 1;
175
        if (getClientInfo() != null) {
176
            _hashCode += getClientInfo().hashCode();
177
        }
178
        if (getTransaction() != null) {
179
            _hashCode += getTransaction().hashCode();
180
        }
181
        if (getEntity() != null) {
182
            _hashCode += getEntity().hashCode();
183
        }
184
        if (getProductGroup() != null) {
185
            _hashCode += getProductGroup().hashCode();
186
        }
187
        if (getCount() != null) {
188
            _hashCode += getCount().hashCode();
189
        }
190
        __hashCodeCalc = false;
191
        return _hashCode;
192
    }
193
 
194
    // Type metadata
195
    private static org.apache.axis.description.TypeDesc typeDesc =
196
        new org.apache.axis.description.TypeDesc(ReserveRangeRequest.class, true);
197
 
198
    static {
199
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">ReserveRangeRequest"));
200
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
201
        elemField.setFieldName("clientInfo");
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ClientInfo"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ClientInfo"));
204
        elemField.setMinOccurs(0);
205
        elemField.setNillable(true);
206
        typeDesc.addFieldDesc(elemField);
207
        elemField = new org.apache.axis.description.ElementDesc();
208
        elemField.setFieldName("transaction");
209
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
210
        elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
211
        elemField.setMinOccurs(0);
212
        elemField.setNillable(true);
213
        typeDesc.addFieldDesc(elemField);
214
        elemField = new org.apache.axis.description.ElementDesc();
215
        elemField.setFieldName("entity");
216
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Entity"));
217
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
218
        elemField.setMinOccurs(0);
219
        elemField.setNillable(true);
220
        typeDesc.addFieldDesc(elemField);
221
        elemField = new org.apache.axis.description.ElementDesc();
222
        elemField.setFieldName("productGroup");
223
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ProductGroup"));
224
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
225
        elemField.setMinOccurs(0);
226
        elemField.setNillable(true);
227
        typeDesc.addFieldDesc(elemField);
228
        elemField = new org.apache.axis.description.ElementDesc();
229
        elemField.setFieldName("count");
230
        elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Count"));
231
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
232
        elemField.setMinOccurs(0);
233
        elemField.setNillable(false);
234
        typeDesc.addFieldDesc(elemField);
235
    }
236
 
237
    /**
238
     * Return type metadata object
239
     */
240
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
241
        return typeDesc;
242
    }
243
 
244
    /**
245
     * Get Custom Serializer
246
     */
247
    public static org.apache.axis.encoding.Serializer getSerializer(
248
           java.lang.String mechType, 
249
           java.lang.Class _javaType,  
250
           javax.xml.namespace.QName _xmlType) {
251
        return 
252
          new  org.apache.axis.encoding.ser.BeanSerializer(
253
            _javaType, _xmlType, typeDesc);
254
    }
255
 
256
    /**
257
     * Get Custom Deserializer
258
     */
259
    public static org.apache.axis.encoding.Deserializer getDeserializer(
260
           java.lang.String mechType, 
261
           java.lang.Class _javaType,  
262
           javax.xml.namespace.QName _xmlType) {
263
        return 
264
          new  org.apache.axis.encoding.ser.BeanDeserializer(
265
            _javaType, _xmlType, typeDesc);
266
    }
267
 
268
}