| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* DestinationControlDetail.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 complete the Destionation Control Statement for
|
|
|
13 |
* US exports.
|
|
|
14 |
*/
|
|
|
15 |
public class DestinationControlDetail implements java.io.Serializable {
|
|
|
16 |
/* List of applicable Statment types. */
|
|
|
17 |
private com.fedex.ship.stub.DestinationControlStatementType[] statementTypes;
|
|
|
18 |
|
|
|
19 |
/* Comma-separated list of up to four country codes, required
|
|
|
20 |
* for DEPARTMENT_OF_STATE statement. */
|
|
|
21 |
private java.lang.String destinationCountries;
|
|
|
22 |
|
|
|
23 |
/* Name of end user, required for DEPARTMENT_OF_STATE statement. */
|
|
|
24 |
private java.lang.String endUser;
|
|
|
25 |
|
|
|
26 |
public DestinationControlDetail() {
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public DestinationControlDetail(
|
|
|
30 |
com.fedex.ship.stub.DestinationControlStatementType[] statementTypes,
|
|
|
31 |
java.lang.String destinationCountries,
|
|
|
32 |
java.lang.String endUser) {
|
|
|
33 |
this.statementTypes = statementTypes;
|
|
|
34 |
this.destinationCountries = destinationCountries;
|
|
|
35 |
this.endUser = endUser;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Gets the statementTypes value for this DestinationControlDetail.
|
|
|
41 |
*
|
|
|
42 |
* @return statementTypes * List of applicable Statment types.
|
|
|
43 |
*/
|
|
|
44 |
public com.fedex.ship.stub.DestinationControlStatementType[] getStatementTypes() {
|
|
|
45 |
return statementTypes;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* Sets the statementTypes value for this DestinationControlDetail.
|
|
|
51 |
*
|
|
|
52 |
* @param statementTypes * List of applicable Statment types.
|
|
|
53 |
*/
|
|
|
54 |
public void setStatementTypes(com.fedex.ship.stub.DestinationControlStatementType[] statementTypes) {
|
|
|
55 |
this.statementTypes = statementTypes;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
public com.fedex.ship.stub.DestinationControlStatementType getStatementTypes(int i) {
|
|
|
59 |
return this.statementTypes[i];
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public void setStatementTypes(int i, com.fedex.ship.stub.DestinationControlStatementType _value) {
|
|
|
63 |
this.statementTypes[i] = _value;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
/**
|
|
|
68 |
* Gets the destinationCountries value for this DestinationControlDetail.
|
|
|
69 |
*
|
|
|
70 |
* @return destinationCountries * Comma-separated list of up to four country codes, required
|
|
|
71 |
* for DEPARTMENT_OF_STATE statement.
|
|
|
72 |
*/
|
|
|
73 |
public java.lang.String getDestinationCountries() {
|
|
|
74 |
return destinationCountries;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* Sets the destinationCountries value for this DestinationControlDetail.
|
|
|
80 |
*
|
|
|
81 |
* @param destinationCountries * Comma-separated list of up to four country codes, required
|
|
|
82 |
* for DEPARTMENT_OF_STATE statement.
|
|
|
83 |
*/
|
|
|
84 |
public void setDestinationCountries(java.lang.String destinationCountries) {
|
|
|
85 |
this.destinationCountries = destinationCountries;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Gets the endUser value for this DestinationControlDetail.
|
|
|
91 |
*
|
|
|
92 |
* @return endUser * Name of end user, required for DEPARTMENT_OF_STATE statement.
|
|
|
93 |
*/
|
|
|
94 |
public java.lang.String getEndUser() {
|
|
|
95 |
return endUser;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
/**
|
|
|
100 |
* Sets the endUser value for this DestinationControlDetail.
|
|
|
101 |
*
|
|
|
102 |
* @param endUser * Name of end user, required for DEPARTMENT_OF_STATE statement.
|
|
|
103 |
*/
|
|
|
104 |
public void setEndUser(java.lang.String endUser) {
|
|
|
105 |
this.endUser = endUser;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
private java.lang.Object __equalsCalc = null;
|
|
|
109 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
110 |
if (!(obj instanceof DestinationControlDetail)) return false;
|
|
|
111 |
DestinationControlDetail other = (DestinationControlDetail) obj;
|
|
|
112 |
if (obj == null) return false;
|
|
|
113 |
if (this == obj) return true;
|
|
|
114 |
if (__equalsCalc != null) {
|
|
|
115 |
return (__equalsCalc == obj);
|
|
|
116 |
}
|
|
|
117 |
__equalsCalc = obj;
|
|
|
118 |
boolean _equals;
|
|
|
119 |
_equals = true &&
|
|
|
120 |
((this.statementTypes==null && other.getStatementTypes()==null) ||
|
|
|
121 |
(this.statementTypes!=null &&
|
|
|
122 |
java.util.Arrays.equals(this.statementTypes, other.getStatementTypes()))) &&
|
|
|
123 |
((this.destinationCountries==null && other.getDestinationCountries()==null) ||
|
|
|
124 |
(this.destinationCountries!=null &&
|
|
|
125 |
this.destinationCountries.equals(other.getDestinationCountries()))) &&
|
|
|
126 |
((this.endUser==null && other.getEndUser()==null) ||
|
|
|
127 |
(this.endUser!=null &&
|
|
|
128 |
this.endUser.equals(other.getEndUser())));
|
|
|
129 |
__equalsCalc = null;
|
|
|
130 |
return _equals;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
private boolean __hashCodeCalc = false;
|
|
|
134 |
public synchronized int hashCode() {
|
|
|
135 |
if (__hashCodeCalc) {
|
|
|
136 |
return 0;
|
|
|
137 |
}
|
|
|
138 |
__hashCodeCalc = true;
|
|
|
139 |
int _hashCode = 1;
|
|
|
140 |
if (getStatementTypes() != null) {
|
|
|
141 |
for (int i=0;
|
|
|
142 |
i<java.lang.reflect.Array.getLength(getStatementTypes());
|
|
|
143 |
i++) {
|
|
|
144 |
java.lang.Object obj = java.lang.reflect.Array.get(getStatementTypes(), i);
|
|
|
145 |
if (obj != null &&
|
|
|
146 |
!obj.getClass().isArray()) {
|
|
|
147 |
_hashCode += obj.hashCode();
|
|
|
148 |
}
|
|
|
149 |
}
|
|
|
150 |
}
|
|
|
151 |
if (getDestinationCountries() != null) {
|
|
|
152 |
_hashCode += getDestinationCountries().hashCode();
|
|
|
153 |
}
|
|
|
154 |
if (getEndUser() != null) {
|
|
|
155 |
_hashCode += getEndUser().hashCode();
|
|
|
156 |
}
|
|
|
157 |
__hashCodeCalc = false;
|
|
|
158 |
return _hashCode;
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
// Type metadata
|
|
|
162 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
163 |
new org.apache.axis.description.TypeDesc(DestinationControlDetail.class, true);
|
|
|
164 |
|
|
|
165 |
static {
|
|
|
166 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DestinationControlDetail"));
|
|
|
167 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
168 |
elemField.setFieldName("statementTypes");
|
|
|
169 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "StatementTypes"));
|
|
|
170 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DestinationControlStatementType"));
|
|
|
171 |
elemField.setNillable(false);
|
|
|
172 |
elemField.setMaxOccursUnbounded(true);
|
|
|
173 |
typeDesc.addFieldDesc(elemField);
|
|
|
174 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
175 |
elemField.setFieldName("destinationCountries");
|
|
|
176 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DestinationCountries"));
|
|
|
177 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
178 |
elemField.setMinOccurs(0);
|
|
|
179 |
elemField.setNillable(false);
|
|
|
180 |
typeDesc.addFieldDesc(elemField);
|
|
|
181 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
182 |
elemField.setFieldName("endUser");
|
|
|
183 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EndUser"));
|
|
|
184 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
185 |
elemField.setMinOccurs(0);
|
|
|
186 |
elemField.setNillable(false);
|
|
|
187 |
typeDesc.addFieldDesc(elemField);
|
|
|
188 |
}
|
|
|
189 |
|
|
|
190 |
/**
|
|
|
191 |
* Return type metadata object
|
|
|
192 |
*/
|
|
|
193 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
194 |
return typeDesc;
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
/**
|
|
|
198 |
* Get Custom Serializer
|
|
|
199 |
*/
|
|
|
200 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
201 |
java.lang.String mechType,
|
|
|
202 |
java.lang.Class _javaType,
|
|
|
203 |
javax.xml.namespace.QName _xmlType) {
|
|
|
204 |
return
|
|
|
205 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
206 |
_javaType, _xmlType, typeDesc);
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
/**
|
|
|
210 |
* Get Custom Deserializer
|
|
|
211 |
*/
|
|
|
212 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
213 |
java.lang.String mechType,
|
|
|
214 |
java.lang.Class _javaType,
|
|
|
215 |
javax.xml.namespace.QName _xmlType) {
|
|
|
216 |
return
|
|
|
217 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
218 |
_javaType, _xmlType, typeDesc);
|
|
|
219 |
}
|
|
|
220 |
|
|
|
221 |
}
|