| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* CertificateOfOriginDetail.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 Certificate of Origin
|
|
|
13 |
* ( e.g. whether or not to include the instructions, image type, etc
|
|
|
14 |
* ...)
|
|
|
15 |
*/
|
|
|
16 |
public class CertificateOfOriginDetail implements java.io.Serializable {
|
|
|
17 |
/* Specifies characteristics of a shipping document to be produced. */
|
|
|
18 |
private com.fedex.ship.stub.ShippingDocumentFormat documentFormat;
|
|
|
19 |
|
|
|
20 |
/* Specifies the usage and identification of customer supplied
|
|
|
21 |
* images to be used on this document. */
|
|
|
22 |
private com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages;
|
|
|
23 |
|
|
|
24 |
public CertificateOfOriginDetail() {
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public CertificateOfOriginDetail(
|
|
|
28 |
com.fedex.ship.stub.ShippingDocumentFormat documentFormat,
|
|
|
29 |
com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
|
|
|
30 |
this.documentFormat = documentFormat;
|
|
|
31 |
this.customerImageUsages = customerImageUsages;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
/**
|
|
|
36 |
* Gets the documentFormat value for this CertificateOfOriginDetail.
|
|
|
37 |
*
|
|
|
38 |
* @return documentFormat * Specifies characteristics of a shipping document to be produced.
|
|
|
39 |
*/
|
|
|
40 |
public com.fedex.ship.stub.ShippingDocumentFormat getDocumentFormat() {
|
|
|
41 |
return documentFormat;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* Sets the documentFormat value for this CertificateOfOriginDetail.
|
|
|
47 |
*
|
|
|
48 |
* @param documentFormat * Specifies characteristics of a shipping document to be produced.
|
|
|
49 |
*/
|
|
|
50 |
public void setDocumentFormat(com.fedex.ship.stub.ShippingDocumentFormat documentFormat) {
|
|
|
51 |
this.documentFormat = documentFormat;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
/**
|
|
|
56 |
* Gets the customerImageUsages value for this CertificateOfOriginDetail.
|
|
|
57 |
*
|
|
|
58 |
* @return customerImageUsages * Specifies the usage and identification of customer supplied
|
|
|
59 |
* images to be used on this document.
|
|
|
60 |
*/
|
|
|
61 |
public com.fedex.ship.stub.CustomerImageUsage[] getCustomerImageUsages() {
|
|
|
62 |
return customerImageUsages;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Sets the customerImageUsages value for this CertificateOfOriginDetail.
|
|
|
68 |
*
|
|
|
69 |
* @param customerImageUsages * Specifies the usage and identification of customer supplied
|
|
|
70 |
* images to be used on this document.
|
|
|
71 |
*/
|
|
|
72 |
public void setCustomerImageUsages(com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
|
|
|
73 |
this.customerImageUsages = customerImageUsages;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public com.fedex.ship.stub.CustomerImageUsage getCustomerImageUsages(int i) {
|
|
|
77 |
return this.customerImageUsages[i];
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public void setCustomerImageUsages(int i, com.fedex.ship.stub.CustomerImageUsage _value) {
|
|
|
81 |
this.customerImageUsages[i] = _value;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
private java.lang.Object __equalsCalc = null;
|
|
|
85 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
86 |
if (!(obj instanceof CertificateOfOriginDetail)) return false;
|
|
|
87 |
CertificateOfOriginDetail other = (CertificateOfOriginDetail) obj;
|
|
|
88 |
if (obj == null) return false;
|
|
|
89 |
if (this == obj) return true;
|
|
|
90 |
if (__equalsCalc != null) {
|
|
|
91 |
return (__equalsCalc == obj);
|
|
|
92 |
}
|
|
|
93 |
__equalsCalc = obj;
|
|
|
94 |
boolean _equals;
|
|
|
95 |
_equals = true &&
|
|
|
96 |
((this.documentFormat==null && other.getDocumentFormat()==null) ||
|
|
|
97 |
(this.documentFormat!=null &&
|
|
|
98 |
this.documentFormat.equals(other.getDocumentFormat()))) &&
|
|
|
99 |
((this.customerImageUsages==null && other.getCustomerImageUsages()==null) ||
|
|
|
100 |
(this.customerImageUsages!=null &&
|
|
|
101 |
java.util.Arrays.equals(this.customerImageUsages, other.getCustomerImageUsages())));
|
|
|
102 |
__equalsCalc = null;
|
|
|
103 |
return _equals;
|
|
|
104 |
}
|
|
|
105 |
|
|
|
106 |
private boolean __hashCodeCalc = false;
|
|
|
107 |
public synchronized int hashCode() {
|
|
|
108 |
if (__hashCodeCalc) {
|
|
|
109 |
return 0;
|
|
|
110 |
}
|
|
|
111 |
__hashCodeCalc = true;
|
|
|
112 |
int _hashCode = 1;
|
|
|
113 |
if (getDocumentFormat() != null) {
|
|
|
114 |
_hashCode += getDocumentFormat().hashCode();
|
|
|
115 |
}
|
|
|
116 |
if (getCustomerImageUsages() != null) {
|
|
|
117 |
for (int i=0;
|
|
|
118 |
i<java.lang.reflect.Array.getLength(getCustomerImageUsages());
|
|
|
119 |
i++) {
|
|
|
120 |
java.lang.Object obj = java.lang.reflect.Array.get(getCustomerImageUsages(), i);
|
|
|
121 |
if (obj != null &&
|
|
|
122 |
!obj.getClass().isArray()) {
|
|
|
123 |
_hashCode += obj.hashCode();
|
|
|
124 |
}
|
|
|
125 |
}
|
|
|
126 |
}
|
|
|
127 |
__hashCodeCalc = false;
|
|
|
128 |
return _hashCode;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
// Type metadata
|
|
|
132 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
133 |
new org.apache.axis.description.TypeDesc(CertificateOfOriginDetail.class, true);
|
|
|
134 |
|
|
|
135 |
static {
|
|
|
136 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CertificateOfOriginDetail"));
|
|
|
137 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
138 |
elemField.setFieldName("documentFormat");
|
|
|
139 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocumentFormat"));
|
|
|
140 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
|
|
|
141 |
elemField.setMinOccurs(0);
|
|
|
142 |
elemField.setNillable(false);
|
|
|
143 |
typeDesc.addFieldDesc(elemField);
|
|
|
144 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
145 |
elemField.setFieldName("customerImageUsages");
|
|
|
146 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsages"));
|
|
|
147 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsage"));
|
|
|
148 |
elemField.setMinOccurs(0);
|
|
|
149 |
elemField.setNillable(false);
|
|
|
150 |
elemField.setMaxOccursUnbounded(true);
|
|
|
151 |
typeDesc.addFieldDesc(elemField);
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
/**
|
|
|
155 |
* Return type metadata object
|
|
|
156 |
*/
|
|
|
157 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
158 |
return typeDesc;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
/**
|
|
|
162 |
* Get Custom Serializer
|
|
|
163 |
*/
|
|
|
164 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
165 |
java.lang.String mechType,
|
|
|
166 |
java.lang.Class _javaType,
|
|
|
167 |
javax.xml.namespace.QName _xmlType) {
|
|
|
168 |
return
|
|
|
169 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
170 |
_javaType, _xmlType, typeDesc);
|
|
|
171 |
}
|
|
|
172 |
|
|
|
173 |
/**
|
|
|
174 |
* Get Custom Deserializer
|
|
|
175 |
*/
|
|
|
176 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
177 |
java.lang.String mechType,
|
|
|
178 |
java.lang.Class _javaType,
|
|
|
179 |
javax.xml.namespace.QName _xmlType) {
|
|
|
180 |
return
|
|
|
181 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
182 |
_javaType, _xmlType, typeDesc);
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
}
|