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