Subversion Repositories SmartDukaan

Rev

Rev 20640 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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