| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* Op900Detail.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 |
* The instructions indicating how to print the OP-900 form for hazardous
|
|
|
13 |
* materials packages.
|
|
|
14 |
*/
|
|
|
15 |
public class Op900Detail implements java.io.Serializable {
|
|
|
16 |
/* Specifies characteristics of a shipping document to be produced. */
|
|
|
17 |
private com.fedex.ship.stub.ShippingDocumentFormat format;
|
|
|
18 |
|
|
|
19 |
/* Identifies which reference type (from the package's customer
|
|
|
20 |
* references) is to be used as the source for the reference on this
|
|
|
21 |
* OP-900. */
|
|
|
22 |
private com.fedex.ship.stub.CustomerReferenceType reference;
|
|
|
23 |
|
|
|
24 |
/* Specifies the usage and identification of customer supplied
|
|
|
25 |
* images to be used on this document. */
|
|
|
26 |
private com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages;
|
|
|
27 |
|
|
|
28 |
/* Data field to be used when a name is to be printed in the document
|
|
|
29 |
* instead of (or in addition to) a signature image. */
|
|
|
30 |
private java.lang.String signatureName;
|
|
|
31 |
|
|
|
32 |
public Op900Detail() {
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public Op900Detail(
|
|
|
36 |
com.fedex.ship.stub.ShippingDocumentFormat format,
|
|
|
37 |
com.fedex.ship.stub.CustomerReferenceType reference,
|
|
|
38 |
com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages,
|
|
|
39 |
java.lang.String signatureName) {
|
|
|
40 |
this.format = format;
|
|
|
41 |
this.reference = reference;
|
|
|
42 |
this.customerImageUsages = customerImageUsages;
|
|
|
43 |
this.signatureName = signatureName;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
/**
|
|
|
48 |
* Gets the format value for this Op900Detail.
|
|
|
49 |
*
|
|
|
50 |
* @return format * Specifies characteristics of a shipping document to be produced.
|
|
|
51 |
*/
|
|
|
52 |
public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
|
|
|
53 |
return format;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
/**
|
|
|
58 |
* Sets the format value for this Op900Detail.
|
|
|
59 |
*
|
|
|
60 |
* @param format * Specifies characteristics of a shipping document to be produced.
|
|
|
61 |
*/
|
|
|
62 |
public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
|
|
|
63 |
this.format = format;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Gets the reference value for this Op900Detail.
|
|
|
69 |
*
|
|
|
70 |
* @return reference * Identifies which reference type (from the package's customer
|
|
|
71 |
* references) is to be used as the source for the reference on this
|
|
|
72 |
* OP-900.
|
|
|
73 |
*/
|
|
|
74 |
public com.fedex.ship.stub.CustomerReferenceType getReference() {
|
|
|
75 |
return reference;
|
|
|
76 |
}
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Sets the reference value for this Op900Detail.
|
|
|
81 |
*
|
|
|
82 |
* @param reference * Identifies which reference type (from the package's customer
|
|
|
83 |
* references) is to be used as the source for the reference on this
|
|
|
84 |
* OP-900.
|
|
|
85 |
*/
|
|
|
86 |
public void setReference(com.fedex.ship.stub.CustomerReferenceType reference) {
|
|
|
87 |
this.reference = reference;
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* Gets the customerImageUsages value for this Op900Detail.
|
|
|
93 |
*
|
|
|
94 |
* @return customerImageUsages * Specifies the usage and identification of customer supplied
|
|
|
95 |
* images to be used on this document.
|
|
|
96 |
*/
|
|
|
97 |
public com.fedex.ship.stub.CustomerImageUsage[] getCustomerImageUsages() {
|
|
|
98 |
return customerImageUsages;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* Sets the customerImageUsages value for this Op900Detail.
|
|
|
104 |
*
|
|
|
105 |
* @param customerImageUsages * Specifies the usage and identification of customer supplied
|
|
|
106 |
* images to be used on this document.
|
|
|
107 |
*/
|
|
|
108 |
public void setCustomerImageUsages(com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
|
|
|
109 |
this.customerImageUsages = customerImageUsages;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public com.fedex.ship.stub.CustomerImageUsage getCustomerImageUsages(int i) {
|
|
|
113 |
return this.customerImageUsages[i];
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public void setCustomerImageUsages(int i, com.fedex.ship.stub.CustomerImageUsage _value) {
|
|
|
117 |
this.customerImageUsages[i] = _value;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Gets the signatureName value for this Op900Detail.
|
|
|
123 |
*
|
|
|
124 |
* @return signatureName * Data field to be used when a name is to be printed in the document
|
|
|
125 |
* instead of (or in addition to) a signature image.
|
|
|
126 |
*/
|
|
|
127 |
public java.lang.String getSignatureName() {
|
|
|
128 |
return signatureName;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* Sets the signatureName value for this Op900Detail.
|
|
|
134 |
*
|
|
|
135 |
* @param signatureName * Data field to be used when a name is to be printed in the document
|
|
|
136 |
* instead of (or in addition to) a signature image.
|
|
|
137 |
*/
|
|
|
138 |
public void setSignatureName(java.lang.String signatureName) {
|
|
|
139 |
this.signatureName = signatureName;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
private java.lang.Object __equalsCalc = null;
|
|
|
143 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
144 |
if (!(obj instanceof Op900Detail)) return false;
|
|
|
145 |
Op900Detail other = (Op900Detail) obj;
|
|
|
146 |
if (obj == null) return false;
|
|
|
147 |
if (this == obj) return true;
|
|
|
148 |
if (__equalsCalc != null) {
|
|
|
149 |
return (__equalsCalc == obj);
|
|
|
150 |
}
|
|
|
151 |
__equalsCalc = obj;
|
|
|
152 |
boolean _equals;
|
|
|
153 |
_equals = true &&
|
|
|
154 |
((this.format==null && other.getFormat()==null) ||
|
|
|
155 |
(this.format!=null &&
|
|
|
156 |
this.format.equals(other.getFormat()))) &&
|
|
|
157 |
((this.reference==null && other.getReference()==null) ||
|
|
|
158 |
(this.reference!=null &&
|
|
|
159 |
this.reference.equals(other.getReference()))) &&
|
|
|
160 |
((this.customerImageUsages==null && other.getCustomerImageUsages()==null) ||
|
|
|
161 |
(this.customerImageUsages!=null &&
|
|
|
162 |
java.util.Arrays.equals(this.customerImageUsages, other.getCustomerImageUsages()))) &&
|
|
|
163 |
((this.signatureName==null && other.getSignatureName()==null) ||
|
|
|
164 |
(this.signatureName!=null &&
|
|
|
165 |
this.signatureName.equals(other.getSignatureName())));
|
|
|
166 |
__equalsCalc = null;
|
|
|
167 |
return _equals;
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
private boolean __hashCodeCalc = false;
|
|
|
171 |
public synchronized int hashCode() {
|
|
|
172 |
if (__hashCodeCalc) {
|
|
|
173 |
return 0;
|
|
|
174 |
}
|
|
|
175 |
__hashCodeCalc = true;
|
|
|
176 |
int _hashCode = 1;
|
|
|
177 |
if (getFormat() != null) {
|
|
|
178 |
_hashCode += getFormat().hashCode();
|
|
|
179 |
}
|
|
|
180 |
if (getReference() != null) {
|
|
|
181 |
_hashCode += getReference().hashCode();
|
|
|
182 |
}
|
|
|
183 |
if (getCustomerImageUsages() != null) {
|
|
|
184 |
for (int i=0;
|
|
|
185 |
i<java.lang.reflect.Array.getLength(getCustomerImageUsages());
|
|
|
186 |
i++) {
|
|
|
187 |
java.lang.Object obj = java.lang.reflect.Array.get(getCustomerImageUsages(), i);
|
|
|
188 |
if (obj != null &&
|
|
|
189 |
!obj.getClass().isArray()) {
|
|
|
190 |
_hashCode += obj.hashCode();
|
|
|
191 |
}
|
|
|
192 |
}
|
|
|
193 |
}
|
|
|
194 |
if (getSignatureName() != null) {
|
|
|
195 |
_hashCode += getSignatureName().hashCode();
|
|
|
196 |
}
|
|
|
197 |
__hashCodeCalc = false;
|
|
|
198 |
return _hashCode;
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
// Type metadata
|
|
|
202 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
203 |
new org.apache.axis.description.TypeDesc(Op900Detail.class, true);
|
|
|
204 |
|
|
|
205 |
static {
|
|
|
206 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Op900Detail"));
|
|
|
207 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
208 |
elemField.setFieldName("format");
|
|
|
209 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
|
|
|
210 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
|
|
|
211 |
elemField.setMinOccurs(0);
|
|
|
212 |
elemField.setNillable(false);
|
|
|
213 |
typeDesc.addFieldDesc(elemField);
|
|
|
214 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
215 |
elemField.setFieldName("reference");
|
|
|
216 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Reference"));
|
|
|
217 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerReferenceType"));
|
|
|
218 |
elemField.setMinOccurs(0);
|
|
|
219 |
elemField.setNillable(false);
|
|
|
220 |
typeDesc.addFieldDesc(elemField);
|
|
|
221 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
222 |
elemField.setFieldName("customerImageUsages");
|
|
|
223 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsages"));
|
|
|
224 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsage"));
|
|
|
225 |
elemField.setMinOccurs(0);
|
|
|
226 |
elemField.setNillable(false);
|
|
|
227 |
elemField.setMaxOccursUnbounded(true);
|
|
|
228 |
typeDesc.addFieldDesc(elemField);
|
|
|
229 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
230 |
elemField.setFieldName("signatureName");
|
|
|
231 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SignatureName"));
|
|
|
232 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
233 |
elemField.setMinOccurs(0);
|
|
|
234 |
elemField.setNillable(false);
|
|
|
235 |
typeDesc.addFieldDesc(elemField);
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
/**
|
|
|
239 |
* Return type metadata object
|
|
|
240 |
*/
|
|
|
241 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
242 |
return typeDesc;
|
|
|
243 |
}
|
|
|
244 |
|
|
|
245 |
/**
|
|
|
246 |
* Get Custom Serializer
|
|
|
247 |
*/
|
|
|
248 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
249 |
java.lang.String mechType,
|
|
|
250 |
java.lang.Class _javaType,
|
|
|
251 |
javax.xml.namespace.QName _xmlType) {
|
|
|
252 |
return
|
|
|
253 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
254 |
_javaType, _xmlType, typeDesc);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
/**
|
|
|
258 |
* Get Custom Deserializer
|
|
|
259 |
*/
|
|
|
260 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
261 |
java.lang.String mechType,
|
|
|
262 |
java.lang.Class _javaType,
|
|
|
263 |
javax.xml.namespace.QName _xmlType) {
|
|
|
264 |
return
|
|
|
265 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
266 |
_javaType, _xmlType, typeDesc);
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
}
|