| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* CustomLabelBarcodeEntry.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 |
* Constructed string, based on format and zero or more data fields,
|
|
|
13 |
* printed in specified barcode symbology.
|
|
|
14 |
*/
|
|
|
15 |
public class CustomLabelBarcodeEntry implements java.io.Serializable {
|
|
|
16 |
private com.fedex.ship.stub.CustomLabelPosition position;
|
|
|
17 |
|
|
|
18 |
private java.lang.String format;
|
|
|
19 |
|
|
|
20 |
private java.lang.String[] dataFields;
|
|
|
21 |
|
|
|
22 |
private java.lang.Integer barHeight;
|
|
|
23 |
|
|
|
24 |
/* Width of thinnest bar/space element in the barcode. */
|
|
|
25 |
private java.lang.Integer thinBarWidth;
|
|
|
26 |
|
|
|
27 |
private com.fedex.ship.stub.BarcodeSymbologyType barcodeSymbology;
|
|
|
28 |
|
|
|
29 |
public CustomLabelBarcodeEntry() {
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
public CustomLabelBarcodeEntry(
|
|
|
33 |
com.fedex.ship.stub.CustomLabelPosition position,
|
|
|
34 |
java.lang.String format,
|
|
|
35 |
java.lang.String[] dataFields,
|
|
|
36 |
java.lang.Integer barHeight,
|
|
|
37 |
java.lang.Integer thinBarWidth,
|
|
|
38 |
com.fedex.ship.stub.BarcodeSymbologyType barcodeSymbology) {
|
|
|
39 |
this.position = position;
|
|
|
40 |
this.format = format;
|
|
|
41 |
this.dataFields = dataFields;
|
|
|
42 |
this.barHeight = barHeight;
|
|
|
43 |
this.thinBarWidth = thinBarWidth;
|
|
|
44 |
this.barcodeSymbology = barcodeSymbology;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Gets the position value for this CustomLabelBarcodeEntry.
|
|
|
50 |
*
|
|
|
51 |
* @return position
|
|
|
52 |
*/
|
|
|
53 |
public com.fedex.ship.stub.CustomLabelPosition getPosition() {
|
|
|
54 |
return position;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* Sets the position value for this CustomLabelBarcodeEntry.
|
|
|
60 |
*
|
|
|
61 |
* @param position
|
|
|
62 |
*/
|
|
|
63 |
public void setPosition(com.fedex.ship.stub.CustomLabelPosition position) {
|
|
|
64 |
this.position = position;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* Gets the format value for this CustomLabelBarcodeEntry.
|
|
|
70 |
*
|
|
|
71 |
* @return format
|
|
|
72 |
*/
|
|
|
73 |
public java.lang.String getFormat() {
|
|
|
74 |
return format;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* Sets the format value for this CustomLabelBarcodeEntry.
|
|
|
80 |
*
|
|
|
81 |
* @param format
|
|
|
82 |
*/
|
|
|
83 |
public void setFormat(java.lang.String format) {
|
|
|
84 |
this.format = format;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Gets the dataFields value for this CustomLabelBarcodeEntry.
|
|
|
90 |
*
|
|
|
91 |
* @return dataFields
|
|
|
92 |
*/
|
|
|
93 |
public java.lang.String[] getDataFields() {
|
|
|
94 |
return dataFields;
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* Sets the dataFields value for this CustomLabelBarcodeEntry.
|
|
|
100 |
*
|
|
|
101 |
* @param dataFields
|
|
|
102 |
*/
|
|
|
103 |
public void setDataFields(java.lang.String[] dataFields) {
|
|
|
104 |
this.dataFields = dataFields;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public java.lang.String getDataFields(int i) {
|
|
|
108 |
return this.dataFields[i];
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public void setDataFields(int i, java.lang.String _value) {
|
|
|
112 |
this.dataFields[i] = _value;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
/**
|
|
|
117 |
* Gets the barHeight value for this CustomLabelBarcodeEntry.
|
|
|
118 |
*
|
|
|
119 |
* @return barHeight
|
|
|
120 |
*/
|
|
|
121 |
public java.lang.Integer getBarHeight() {
|
|
|
122 |
return barHeight;
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
/**
|
|
|
127 |
* Sets the barHeight value for this CustomLabelBarcodeEntry.
|
|
|
128 |
*
|
|
|
129 |
* @param barHeight
|
|
|
130 |
*/
|
|
|
131 |
public void setBarHeight(java.lang.Integer barHeight) {
|
|
|
132 |
this.barHeight = barHeight;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
/**
|
|
|
137 |
* Gets the thinBarWidth value for this CustomLabelBarcodeEntry.
|
|
|
138 |
*
|
|
|
139 |
* @return thinBarWidth * Width of thinnest bar/space element in the barcode.
|
|
|
140 |
*/
|
|
|
141 |
public java.lang.Integer getThinBarWidth() {
|
|
|
142 |
return thinBarWidth;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
/**
|
|
|
147 |
* Sets the thinBarWidth value for this CustomLabelBarcodeEntry.
|
|
|
148 |
*
|
|
|
149 |
* @param thinBarWidth * Width of thinnest bar/space element in the barcode.
|
|
|
150 |
*/
|
|
|
151 |
public void setThinBarWidth(java.lang.Integer thinBarWidth) {
|
|
|
152 |
this.thinBarWidth = thinBarWidth;
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
/**
|
|
|
157 |
* Gets the barcodeSymbology value for this CustomLabelBarcodeEntry.
|
|
|
158 |
*
|
|
|
159 |
* @return barcodeSymbology
|
|
|
160 |
*/
|
|
|
161 |
public com.fedex.ship.stub.BarcodeSymbologyType getBarcodeSymbology() {
|
|
|
162 |
return barcodeSymbology;
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
/**
|
|
|
167 |
* Sets the barcodeSymbology value for this CustomLabelBarcodeEntry.
|
|
|
168 |
*
|
|
|
169 |
* @param barcodeSymbology
|
|
|
170 |
*/
|
|
|
171 |
public void setBarcodeSymbology(com.fedex.ship.stub.BarcodeSymbologyType barcodeSymbology) {
|
|
|
172 |
this.barcodeSymbology = barcodeSymbology;
|
|
|
173 |
}
|
|
|
174 |
|
|
|
175 |
private java.lang.Object __equalsCalc = null;
|
|
|
176 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
177 |
if (!(obj instanceof CustomLabelBarcodeEntry)) return false;
|
|
|
178 |
CustomLabelBarcodeEntry other = (CustomLabelBarcodeEntry) obj;
|
|
|
179 |
if (obj == null) return false;
|
|
|
180 |
if (this == obj) return true;
|
|
|
181 |
if (__equalsCalc != null) {
|
|
|
182 |
return (__equalsCalc == obj);
|
|
|
183 |
}
|
|
|
184 |
__equalsCalc = obj;
|
|
|
185 |
boolean _equals;
|
|
|
186 |
_equals = true &&
|
|
|
187 |
((this.position==null && other.getPosition()==null) ||
|
|
|
188 |
(this.position!=null &&
|
|
|
189 |
this.position.equals(other.getPosition()))) &&
|
|
|
190 |
((this.format==null && other.getFormat()==null) ||
|
|
|
191 |
(this.format!=null &&
|
|
|
192 |
this.format.equals(other.getFormat()))) &&
|
|
|
193 |
((this.dataFields==null && other.getDataFields()==null) ||
|
|
|
194 |
(this.dataFields!=null &&
|
|
|
195 |
java.util.Arrays.equals(this.dataFields, other.getDataFields()))) &&
|
|
|
196 |
((this.barHeight==null && other.getBarHeight()==null) ||
|
|
|
197 |
(this.barHeight!=null &&
|
|
|
198 |
this.barHeight.equals(other.getBarHeight()))) &&
|
|
|
199 |
((this.thinBarWidth==null && other.getThinBarWidth()==null) ||
|
|
|
200 |
(this.thinBarWidth!=null &&
|
|
|
201 |
this.thinBarWidth.equals(other.getThinBarWidth()))) &&
|
|
|
202 |
((this.barcodeSymbology==null && other.getBarcodeSymbology()==null) ||
|
|
|
203 |
(this.barcodeSymbology!=null &&
|
|
|
204 |
this.barcodeSymbology.equals(other.getBarcodeSymbology())));
|
|
|
205 |
__equalsCalc = null;
|
|
|
206 |
return _equals;
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
private boolean __hashCodeCalc = false;
|
|
|
210 |
public synchronized int hashCode() {
|
|
|
211 |
if (__hashCodeCalc) {
|
|
|
212 |
return 0;
|
|
|
213 |
}
|
|
|
214 |
__hashCodeCalc = true;
|
|
|
215 |
int _hashCode = 1;
|
|
|
216 |
if (getPosition() != null) {
|
|
|
217 |
_hashCode += getPosition().hashCode();
|
|
|
218 |
}
|
|
|
219 |
if (getFormat() != null) {
|
|
|
220 |
_hashCode += getFormat().hashCode();
|
|
|
221 |
}
|
|
|
222 |
if (getDataFields() != null) {
|
|
|
223 |
for (int i=0;
|
|
|
224 |
i<java.lang.reflect.Array.getLength(getDataFields());
|
|
|
225 |
i++) {
|
|
|
226 |
java.lang.Object obj = java.lang.reflect.Array.get(getDataFields(), i);
|
|
|
227 |
if (obj != null &&
|
|
|
228 |
!obj.getClass().isArray()) {
|
|
|
229 |
_hashCode += obj.hashCode();
|
|
|
230 |
}
|
|
|
231 |
}
|
|
|
232 |
}
|
|
|
233 |
if (getBarHeight() != null) {
|
|
|
234 |
_hashCode += getBarHeight().hashCode();
|
|
|
235 |
}
|
|
|
236 |
if (getThinBarWidth() != null) {
|
|
|
237 |
_hashCode += getThinBarWidth().hashCode();
|
|
|
238 |
}
|
|
|
239 |
if (getBarcodeSymbology() != null) {
|
|
|
240 |
_hashCode += getBarcodeSymbology().hashCode();
|
|
|
241 |
}
|
|
|
242 |
__hashCodeCalc = false;
|
|
|
243 |
return _hashCode;
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
// Type metadata
|
|
|
247 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
248 |
new org.apache.axis.description.TypeDesc(CustomLabelBarcodeEntry.class, true);
|
|
|
249 |
|
|
|
250 |
static {
|
|
|
251 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelBarcodeEntry"));
|
|
|
252 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
253 |
elemField.setFieldName("position");
|
|
|
254 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Position"));
|
|
|
255 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelPosition"));
|
|
|
256 |
elemField.setNillable(false);
|
|
|
257 |
typeDesc.addFieldDesc(elemField);
|
|
|
258 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
259 |
elemField.setFieldName("format");
|
|
|
260 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
|
|
|
261 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
262 |
elemField.setMinOccurs(0);
|
|
|
263 |
elemField.setNillable(false);
|
|
|
264 |
typeDesc.addFieldDesc(elemField);
|
|
|
265 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
266 |
elemField.setFieldName("dataFields");
|
|
|
267 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DataFields"));
|
|
|
268 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
269 |
elemField.setMinOccurs(0);
|
|
|
270 |
elemField.setNillable(false);
|
|
|
271 |
elemField.setMaxOccursUnbounded(true);
|
|
|
272 |
typeDesc.addFieldDesc(elemField);
|
|
|
273 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
274 |
elemField.setFieldName("barHeight");
|
|
|
275 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BarHeight"));
|
|
|
276 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
|
277 |
elemField.setMinOccurs(0);
|
|
|
278 |
elemField.setNillable(false);
|
|
|
279 |
typeDesc.addFieldDesc(elemField);
|
|
|
280 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
281 |
elemField.setFieldName("thinBarWidth");
|
|
|
282 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ThinBarWidth"));
|
|
|
283 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
|
|
284 |
elemField.setMinOccurs(0);
|
|
|
285 |
elemField.setNillable(false);
|
|
|
286 |
typeDesc.addFieldDesc(elemField);
|
|
|
287 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
288 |
elemField.setFieldName("barcodeSymbology");
|
|
|
289 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BarcodeSymbology"));
|
|
|
290 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BarcodeSymbologyType"));
|
|
|
291 |
elemField.setNillable(false);
|
|
|
292 |
typeDesc.addFieldDesc(elemField);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
/**
|
|
|
296 |
* Return type metadata object
|
|
|
297 |
*/
|
|
|
298 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
299 |
return typeDesc;
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
/**
|
|
|
303 |
* Get Custom Serializer
|
|
|
304 |
*/
|
|
|
305 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
306 |
java.lang.String mechType,
|
|
|
307 |
java.lang.Class _javaType,
|
|
|
308 |
javax.xml.namespace.QName _xmlType) {
|
|
|
309 |
return
|
|
|
310 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
311 |
_javaType, _xmlType, typeDesc);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
/**
|
|
|
315 |
* Get Custom Deserializer
|
|
|
316 |
*/
|
|
|
317 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
318 |
java.lang.String mechType,
|
|
|
319 |
java.lang.Class _javaType,
|
|
|
320 |
javax.xml.namespace.QName _xmlType) {
|
|
|
321 |
return
|
|
|
322 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
323 |
_javaType, _xmlType, typeDesc);
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
}
|