Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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