| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* FreightAddressLabelDetail.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 the Freight handling-unit-level address
|
|
|
13 |
* labels. Note that the number of UNIQUE labels (the N as in 1 of N,
|
|
|
14 |
* 2 of N, etc.) is determined by total handling units.
|
|
|
15 |
*/
|
|
|
16 |
public class FreightAddressLabelDetail implements java.io.Serializable {
|
|
|
17 |
private com.fedex.ship.stub.ShippingDocumentFormat format;
|
|
|
18 |
|
|
|
19 |
/* Indicates the number of copies to be produced for each unique
|
|
|
20 |
* label. */
|
|
|
21 |
private org.apache.axis.types.NonNegativeInteger copies;
|
|
|
22 |
|
|
|
23 |
/* Specifies the quadrant of the page on which the label printing
|
|
|
24 |
* will start. */
|
|
|
25 |
private com.fedex.ship.stub.PageQuadrantType startingPosition;
|
|
|
26 |
|
|
|
27 |
/* If omitted, no doc tab will be produced (i.e. default = former
|
|
|
28 |
* NONE type). */
|
|
|
29 |
private com.fedex.ship.stub.DocTabContent docTabContent;
|
|
|
30 |
|
|
|
31 |
public FreightAddressLabelDetail() {
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public FreightAddressLabelDetail(
|
|
|
35 |
com.fedex.ship.stub.ShippingDocumentFormat format,
|
|
|
36 |
org.apache.axis.types.NonNegativeInteger copies,
|
|
|
37 |
com.fedex.ship.stub.PageQuadrantType startingPosition,
|
|
|
38 |
com.fedex.ship.stub.DocTabContent docTabContent) {
|
|
|
39 |
this.format = format;
|
|
|
40 |
this.copies = copies;
|
|
|
41 |
this.startingPosition = startingPosition;
|
|
|
42 |
this.docTabContent = docTabContent;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Gets the format value for this FreightAddressLabelDetail.
|
|
|
48 |
*
|
|
|
49 |
* @return format
|
|
|
50 |
*/
|
|
|
51 |
public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
|
|
|
52 |
return format;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
/**
|
|
|
57 |
* Sets the format value for this FreightAddressLabelDetail.
|
|
|
58 |
*
|
|
|
59 |
* @param format
|
|
|
60 |
*/
|
|
|
61 |
public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
|
|
|
62 |
this.format = format;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Gets the copies value for this FreightAddressLabelDetail.
|
|
|
68 |
*
|
|
|
69 |
* @return copies * Indicates the number of copies to be produced for each unique
|
|
|
70 |
* label.
|
|
|
71 |
*/
|
|
|
72 |
public org.apache.axis.types.NonNegativeInteger getCopies() {
|
|
|
73 |
return copies;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Sets the copies value for this FreightAddressLabelDetail.
|
|
|
79 |
*
|
|
|
80 |
* @param copies * Indicates the number of copies to be produced for each unique
|
|
|
81 |
* label.
|
|
|
82 |
*/
|
|
|
83 |
public void setCopies(org.apache.axis.types.NonNegativeInteger copies) {
|
|
|
84 |
this.copies = copies;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Gets the startingPosition value for this FreightAddressLabelDetail.
|
|
|
90 |
*
|
|
|
91 |
* @return startingPosition * Specifies the quadrant of the page on which the label printing
|
|
|
92 |
* will start.
|
|
|
93 |
*/
|
|
|
94 |
public com.fedex.ship.stub.PageQuadrantType getStartingPosition() {
|
|
|
95 |
return startingPosition;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Sets the startingPosition value for this FreightAddressLabelDetail.
|
|
|
101 |
*
|
|
|
102 |
* @param startingPosition * Specifies the quadrant of the page on which the label printing
|
|
|
103 |
* will start.
|
|
|
104 |
*/
|
|
|
105 |
public void setStartingPosition(com.fedex.ship.stub.PageQuadrantType startingPosition) {
|
|
|
106 |
this.startingPosition = startingPosition;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Gets the docTabContent value for this FreightAddressLabelDetail.
|
|
|
112 |
*
|
|
|
113 |
* @return docTabContent * If omitted, no doc tab will be produced (i.e. default = former
|
|
|
114 |
* NONE type).
|
|
|
115 |
*/
|
|
|
116 |
public com.fedex.ship.stub.DocTabContent getDocTabContent() {
|
|
|
117 |
return docTabContent;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Sets the docTabContent value for this FreightAddressLabelDetail.
|
|
|
123 |
*
|
|
|
124 |
* @param docTabContent * If omitted, no doc tab will be produced (i.e. default = former
|
|
|
125 |
* NONE type).
|
|
|
126 |
*/
|
|
|
127 |
public void setDocTabContent(com.fedex.ship.stub.DocTabContent docTabContent) {
|
|
|
128 |
this.docTabContent = docTabContent;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
private java.lang.Object __equalsCalc = null;
|
|
|
132 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
133 |
if (!(obj instanceof FreightAddressLabelDetail)) return false;
|
|
|
134 |
FreightAddressLabelDetail other = (FreightAddressLabelDetail) obj;
|
|
|
135 |
if (obj == null) return false;
|
|
|
136 |
if (this == obj) return true;
|
|
|
137 |
if (__equalsCalc != null) {
|
|
|
138 |
return (__equalsCalc == obj);
|
|
|
139 |
}
|
|
|
140 |
__equalsCalc = obj;
|
|
|
141 |
boolean _equals;
|
|
|
142 |
_equals = true &&
|
|
|
143 |
((this.format==null && other.getFormat()==null) ||
|
|
|
144 |
(this.format!=null &&
|
|
|
145 |
this.format.equals(other.getFormat()))) &&
|
|
|
146 |
((this.copies==null && other.getCopies()==null) ||
|
|
|
147 |
(this.copies!=null &&
|
|
|
148 |
this.copies.equals(other.getCopies()))) &&
|
|
|
149 |
((this.startingPosition==null && other.getStartingPosition()==null) ||
|
|
|
150 |
(this.startingPosition!=null &&
|
|
|
151 |
this.startingPosition.equals(other.getStartingPosition()))) &&
|
|
|
152 |
((this.docTabContent==null && other.getDocTabContent()==null) ||
|
|
|
153 |
(this.docTabContent!=null &&
|
|
|
154 |
this.docTabContent.equals(other.getDocTabContent())));
|
|
|
155 |
__equalsCalc = null;
|
|
|
156 |
return _equals;
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
private boolean __hashCodeCalc = false;
|
|
|
160 |
public synchronized int hashCode() {
|
|
|
161 |
if (__hashCodeCalc) {
|
|
|
162 |
return 0;
|
|
|
163 |
}
|
|
|
164 |
__hashCodeCalc = true;
|
|
|
165 |
int _hashCode = 1;
|
|
|
166 |
if (getFormat() != null) {
|
|
|
167 |
_hashCode += getFormat().hashCode();
|
|
|
168 |
}
|
|
|
169 |
if (getCopies() != null) {
|
|
|
170 |
_hashCode += getCopies().hashCode();
|
|
|
171 |
}
|
|
|
172 |
if (getStartingPosition() != null) {
|
|
|
173 |
_hashCode += getStartingPosition().hashCode();
|
|
|
174 |
}
|
|
|
175 |
if (getDocTabContent() != null) {
|
|
|
176 |
_hashCode += getDocTabContent().hashCode();
|
|
|
177 |
}
|
|
|
178 |
__hashCodeCalc = false;
|
|
|
179 |
return _hashCode;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
// Type metadata
|
|
|
183 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
184 |
new org.apache.axis.description.TypeDesc(FreightAddressLabelDetail.class, true);
|
|
|
185 |
|
|
|
186 |
static {
|
|
|
187 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightAddressLabelDetail"));
|
|
|
188 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
189 |
elemField.setFieldName("format");
|
|
|
190 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
|
|
|
191 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
|
|
|
192 |
elemField.setMinOccurs(0);
|
|
|
193 |
elemField.setNillable(false);
|
|
|
194 |
typeDesc.addFieldDesc(elemField);
|
|
|
195 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
196 |
elemField.setFieldName("copies");
|
|
|
197 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Copies"));
|
|
|
198 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
|
|
|
199 |
elemField.setMinOccurs(0);
|
|
|
200 |
elemField.setNillable(false);
|
|
|
201 |
typeDesc.addFieldDesc(elemField);
|
|
|
202 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
203 |
elemField.setFieldName("startingPosition");
|
|
|
204 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "StartingPosition"));
|
|
|
205 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PageQuadrantType"));
|
|
|
206 |
elemField.setMinOccurs(0);
|
|
|
207 |
elemField.setNillable(false);
|
|
|
208 |
typeDesc.addFieldDesc(elemField);
|
|
|
209 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
210 |
elemField.setFieldName("docTabContent");
|
|
|
211 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
|
|
|
212 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
|
|
|
213 |
elemField.setMinOccurs(0);
|
|
|
214 |
elemField.setNillable(false);
|
|
|
215 |
typeDesc.addFieldDesc(elemField);
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
/**
|
|
|
219 |
* Return type metadata object
|
|
|
220 |
*/
|
|
|
221 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
222 |
return typeDesc;
|
|
|
223 |
}
|
|
|
224 |
|
|
|
225 |
/**
|
|
|
226 |
* Get Custom Serializer
|
|
|
227 |
*/
|
|
|
228 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
229 |
java.lang.String mechType,
|
|
|
230 |
java.lang.Class _javaType,
|
|
|
231 |
javax.xml.namespace.QName _xmlType) {
|
|
|
232 |
return
|
|
|
233 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
234 |
_javaType, _xmlType, typeDesc);
|
|
|
235 |
}
|
|
|
236 |
|
|
|
237 |
/**
|
|
|
238 |
* Get Custom Deserializer
|
|
|
239 |
*/
|
|
|
240 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
241 |
java.lang.String mechType,
|
|
|
242 |
java.lang.Class _javaType,
|
|
|
243 |
javax.xml.namespace.QName _xmlType) {
|
|
|
244 |
return
|
|
|
245 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
246 |
_javaType, _xmlType, typeDesc);
|
|
|
247 |
}
|
|
|
248 |
|
|
|
249 |
}
|