| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* FreightRateDetail.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.fedex.ship.stub;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* Rate data specific to FedEx Freight or FedEx National Freight services.
|
|
|
13 |
*/
|
|
|
14 |
public class FreightRateDetail implements java.io.Serializable {
|
|
|
15 |
/* A unique identifier for a specific rate quotation. */
|
|
|
16 |
private java.lang.String quoteNumber;
|
|
|
17 |
|
|
|
18 |
/* Specifies whether the rate quote was automated or manual. */
|
|
|
19 |
private com.fedex.ship.stub.FreightRateQuoteType quoteType;
|
|
|
20 |
|
|
|
21 |
/* Specifies how total base charge is determined. */
|
|
|
22 |
private com.fedex.ship.stub.FreightBaseChargeCalculationType baseChargeCalculation;
|
|
|
23 |
|
|
|
24 |
/* Freight charges which accumulate to the total base charge for
|
|
|
25 |
* the shipment. */
|
|
|
26 |
private com.fedex.ship.stub.FreightBaseCharge[] baseCharges;
|
|
|
27 |
|
|
|
28 |
/* Human-readable descriptions of additional information on this
|
|
|
29 |
* shipment rating. */
|
|
|
30 |
private com.fedex.ship.stub.FreightRateNotation[] notations;
|
|
|
31 |
|
|
|
32 |
public FreightRateDetail() {
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public FreightRateDetail(
|
|
|
36 |
java.lang.String quoteNumber,
|
|
|
37 |
com.fedex.ship.stub.FreightRateQuoteType quoteType,
|
|
|
38 |
com.fedex.ship.stub.FreightBaseChargeCalculationType baseChargeCalculation,
|
|
|
39 |
com.fedex.ship.stub.FreightBaseCharge[] baseCharges,
|
|
|
40 |
com.fedex.ship.stub.FreightRateNotation[] notations) {
|
|
|
41 |
this.quoteNumber = quoteNumber;
|
|
|
42 |
this.quoteType = quoteType;
|
|
|
43 |
this.baseChargeCalculation = baseChargeCalculation;
|
|
|
44 |
this.baseCharges = baseCharges;
|
|
|
45 |
this.notations = notations;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* Gets the quoteNumber value for this FreightRateDetail.
|
|
|
51 |
*
|
|
|
52 |
* @return quoteNumber * A unique identifier for a specific rate quotation.
|
|
|
53 |
*/
|
|
|
54 |
public java.lang.String getQuoteNumber() {
|
|
|
55 |
return quoteNumber;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* Sets the quoteNumber value for this FreightRateDetail.
|
|
|
61 |
*
|
|
|
62 |
* @param quoteNumber * A unique identifier for a specific rate quotation.
|
|
|
63 |
*/
|
|
|
64 |
public void setQuoteNumber(java.lang.String quoteNumber) {
|
|
|
65 |
this.quoteNumber = quoteNumber;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Gets the quoteType value for this FreightRateDetail.
|
|
|
71 |
*
|
|
|
72 |
* @return quoteType * Specifies whether the rate quote was automated or manual.
|
|
|
73 |
*/
|
|
|
74 |
public com.fedex.ship.stub.FreightRateQuoteType getQuoteType() {
|
|
|
75 |
return quoteType;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Sets the quoteType value for this FreightRateDetail.
|
|
|
81 |
*
|
|
|
82 |
* @param quoteType * Specifies whether the rate quote was automated or manual.
|
|
|
83 |
*/
|
|
|
84 |
public void setQuoteType(com.fedex.ship.stub.FreightRateQuoteType quoteType) {
|
|
|
85 |
this.quoteType = quoteType;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Gets the baseChargeCalculation value for this FreightRateDetail.
|
|
|
91 |
*
|
|
|
92 |
* @return baseChargeCalculation * Specifies how total base charge is determined.
|
|
|
93 |
*/
|
|
|
94 |
public com.fedex.ship.stub.FreightBaseChargeCalculationType getBaseChargeCalculation() {
|
|
|
95 |
return baseChargeCalculation;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Sets the baseChargeCalculation value for this FreightRateDetail.
|
|
|
101 |
*
|
|
|
102 |
* @param baseChargeCalculation * Specifies how total base charge is determined.
|
|
|
103 |
*/
|
|
|
104 |
public void setBaseChargeCalculation(com.fedex.ship.stub.FreightBaseChargeCalculationType baseChargeCalculation) {
|
|
|
105 |
this.baseChargeCalculation = baseChargeCalculation;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Gets the baseCharges value for this FreightRateDetail.
|
|
|
111 |
*
|
|
|
112 |
* @return baseCharges * Freight charges which accumulate to the total base charge for
|
|
|
113 |
* the shipment.
|
|
|
114 |
*/
|
|
|
115 |
public com.fedex.ship.stub.FreightBaseCharge[] getBaseCharges() {
|
|
|
116 |
return baseCharges;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
/**
|
|
|
121 |
* Sets the baseCharges value for this FreightRateDetail.
|
|
|
122 |
*
|
|
|
123 |
* @param baseCharges * Freight charges which accumulate to the total base charge for
|
|
|
124 |
* the shipment.
|
|
|
125 |
*/
|
|
|
126 |
public void setBaseCharges(com.fedex.ship.stub.FreightBaseCharge[] baseCharges) {
|
|
|
127 |
this.baseCharges = baseCharges;
|
|
|
128 |
}
|
|
|
129 |
|
|
|
130 |
public com.fedex.ship.stub.FreightBaseCharge getBaseCharges(int i) {
|
|
|
131 |
return this.baseCharges[i];
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public void setBaseCharges(int i, com.fedex.ship.stub.FreightBaseCharge _value) {
|
|
|
135 |
this.baseCharges[i] = _value;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
|
|
|
139 |
/**
|
|
|
140 |
* Gets the notations value for this FreightRateDetail.
|
|
|
141 |
*
|
|
|
142 |
* @return notations * Human-readable descriptions of additional information on this
|
|
|
143 |
* shipment rating.
|
|
|
144 |
*/
|
|
|
145 |
public com.fedex.ship.stub.FreightRateNotation[] getNotations() {
|
|
|
146 |
return notations;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* Sets the notations value for this FreightRateDetail.
|
|
|
152 |
*
|
|
|
153 |
* @param notations * Human-readable descriptions of additional information on this
|
|
|
154 |
* shipment rating.
|
|
|
155 |
*/
|
|
|
156 |
public void setNotations(com.fedex.ship.stub.FreightRateNotation[] notations) {
|
|
|
157 |
this.notations = notations;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public com.fedex.ship.stub.FreightRateNotation getNotations(int i) {
|
|
|
161 |
return this.notations[i];
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public void setNotations(int i, com.fedex.ship.stub.FreightRateNotation _value) {
|
|
|
165 |
this.notations[i] = _value;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
private java.lang.Object __equalsCalc = null;
|
|
|
169 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
170 |
if (!(obj instanceof FreightRateDetail)) return false;
|
|
|
171 |
FreightRateDetail other = (FreightRateDetail) obj;
|
|
|
172 |
if (obj == null) return false;
|
|
|
173 |
if (this == obj) return true;
|
|
|
174 |
if (__equalsCalc != null) {
|
|
|
175 |
return (__equalsCalc == obj);
|
|
|
176 |
}
|
|
|
177 |
__equalsCalc = obj;
|
|
|
178 |
boolean _equals;
|
|
|
179 |
_equals = true &&
|
|
|
180 |
((this.quoteNumber==null && other.getQuoteNumber()==null) ||
|
|
|
181 |
(this.quoteNumber!=null &&
|
|
|
182 |
this.quoteNumber.equals(other.getQuoteNumber()))) &&
|
|
|
183 |
((this.quoteType==null && other.getQuoteType()==null) ||
|
|
|
184 |
(this.quoteType!=null &&
|
|
|
185 |
this.quoteType.equals(other.getQuoteType()))) &&
|
|
|
186 |
((this.baseChargeCalculation==null && other.getBaseChargeCalculation()==null) ||
|
|
|
187 |
(this.baseChargeCalculation!=null &&
|
|
|
188 |
this.baseChargeCalculation.equals(other.getBaseChargeCalculation()))) &&
|
|
|
189 |
((this.baseCharges==null && other.getBaseCharges()==null) ||
|
|
|
190 |
(this.baseCharges!=null &&
|
|
|
191 |
java.util.Arrays.equals(this.baseCharges, other.getBaseCharges()))) &&
|
|
|
192 |
((this.notations==null && other.getNotations()==null) ||
|
|
|
193 |
(this.notations!=null &&
|
|
|
194 |
java.util.Arrays.equals(this.notations, other.getNotations())));
|
|
|
195 |
__equalsCalc = null;
|
|
|
196 |
return _equals;
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
private boolean __hashCodeCalc = false;
|
|
|
200 |
public synchronized int hashCode() {
|
|
|
201 |
if (__hashCodeCalc) {
|
|
|
202 |
return 0;
|
|
|
203 |
}
|
|
|
204 |
__hashCodeCalc = true;
|
|
|
205 |
int _hashCode = 1;
|
|
|
206 |
if (getQuoteNumber() != null) {
|
|
|
207 |
_hashCode += getQuoteNumber().hashCode();
|
|
|
208 |
}
|
|
|
209 |
if (getQuoteType() != null) {
|
|
|
210 |
_hashCode += getQuoteType().hashCode();
|
|
|
211 |
}
|
|
|
212 |
if (getBaseChargeCalculation() != null) {
|
|
|
213 |
_hashCode += getBaseChargeCalculation().hashCode();
|
|
|
214 |
}
|
|
|
215 |
if (getBaseCharges() != null) {
|
|
|
216 |
for (int i=0;
|
|
|
217 |
i<java.lang.reflect.Array.getLength(getBaseCharges());
|
|
|
218 |
i++) {
|
|
|
219 |
java.lang.Object obj = java.lang.reflect.Array.get(getBaseCharges(), i);
|
|
|
220 |
if (obj != null &&
|
|
|
221 |
!obj.getClass().isArray()) {
|
|
|
222 |
_hashCode += obj.hashCode();
|
|
|
223 |
}
|
|
|
224 |
}
|
|
|
225 |
}
|
|
|
226 |
if (getNotations() != null) {
|
|
|
227 |
for (int i=0;
|
|
|
228 |
i<java.lang.reflect.Array.getLength(getNotations());
|
|
|
229 |
i++) {
|
|
|
230 |
java.lang.Object obj = java.lang.reflect.Array.get(getNotations(), i);
|
|
|
231 |
if (obj != null &&
|
|
|
232 |
!obj.getClass().isArray()) {
|
|
|
233 |
_hashCode += obj.hashCode();
|
|
|
234 |
}
|
|
|
235 |
}
|
|
|
236 |
}
|
|
|
237 |
__hashCodeCalc = false;
|
|
|
238 |
return _hashCode;
|
|
|
239 |
}
|
|
|
240 |
|
|
|
241 |
// Type metadata
|
|
|
242 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
243 |
new org.apache.axis.description.TypeDesc(FreightRateDetail.class, true);
|
|
|
244 |
|
|
|
245 |
static {
|
|
|
246 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightRateDetail"));
|
|
|
247 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
248 |
elemField.setFieldName("quoteNumber");
|
|
|
249 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "QuoteNumber"));
|
|
|
250 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
251 |
elemField.setMinOccurs(0);
|
|
|
252 |
elemField.setNillable(false);
|
|
|
253 |
typeDesc.addFieldDesc(elemField);
|
|
|
254 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
255 |
elemField.setFieldName("quoteType");
|
|
|
256 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "QuoteType"));
|
|
|
257 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightRateQuoteType"));
|
|
|
258 |
elemField.setMinOccurs(0);
|
|
|
259 |
elemField.setNillable(false);
|
|
|
260 |
typeDesc.addFieldDesc(elemField);
|
|
|
261 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
262 |
elemField.setFieldName("baseChargeCalculation");
|
|
|
263 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BaseChargeCalculation"));
|
|
|
264 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightBaseChargeCalculationType"));
|
|
|
265 |
elemField.setMinOccurs(0);
|
|
|
266 |
elemField.setNillable(false);
|
|
|
267 |
typeDesc.addFieldDesc(elemField);
|
|
|
268 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
269 |
elemField.setFieldName("baseCharges");
|
|
|
270 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BaseCharges"));
|
|
|
271 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightBaseCharge"));
|
|
|
272 |
elemField.setMinOccurs(0);
|
|
|
273 |
elemField.setNillable(false);
|
|
|
274 |
elemField.setMaxOccursUnbounded(true);
|
|
|
275 |
typeDesc.addFieldDesc(elemField);
|
|
|
276 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
277 |
elemField.setFieldName("notations");
|
|
|
278 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Notations"));
|
|
|
279 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightRateNotation"));
|
|
|
280 |
elemField.setMinOccurs(0);
|
|
|
281 |
elemField.setNillable(false);
|
|
|
282 |
elemField.setMaxOccursUnbounded(true);
|
|
|
283 |
typeDesc.addFieldDesc(elemField);
|
|
|
284 |
}
|
|
|
285 |
|
|
|
286 |
/**
|
|
|
287 |
* Return type metadata object
|
|
|
288 |
*/
|
|
|
289 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
290 |
return typeDesc;
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
/**
|
|
|
294 |
* Get Custom Serializer
|
|
|
295 |
*/
|
|
|
296 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
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.BeanSerializer(
|
|
|
302 |
_javaType, _xmlType, typeDesc);
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
/**
|
|
|
306 |
* Get Custom Deserializer
|
|
|
307 |
*/
|
|
|
308 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
309 |
java.lang.String mechType,
|
|
|
310 |
java.lang.Class _javaType,
|
|
|
311 |
javax.xml.namespace.QName _xmlType) {
|
|
|
312 |
return
|
|
|
313 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
314 |
_javaType, _xmlType, typeDesc);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
}
|