| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* CustomDocumentDetail.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 |
* Data required to produce a custom-specified document, either at
|
|
|
13 |
* shipment or package level.
|
|
|
14 |
*/
|
|
|
15 |
public class CustomDocumentDetail implements java.io.Serializable {
|
|
|
16 |
/* Common information controlling document production. */
|
|
|
17 |
private com.fedex.ship.stub.ShippingDocumentFormat format;
|
|
|
18 |
|
|
|
19 |
/* Applicable only to documents produced on thermal printers with
|
|
|
20 |
* roll stock. */
|
|
|
21 |
private com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation;
|
|
|
22 |
|
|
|
23 |
/* Applicable only to documents produced on thermal printers with
|
|
|
24 |
* roll stock. */
|
|
|
25 |
private com.fedex.ship.stub.LabelRotationType labelRotation;
|
|
|
26 |
|
|
|
27 |
/* Identifies the formatting specification used to construct this
|
|
|
28 |
* custom document. */
|
|
|
29 |
private java.lang.String specificationId;
|
|
|
30 |
|
|
|
31 |
/* Identifies the individual document specified by the client. */
|
|
|
32 |
private java.lang.String customDocumentIdentifier;
|
|
|
33 |
|
|
|
34 |
/* If provided, thermal documents will include specified doc tab
|
|
|
35 |
* content. If omitted, document will be produced without doc tab content. */
|
|
|
36 |
private com.fedex.ship.stub.DocTabContent docTabContent;
|
|
|
37 |
|
|
|
38 |
public CustomDocumentDetail() {
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public CustomDocumentDetail(
|
|
|
42 |
com.fedex.ship.stub.ShippingDocumentFormat format,
|
|
|
43 |
com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation,
|
|
|
44 |
com.fedex.ship.stub.LabelRotationType labelRotation,
|
|
|
45 |
java.lang.String specificationId,
|
|
|
46 |
java.lang.String customDocumentIdentifier,
|
|
|
47 |
com.fedex.ship.stub.DocTabContent docTabContent) {
|
|
|
48 |
this.format = format;
|
|
|
49 |
this.labelPrintingOrientation = labelPrintingOrientation;
|
|
|
50 |
this.labelRotation = labelRotation;
|
|
|
51 |
this.specificationId = specificationId;
|
|
|
52 |
this.customDocumentIdentifier = customDocumentIdentifier;
|
|
|
53 |
this.docTabContent = docTabContent;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
/**
|
|
|
58 |
* Gets the format value for this CustomDocumentDetail.
|
|
|
59 |
*
|
|
|
60 |
* @return format * Common information controlling document production.
|
|
|
61 |
*/
|
|
|
62 |
public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
|
|
|
63 |
return format;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Sets the format value for this CustomDocumentDetail.
|
|
|
69 |
*
|
|
|
70 |
* @param format * Common information controlling document production.
|
|
|
71 |
*/
|
|
|
72 |
public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
|
|
|
73 |
this.format = format;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Gets the labelPrintingOrientation value for this CustomDocumentDetail.
|
|
|
79 |
*
|
|
|
80 |
* @return labelPrintingOrientation * Applicable only to documents produced on thermal printers with
|
|
|
81 |
* roll stock.
|
|
|
82 |
*/
|
|
|
83 |
public com.fedex.ship.stub.LabelPrintingOrientationType getLabelPrintingOrientation() {
|
|
|
84 |
return labelPrintingOrientation;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Sets the labelPrintingOrientation value for this CustomDocumentDetail.
|
|
|
90 |
*
|
|
|
91 |
* @param labelPrintingOrientation * Applicable only to documents produced on thermal printers with
|
|
|
92 |
* roll stock.
|
|
|
93 |
*/
|
|
|
94 |
public void setLabelPrintingOrientation(com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation) {
|
|
|
95 |
this.labelPrintingOrientation = labelPrintingOrientation;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Gets the labelRotation value for this CustomDocumentDetail.
|
|
|
101 |
*
|
|
|
102 |
* @return labelRotation * Applicable only to documents produced on thermal printers with
|
|
|
103 |
* roll stock.
|
|
|
104 |
*/
|
|
|
105 |
public com.fedex.ship.stub.LabelRotationType getLabelRotation() {
|
|
|
106 |
return labelRotation;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Sets the labelRotation value for this CustomDocumentDetail.
|
|
|
112 |
*
|
|
|
113 |
* @param labelRotation * Applicable only to documents produced on thermal printers with
|
|
|
114 |
* roll stock.
|
|
|
115 |
*/
|
|
|
116 |
public void setLabelRotation(com.fedex.ship.stub.LabelRotationType labelRotation) {
|
|
|
117 |
this.labelRotation = labelRotation;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Gets the specificationId value for this CustomDocumentDetail.
|
|
|
123 |
*
|
|
|
124 |
* @return specificationId * Identifies the formatting specification used to construct this
|
|
|
125 |
* custom document.
|
|
|
126 |
*/
|
|
|
127 |
public java.lang.String getSpecificationId() {
|
|
|
128 |
return specificationId;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* Sets the specificationId value for this CustomDocumentDetail.
|
|
|
134 |
*
|
|
|
135 |
* @param specificationId * Identifies the formatting specification used to construct this
|
|
|
136 |
* custom document.
|
|
|
137 |
*/
|
|
|
138 |
public void setSpecificationId(java.lang.String specificationId) {
|
|
|
139 |
this.specificationId = specificationId;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
/**
|
|
|
144 |
* Gets the customDocumentIdentifier value for this CustomDocumentDetail.
|
|
|
145 |
*
|
|
|
146 |
* @return customDocumentIdentifier * Identifies the individual document specified by the client.
|
|
|
147 |
*/
|
|
|
148 |
public java.lang.String getCustomDocumentIdentifier() {
|
|
|
149 |
return customDocumentIdentifier;
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
/**
|
|
|
154 |
* Sets the customDocumentIdentifier value for this CustomDocumentDetail.
|
|
|
155 |
*
|
|
|
156 |
* @param customDocumentIdentifier * Identifies the individual document specified by the client.
|
|
|
157 |
*/
|
|
|
158 |
public void setCustomDocumentIdentifier(java.lang.String customDocumentIdentifier) {
|
|
|
159 |
this.customDocumentIdentifier = customDocumentIdentifier;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
/**
|
|
|
164 |
* Gets the docTabContent value for this CustomDocumentDetail.
|
|
|
165 |
*
|
|
|
166 |
* @return docTabContent * If provided, thermal documents will include specified doc tab
|
|
|
167 |
* content. If omitted, document will be produced without doc tab content.
|
|
|
168 |
*/
|
|
|
169 |
public com.fedex.ship.stub.DocTabContent getDocTabContent() {
|
|
|
170 |
return docTabContent;
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
/**
|
|
|
175 |
* Sets the docTabContent value for this CustomDocumentDetail.
|
|
|
176 |
*
|
|
|
177 |
* @param docTabContent * If provided, thermal documents will include specified doc tab
|
|
|
178 |
* content. If omitted, document will be produced without doc tab content.
|
|
|
179 |
*/
|
|
|
180 |
public void setDocTabContent(com.fedex.ship.stub.DocTabContent docTabContent) {
|
|
|
181 |
this.docTabContent = docTabContent;
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
private java.lang.Object __equalsCalc = null;
|
|
|
185 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
186 |
if (!(obj instanceof CustomDocumentDetail)) return false;
|
|
|
187 |
CustomDocumentDetail other = (CustomDocumentDetail) obj;
|
|
|
188 |
if (obj == null) return false;
|
|
|
189 |
if (this == obj) return true;
|
|
|
190 |
if (__equalsCalc != null) {
|
|
|
191 |
return (__equalsCalc == obj);
|
|
|
192 |
}
|
|
|
193 |
__equalsCalc = obj;
|
|
|
194 |
boolean _equals;
|
|
|
195 |
_equals = true &&
|
|
|
196 |
((this.format==null && other.getFormat()==null) ||
|
|
|
197 |
(this.format!=null &&
|
|
|
198 |
this.format.equals(other.getFormat()))) &&
|
|
|
199 |
((this.labelPrintingOrientation==null && other.getLabelPrintingOrientation()==null) ||
|
|
|
200 |
(this.labelPrintingOrientation!=null &&
|
|
|
201 |
this.labelPrintingOrientation.equals(other.getLabelPrintingOrientation()))) &&
|
|
|
202 |
((this.labelRotation==null && other.getLabelRotation()==null) ||
|
|
|
203 |
(this.labelRotation!=null &&
|
|
|
204 |
this.labelRotation.equals(other.getLabelRotation()))) &&
|
|
|
205 |
((this.specificationId==null && other.getSpecificationId()==null) ||
|
|
|
206 |
(this.specificationId!=null &&
|
|
|
207 |
this.specificationId.equals(other.getSpecificationId()))) &&
|
|
|
208 |
((this.customDocumentIdentifier==null && other.getCustomDocumentIdentifier()==null) ||
|
|
|
209 |
(this.customDocumentIdentifier!=null &&
|
|
|
210 |
this.customDocumentIdentifier.equals(other.getCustomDocumentIdentifier()))) &&
|
|
|
211 |
((this.docTabContent==null && other.getDocTabContent()==null) ||
|
|
|
212 |
(this.docTabContent!=null &&
|
|
|
213 |
this.docTabContent.equals(other.getDocTabContent())));
|
|
|
214 |
__equalsCalc = null;
|
|
|
215 |
return _equals;
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
private boolean __hashCodeCalc = false;
|
|
|
219 |
public synchronized int hashCode() {
|
|
|
220 |
if (__hashCodeCalc) {
|
|
|
221 |
return 0;
|
|
|
222 |
}
|
|
|
223 |
__hashCodeCalc = true;
|
|
|
224 |
int _hashCode = 1;
|
|
|
225 |
if (getFormat() != null) {
|
|
|
226 |
_hashCode += getFormat().hashCode();
|
|
|
227 |
}
|
|
|
228 |
if (getLabelPrintingOrientation() != null) {
|
|
|
229 |
_hashCode += getLabelPrintingOrientation().hashCode();
|
|
|
230 |
}
|
|
|
231 |
if (getLabelRotation() != null) {
|
|
|
232 |
_hashCode += getLabelRotation().hashCode();
|
|
|
233 |
}
|
|
|
234 |
if (getSpecificationId() != null) {
|
|
|
235 |
_hashCode += getSpecificationId().hashCode();
|
|
|
236 |
}
|
|
|
237 |
if (getCustomDocumentIdentifier() != null) {
|
|
|
238 |
_hashCode += getCustomDocumentIdentifier().hashCode();
|
|
|
239 |
}
|
|
|
240 |
if (getDocTabContent() != null) {
|
|
|
241 |
_hashCode += getDocTabContent().hashCode();
|
|
|
242 |
}
|
|
|
243 |
__hashCodeCalc = false;
|
|
|
244 |
return _hashCode;
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
// Type metadata
|
|
|
248 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
249 |
new org.apache.axis.description.TypeDesc(CustomDocumentDetail.class, true);
|
|
|
250 |
|
|
|
251 |
static {
|
|
|
252 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomDocumentDetail"));
|
|
|
253 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
254 |
elemField.setFieldName("format");
|
|
|
255 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
|
|
|
256 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
|
|
|
257 |
elemField.setMinOccurs(0);
|
|
|
258 |
elemField.setNillable(false);
|
|
|
259 |
typeDesc.addFieldDesc(elemField);
|
|
|
260 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
261 |
elemField.setFieldName("labelPrintingOrientation");
|
|
|
262 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelPrintingOrientation"));
|
|
|
263 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelPrintingOrientationType"));
|
|
|
264 |
elemField.setMinOccurs(0);
|
|
|
265 |
elemField.setNillable(false);
|
|
|
266 |
typeDesc.addFieldDesc(elemField);
|
|
|
267 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
268 |
elemField.setFieldName("labelRotation");
|
|
|
269 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelRotation"));
|
|
|
270 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelRotationType"));
|
|
|
271 |
elemField.setMinOccurs(0);
|
|
|
272 |
elemField.setNillable(false);
|
|
|
273 |
typeDesc.addFieldDesc(elemField);
|
|
|
274 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
275 |
elemField.setFieldName("specificationId");
|
|
|
276 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SpecificationId"));
|
|
|
277 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
278 |
elemField.setMinOccurs(0);
|
|
|
279 |
elemField.setNillable(false);
|
|
|
280 |
typeDesc.addFieldDesc(elemField);
|
|
|
281 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
282 |
elemField.setFieldName("customDocumentIdentifier");
|
|
|
283 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomDocumentIdentifier"));
|
|
|
284 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
285 |
elemField.setMinOccurs(0);
|
|
|
286 |
elemField.setNillable(false);
|
|
|
287 |
typeDesc.addFieldDesc(elemField);
|
|
|
288 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
289 |
elemField.setFieldName("docTabContent");
|
|
|
290 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
|
|
|
291 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
|
|
|
292 |
elemField.setMinOccurs(0);
|
|
|
293 |
elemField.setNillable(false);
|
|
|
294 |
typeDesc.addFieldDesc(elemField);
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
/**
|
|
|
298 |
* Return type metadata object
|
|
|
299 |
*/
|
|
|
300 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
301 |
return typeDesc;
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
/**
|
|
|
305 |
* Get Custom Serializer
|
|
|
306 |
*/
|
|
|
307 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
308 |
java.lang.String mechType,
|
|
|
309 |
java.lang.Class _javaType,
|
|
|
310 |
javax.xml.namespace.QName _xmlType) {
|
|
|
311 |
return
|
|
|
312 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
313 |
_javaType, _xmlType, typeDesc);
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
/**
|
|
|
317 |
* Get Custom Deserializer
|
|
|
318 |
*/
|
|
|
319 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
320 |
java.lang.String mechType,
|
|
|
321 |
java.lang.Class _javaType,
|
|
|
322 |
javax.xml.namespace.QName _xmlType) {
|
|
|
323 |
return
|
|
|
324 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
325 |
_javaType, _xmlType, typeDesc);
|
|
|
326 |
}
|
|
|
327 |
|
|
|
328 |
}
|