| 20640 |
amit.gupta |
1 |
/**
|
|
|
2 |
* HoldCreationRequest.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 HoldCreationRequest implements java.io.Serializable {
|
|
|
11 |
private com.aramex.stub.ClientInfo clientInfo;
|
|
|
12 |
|
|
|
13 |
private com.aramex.stub.Transaction transaction;
|
|
|
14 |
|
|
|
15 |
private com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds;
|
|
|
16 |
|
|
|
17 |
public HoldCreationRequest() {
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
public HoldCreationRequest(
|
|
|
21 |
com.aramex.stub.ClientInfo clientInfo,
|
|
|
22 |
com.aramex.stub.Transaction transaction,
|
|
|
23 |
com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds) {
|
|
|
24 |
this.clientInfo = clientInfo;
|
|
|
25 |
this.transaction = transaction;
|
|
|
26 |
this.shipmentHolds = shipmentHolds;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
/**
|
|
|
31 |
* Gets the clientInfo value for this HoldCreationRequest.
|
|
|
32 |
*
|
|
|
33 |
* @return clientInfo
|
|
|
34 |
*/
|
|
|
35 |
public com.aramex.stub.ClientInfo getClientInfo() {
|
|
|
36 |
return clientInfo;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
/**
|
|
|
41 |
* Sets the clientInfo value for this HoldCreationRequest.
|
|
|
42 |
*
|
|
|
43 |
* @param clientInfo
|
|
|
44 |
*/
|
|
|
45 |
public void setClientInfo(com.aramex.stub.ClientInfo clientInfo) {
|
|
|
46 |
this.clientInfo = clientInfo;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
/**
|
|
|
51 |
* Gets the transaction value for this HoldCreationRequest.
|
|
|
52 |
*
|
|
|
53 |
* @return transaction
|
|
|
54 |
*/
|
|
|
55 |
public com.aramex.stub.Transaction getTransaction() {
|
|
|
56 |
return transaction;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
/**
|
|
|
61 |
* Sets the transaction value for this HoldCreationRequest.
|
|
|
62 |
*
|
|
|
63 |
* @param transaction
|
|
|
64 |
*/
|
|
|
65 |
public void setTransaction(com.aramex.stub.Transaction transaction) {
|
|
|
66 |
this.transaction = transaction;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* Gets the shipmentHolds value for this HoldCreationRequest.
|
|
|
72 |
*
|
|
|
73 |
* @return shipmentHolds
|
|
|
74 |
*/
|
|
|
75 |
public com.aramex.stub.ArrayOfShipmentHoldDetails getShipmentHolds() {
|
|
|
76 |
return shipmentHolds;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
/**
|
|
|
81 |
* Sets the shipmentHolds value for this HoldCreationRequest.
|
|
|
82 |
*
|
|
|
83 |
* @param shipmentHolds
|
|
|
84 |
*/
|
|
|
85 |
public void setShipmentHolds(com.aramex.stub.ArrayOfShipmentHoldDetails shipmentHolds) {
|
|
|
86 |
this.shipmentHolds = shipmentHolds;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
private java.lang.Object __equalsCalc = null;
|
|
|
90 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
91 |
if (!(obj instanceof HoldCreationRequest)) return false;
|
|
|
92 |
HoldCreationRequest other = (HoldCreationRequest) 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.clientInfo==null && other.getClientInfo()==null) ||
|
|
|
102 |
(this.clientInfo!=null &&
|
|
|
103 |
this.clientInfo.equals(other.getClientInfo()))) &&
|
|
|
104 |
((this.transaction==null && other.getTransaction()==null) ||
|
|
|
105 |
(this.transaction!=null &&
|
|
|
106 |
this.transaction.equals(other.getTransaction()))) &&
|
|
|
107 |
((this.shipmentHolds==null && other.getShipmentHolds()==null) ||
|
|
|
108 |
(this.shipmentHolds!=null &&
|
|
|
109 |
this.shipmentHolds.equals(other.getShipmentHolds())));
|
|
|
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 (getClientInfo() != null) {
|
|
|
122 |
_hashCode += getClientInfo().hashCode();
|
|
|
123 |
}
|
|
|
124 |
if (getTransaction() != null) {
|
|
|
125 |
_hashCode += getTransaction().hashCode();
|
|
|
126 |
}
|
|
|
127 |
if (getShipmentHolds() != null) {
|
|
|
128 |
_hashCode += getShipmentHolds().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(HoldCreationRequest.class, true);
|
|
|
137 |
|
|
|
138 |
static {
|
|
|
139 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", ">HoldCreationRequest"));
|
|
|
140 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
141 |
elemField.setFieldName("clientInfo");
|
|
|
142 |
elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ClientInfo"));
|
|
|
143 |
elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ClientInfo"));
|
|
|
144 |
elemField.setMinOccurs(0);
|
|
|
145 |
elemField.setNillable(true);
|
|
|
146 |
typeDesc.addFieldDesc(elemField);
|
|
|
147 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
148 |
elemField.setFieldName("transaction");
|
|
|
149 |
elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
|
|
|
150 |
elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "Transaction"));
|
|
|
151 |
elemField.setMinOccurs(0);
|
|
|
152 |
elemField.setNillable(true);
|
|
|
153 |
typeDesc.addFieldDesc(elemField);
|
|
|
154 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
155 |
elemField.setFieldName("shipmentHolds");
|
|
|
156 |
elemField.setXmlName(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ShipmentHolds"));
|
|
|
157 |
elemField.setXmlType(new javax.xml.namespace.QName("http://ws.aramex.net/ShippingAPI/v1/", "ArrayOfShipmentHoldDetails"));
|
|
|
158 |
elemField.setMinOccurs(0);
|
|
|
159 |
elemField.setNillable(true);
|
|
|
160 |
typeDesc.addFieldDesc(elemField);
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Return type metadata object
|
|
|
165 |
*/
|
|
|
166 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
167 |
return typeDesc;
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
/**
|
|
|
171 |
* Get Custom Serializer
|
|
|
172 |
*/
|
|
|
173 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
174 |
java.lang.String mechType,
|
|
|
175 |
java.lang.Class _javaType,
|
|
|
176 |
javax.xml.namespace.QName _xmlType) {
|
|
|
177 |
return
|
|
|
178 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
179 |
_javaType, _xmlType, typeDesc);
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
/**
|
|
|
183 |
* Get Custom Deserializer
|
|
|
184 |
*/
|
|
|
185 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
186 |
java.lang.String mechType,
|
|
|
187 |
java.lang.Class _javaType,
|
|
|
188 |
javax.xml.namespace.QName _xmlType) {
|
|
|
189 |
return
|
|
|
190 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
191 |
_javaType, _xmlType, typeDesc);
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
}
|