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