| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* ShippingDocumentFormat.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 |
* Specifies characteristics of a shipping document to be produced.
|
|
|
13 |
*/
|
|
|
14 |
public class ShippingDocumentFormat implements java.io.Serializable {
|
|
|
15 |
/* Specifies how to create, organize, and return the document. */
|
|
|
16 |
private com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions;
|
|
|
17 |
|
|
|
18 |
/* Specifies how far down the page to move the beginning of the
|
|
|
19 |
* image; allows for printing on letterhead and other pre-printed stock. */
|
|
|
20 |
private com.fedex.ship.stub.LinearMeasure topOfPageOffset;
|
|
|
21 |
|
|
|
22 |
private com.fedex.ship.stub.ShippingDocumentImageType imageType;
|
|
|
23 |
|
|
|
24 |
private com.fedex.ship.stub.ShippingDocumentStockType stockType;
|
|
|
25 |
|
|
|
26 |
/* For those shipping document types which have both a "form"
|
|
|
27 |
* and "instructions" component (e.g. NAFTA Certificate of Origin and
|
|
|
28 |
* General Agency Agreement), this field indicates whether to provide
|
|
|
29 |
* the instructions. */
|
|
|
30 |
private java.lang.Boolean provideInstructions;
|
|
|
31 |
|
|
|
32 |
/* Governs the language to be used for this individual document,
|
|
|
33 |
* independently from other content returned for the same shipment. */
|
|
|
34 |
private com.fedex.ship.stub.Localization localization;
|
|
|
35 |
|
|
|
36 |
/* Identifies the individual document specified by the client. */
|
|
|
37 |
private java.lang.String customDocumentIdentifier;
|
|
|
38 |
|
|
|
39 |
public ShippingDocumentFormat() {
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public ShippingDocumentFormat(
|
|
|
43 |
com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions,
|
|
|
44 |
com.fedex.ship.stub.LinearMeasure topOfPageOffset,
|
|
|
45 |
com.fedex.ship.stub.ShippingDocumentImageType imageType,
|
|
|
46 |
com.fedex.ship.stub.ShippingDocumentStockType stockType,
|
|
|
47 |
java.lang.Boolean provideInstructions,
|
|
|
48 |
com.fedex.ship.stub.Localization localization,
|
|
|
49 |
java.lang.String customDocumentIdentifier) {
|
|
|
50 |
this.dispositions = dispositions;
|
|
|
51 |
this.topOfPageOffset = topOfPageOffset;
|
|
|
52 |
this.imageType = imageType;
|
|
|
53 |
this.stockType = stockType;
|
|
|
54 |
this.provideInstructions = provideInstructions;
|
|
|
55 |
this.localization = localization;
|
|
|
56 |
this.customDocumentIdentifier = customDocumentIdentifier;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
/**
|
|
|
61 |
* Gets the dispositions value for this ShippingDocumentFormat.
|
|
|
62 |
*
|
|
|
63 |
* @return dispositions * Specifies how to create, organize, and return the document.
|
|
|
64 |
*/
|
|
|
65 |
public com.fedex.ship.stub.ShippingDocumentDispositionDetail[] getDispositions() {
|
|
|
66 |
return dispositions;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* Sets the dispositions value for this ShippingDocumentFormat.
|
|
|
72 |
*
|
|
|
73 |
* @param dispositions * Specifies how to create, organize, and return the document.
|
|
|
74 |
*/
|
|
|
75 |
public void setDispositions(com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions) {
|
|
|
76 |
this.dispositions = dispositions;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
public com.fedex.ship.stub.ShippingDocumentDispositionDetail getDispositions(int i) {
|
|
|
80 |
return this.dispositions[i];
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public void setDispositions(int i, com.fedex.ship.stub.ShippingDocumentDispositionDetail _value) {
|
|
|
84 |
this.dispositions[i] = _value;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Gets the topOfPageOffset value for this ShippingDocumentFormat.
|
|
|
90 |
*
|
|
|
91 |
* @return topOfPageOffset * Specifies how far down the page to move the beginning of the
|
|
|
92 |
* image; allows for printing on letterhead and other pre-printed stock.
|
|
|
93 |
*/
|
|
|
94 |
public com.fedex.ship.stub.LinearMeasure getTopOfPageOffset() {
|
|
|
95 |
return topOfPageOffset;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Sets the topOfPageOffset value for this ShippingDocumentFormat.
|
|
|
101 |
*
|
|
|
102 |
* @param topOfPageOffset * Specifies how far down the page to move the beginning of the
|
|
|
103 |
* image; allows for printing on letterhead and other pre-printed stock.
|
|
|
104 |
*/
|
|
|
105 |
public void setTopOfPageOffset(com.fedex.ship.stub.LinearMeasure topOfPageOffset) {
|
|
|
106 |
this.topOfPageOffset = topOfPageOffset;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Gets the imageType value for this ShippingDocumentFormat.
|
|
|
112 |
*
|
|
|
113 |
* @return imageType
|
|
|
114 |
*/
|
|
|
115 |
public com.fedex.ship.stub.ShippingDocumentImageType getImageType() {
|
|
|
116 |
return imageType;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
/**
|
|
|
121 |
* Sets the imageType value for this ShippingDocumentFormat.
|
|
|
122 |
*
|
|
|
123 |
* @param imageType
|
|
|
124 |
*/
|
|
|
125 |
public void setImageType(com.fedex.ship.stub.ShippingDocumentImageType imageType) {
|
|
|
126 |
this.imageType = imageType;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
/**
|
|
|
131 |
* Gets the stockType value for this ShippingDocumentFormat.
|
|
|
132 |
*
|
|
|
133 |
* @return stockType
|
|
|
134 |
*/
|
|
|
135 |
public com.fedex.ship.stub.ShippingDocumentStockType getStockType() {
|
|
|
136 |
return stockType;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
/**
|
|
|
141 |
* Sets the stockType value for this ShippingDocumentFormat.
|
|
|
142 |
*
|
|
|
143 |
* @param stockType
|
|
|
144 |
*/
|
|
|
145 |
public void setStockType(com.fedex.ship.stub.ShippingDocumentStockType stockType) {
|
|
|
146 |
this.stockType = stockType;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* Gets the provideInstructions value for this ShippingDocumentFormat.
|
|
|
152 |
*
|
|
|
153 |
* @return provideInstructions * For those shipping document types which have both a "form"
|
|
|
154 |
* and "instructions" component (e.g. NAFTA Certificate of Origin and
|
|
|
155 |
* General Agency Agreement), this field indicates whether to provide
|
|
|
156 |
* the instructions.
|
|
|
157 |
*/
|
|
|
158 |
public java.lang.Boolean getProvideInstructions() {
|
|
|
159 |
return provideInstructions;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Sets the provideInstructions value for this ShippingDocumentFormat.
|
|
|
165 |
*
|
|
|
166 |
* @param provideInstructions * For those shipping document types which have both a "form"
|
|
|
167 |
* and "instructions" component (e.g. NAFTA Certificate of Origin and
|
|
|
168 |
* General Agency Agreement), this field indicates whether to provide
|
|
|
169 |
* the instructions.
|
|
|
170 |
*/
|
|
|
171 |
public void setProvideInstructions(java.lang.Boolean provideInstructions) {
|
|
|
172 |
this.provideInstructions = provideInstructions;
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
/**
|
|
|
177 |
* Gets the localization value for this ShippingDocumentFormat.
|
|
|
178 |
*
|
|
|
179 |
* @return localization * Governs the language to be used for this individual document,
|
|
|
180 |
* independently from other content returned for the same shipment.
|
|
|
181 |
*/
|
|
|
182 |
public com.fedex.ship.stub.Localization getLocalization() {
|
|
|
183 |
return localization;
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
/**
|
|
|
188 |
* Sets the localization value for this ShippingDocumentFormat.
|
|
|
189 |
*
|
|
|
190 |
* @param localization * Governs the language to be used for this individual document,
|
|
|
191 |
* independently from other content returned for the same shipment.
|
|
|
192 |
*/
|
|
|
193 |
public void setLocalization(com.fedex.ship.stub.Localization localization) {
|
|
|
194 |
this.localization = localization;
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
|
|
|
198 |
/**
|
|
|
199 |
* Gets the customDocumentIdentifier value for this ShippingDocumentFormat.
|
|
|
200 |
*
|
|
|
201 |
* @return customDocumentIdentifier * Identifies the individual document specified by the client.
|
|
|
202 |
*/
|
|
|
203 |
public java.lang.String getCustomDocumentIdentifier() {
|
|
|
204 |
return customDocumentIdentifier;
|
|
|
205 |
}
|
|
|
206 |
|
|
|
207 |
|
|
|
208 |
/**
|
|
|
209 |
* Sets the customDocumentIdentifier value for this ShippingDocumentFormat.
|
|
|
210 |
*
|
|
|
211 |
* @param customDocumentIdentifier * Identifies the individual document specified by the client.
|
|
|
212 |
*/
|
|
|
213 |
public void setCustomDocumentIdentifier(java.lang.String customDocumentIdentifier) {
|
|
|
214 |
this.customDocumentIdentifier = customDocumentIdentifier;
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
private java.lang.Object __equalsCalc = null;
|
|
|
218 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
219 |
if (!(obj instanceof ShippingDocumentFormat)) return false;
|
|
|
220 |
ShippingDocumentFormat other = (ShippingDocumentFormat) obj;
|
|
|
221 |
if (obj == null) return false;
|
|
|
222 |
if (this == obj) return true;
|
|
|
223 |
if (__equalsCalc != null) {
|
|
|
224 |
return (__equalsCalc == obj);
|
|
|
225 |
}
|
|
|
226 |
__equalsCalc = obj;
|
|
|
227 |
boolean _equals;
|
|
|
228 |
_equals = true &&
|
|
|
229 |
((this.dispositions==null && other.getDispositions()==null) ||
|
|
|
230 |
(this.dispositions!=null &&
|
|
|
231 |
java.util.Arrays.equals(this.dispositions, other.getDispositions()))) &&
|
|
|
232 |
((this.topOfPageOffset==null && other.getTopOfPageOffset()==null) ||
|
|
|
233 |
(this.topOfPageOffset!=null &&
|
|
|
234 |
this.topOfPageOffset.equals(other.getTopOfPageOffset()))) &&
|
|
|
235 |
((this.imageType==null && other.getImageType()==null) ||
|
|
|
236 |
(this.imageType!=null &&
|
|
|
237 |
this.imageType.equals(other.getImageType()))) &&
|
|
|
238 |
((this.stockType==null && other.getStockType()==null) ||
|
|
|
239 |
(this.stockType!=null &&
|
|
|
240 |
this.stockType.equals(other.getStockType()))) &&
|
|
|
241 |
((this.provideInstructions==null && other.getProvideInstructions()==null) ||
|
|
|
242 |
(this.provideInstructions!=null &&
|
|
|
243 |
this.provideInstructions.equals(other.getProvideInstructions()))) &&
|
|
|
244 |
((this.localization==null && other.getLocalization()==null) ||
|
|
|
245 |
(this.localization!=null &&
|
|
|
246 |
this.localization.equals(other.getLocalization()))) &&
|
|
|
247 |
((this.customDocumentIdentifier==null && other.getCustomDocumentIdentifier()==null) ||
|
|
|
248 |
(this.customDocumentIdentifier!=null &&
|
|
|
249 |
this.customDocumentIdentifier.equals(other.getCustomDocumentIdentifier())));
|
|
|
250 |
__equalsCalc = null;
|
|
|
251 |
return _equals;
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
private boolean __hashCodeCalc = false;
|
|
|
255 |
public synchronized int hashCode() {
|
|
|
256 |
if (__hashCodeCalc) {
|
|
|
257 |
return 0;
|
|
|
258 |
}
|
|
|
259 |
__hashCodeCalc = true;
|
|
|
260 |
int _hashCode = 1;
|
|
|
261 |
if (getDispositions() != null) {
|
|
|
262 |
for (int i=0;
|
|
|
263 |
i<java.lang.reflect.Array.getLength(getDispositions());
|
|
|
264 |
i++) {
|
|
|
265 |
java.lang.Object obj = java.lang.reflect.Array.get(getDispositions(), i);
|
|
|
266 |
if (obj != null &&
|
|
|
267 |
!obj.getClass().isArray()) {
|
|
|
268 |
_hashCode += obj.hashCode();
|
|
|
269 |
}
|
|
|
270 |
}
|
|
|
271 |
}
|
|
|
272 |
if (getTopOfPageOffset() != null) {
|
|
|
273 |
_hashCode += getTopOfPageOffset().hashCode();
|
|
|
274 |
}
|
|
|
275 |
if (getImageType() != null) {
|
|
|
276 |
_hashCode += getImageType().hashCode();
|
|
|
277 |
}
|
|
|
278 |
if (getStockType() != null) {
|
|
|
279 |
_hashCode += getStockType().hashCode();
|
|
|
280 |
}
|
|
|
281 |
if (getProvideInstructions() != null) {
|
|
|
282 |
_hashCode += getProvideInstructions().hashCode();
|
|
|
283 |
}
|
|
|
284 |
if (getLocalization() != null) {
|
|
|
285 |
_hashCode += getLocalization().hashCode();
|
|
|
286 |
}
|
|
|
287 |
if (getCustomDocumentIdentifier() != null) {
|
|
|
288 |
_hashCode += getCustomDocumentIdentifier().hashCode();
|
|
|
289 |
}
|
|
|
290 |
__hashCodeCalc = false;
|
|
|
291 |
return _hashCode;
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
// Type metadata
|
|
|
295 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
296 |
new org.apache.axis.description.TypeDesc(ShippingDocumentFormat.class, true);
|
|
|
297 |
|
|
|
298 |
static {
|
|
|
299 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
|
|
|
300 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
301 |
elemField.setFieldName("dispositions");
|
|
|
302 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Dispositions"));
|
|
|
303 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentDispositionDetail"));
|
|
|
304 |
elemField.setMinOccurs(0);
|
|
|
305 |
elemField.setNillable(false);
|
|
|
306 |
elemField.setMaxOccursUnbounded(true);
|
|
|
307 |
typeDesc.addFieldDesc(elemField);
|
|
|
308 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
309 |
elemField.setFieldName("topOfPageOffset");
|
|
|
310 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TopOfPageOffset"));
|
|
|
311 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LinearMeasure"));
|
|
|
312 |
elemField.setMinOccurs(0);
|
|
|
313 |
elemField.setNillable(false);
|
|
|
314 |
typeDesc.addFieldDesc(elemField);
|
|
|
315 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
316 |
elemField.setFieldName("imageType");
|
|
|
317 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ImageType"));
|
|
|
318 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentImageType"));
|
|
|
319 |
elemField.setMinOccurs(0);
|
|
|
320 |
elemField.setNillable(false);
|
|
|
321 |
typeDesc.addFieldDesc(elemField);
|
|
|
322 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
323 |
elemField.setFieldName("stockType");
|
|
|
324 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "StockType"));
|
|
|
325 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentStockType"));
|
|
|
326 |
elemField.setMinOccurs(0);
|
|
|
327 |
elemField.setNillable(false);
|
|
|
328 |
typeDesc.addFieldDesc(elemField);
|
|
|
329 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
330 |
elemField.setFieldName("provideInstructions");
|
|
|
331 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ProvideInstructions"));
|
|
|
332 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
|
|
333 |
elemField.setMinOccurs(0);
|
|
|
334 |
elemField.setNillable(false);
|
|
|
335 |
typeDesc.addFieldDesc(elemField);
|
|
|
336 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
337 |
elemField.setFieldName("localization");
|
|
|
338 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Localization"));
|
|
|
339 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Localization"));
|
|
|
340 |
elemField.setMinOccurs(0);
|
|
|
341 |
elemField.setNillable(false);
|
|
|
342 |
typeDesc.addFieldDesc(elemField);
|
|
|
343 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
344 |
elemField.setFieldName("customDocumentIdentifier");
|
|
|
345 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomDocumentIdentifier"));
|
|
|
346 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
347 |
elemField.setMinOccurs(0);
|
|
|
348 |
elemField.setNillable(false);
|
|
|
349 |
typeDesc.addFieldDesc(elemField);
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
/**
|
|
|
353 |
* Return type metadata object
|
|
|
354 |
*/
|
|
|
355 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
356 |
return typeDesc;
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
/**
|
|
|
360 |
* Get Custom Serializer
|
|
|
361 |
*/
|
|
|
362 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
363 |
java.lang.String mechType,
|
|
|
364 |
java.lang.Class _javaType,
|
|
|
365 |
javax.xml.namespace.QName _xmlType) {
|
|
|
366 |
return
|
|
|
367 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
368 |
_javaType, _xmlType, typeDesc);
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
/**
|
|
|
372 |
* Get Custom Deserializer
|
|
|
373 |
*/
|
|
|
374 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
375 |
java.lang.String mechType,
|
|
|
376 |
java.lang.Class _javaType,
|
|
|
377 |
javax.xml.namespace.QName _xmlType) {
|
|
|
378 |
return
|
|
|
379 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
380 |
_javaType, _xmlType, typeDesc);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
}
|