| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* DangerousGoodsContainer.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 |
* Describes an approved container used to package dangerous goods
|
|
|
13 |
* commodities. This does not describe any individual inner receptacles
|
|
|
14 |
* that may be within this container.
|
|
|
15 |
*/
|
|
|
16 |
public class DangerousGoodsContainer implements java.io.Serializable {
|
|
|
17 |
/* Indicates whether there are additional inner receptacles within
|
|
|
18 |
* this container. */
|
|
|
19 |
private com.fedex.ship.stub.HazardousContainerPackingType packingType;
|
|
|
20 |
|
|
|
21 |
/* Indicates the type of this dangerous goods container, as specified
|
|
|
22 |
* by the IATA packing instructions. For example, steel cylinder, fiberboard
|
|
|
23 |
* box, plastic jerrican and steel drum. */
|
|
|
24 |
private java.lang.String containerType;
|
|
|
25 |
|
|
|
26 |
/* Indicates the packaging type of the container used to package
|
|
|
27 |
* the radioactive materials. */
|
|
|
28 |
private com.fedex.ship.stub.RadioactiveContainerClassType radioactiveContainerClass;
|
|
|
29 |
|
|
|
30 |
/* Indicates the number of occurrences of this container with
|
|
|
31 |
* identical dangerous goods configuration. */
|
|
|
32 |
private org.apache.axis.types.NonNegativeInteger numberOfContainers;
|
|
|
33 |
|
|
|
34 |
/* Documents the kinds and quantities of all hazardous commodities
|
|
|
35 |
* in the current container. */
|
|
|
36 |
private com.fedex.ship.stub.HazardousCommodityContent[] hazardousCommodities;
|
|
|
37 |
|
|
|
38 |
public DangerousGoodsContainer() {
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public DangerousGoodsContainer(
|
|
|
42 |
com.fedex.ship.stub.HazardousContainerPackingType packingType,
|
|
|
43 |
java.lang.String containerType,
|
|
|
44 |
com.fedex.ship.stub.RadioactiveContainerClassType radioactiveContainerClass,
|
|
|
45 |
org.apache.axis.types.NonNegativeInteger numberOfContainers,
|
|
|
46 |
com.fedex.ship.stub.HazardousCommodityContent[] hazardousCommodities) {
|
|
|
47 |
this.packingType = packingType;
|
|
|
48 |
this.containerType = containerType;
|
|
|
49 |
this.radioactiveContainerClass = radioactiveContainerClass;
|
|
|
50 |
this.numberOfContainers = numberOfContainers;
|
|
|
51 |
this.hazardousCommodities = hazardousCommodities;
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
/**
|
|
|
56 |
* Gets the packingType value for this DangerousGoodsContainer.
|
|
|
57 |
*
|
|
|
58 |
* @return packingType * Indicates whether there are additional inner receptacles within
|
|
|
59 |
* this container.
|
|
|
60 |
*/
|
|
|
61 |
public com.fedex.ship.stub.HazardousContainerPackingType getPackingType() {
|
|
|
62 |
return packingType;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Sets the packingType value for this DangerousGoodsContainer.
|
|
|
68 |
*
|
|
|
69 |
* @param packingType * Indicates whether there are additional inner receptacles within
|
|
|
70 |
* this container.
|
|
|
71 |
*/
|
|
|
72 |
public void setPackingType(com.fedex.ship.stub.HazardousContainerPackingType packingType) {
|
|
|
73 |
this.packingType = packingType;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Gets the containerType value for this DangerousGoodsContainer.
|
|
|
79 |
*
|
|
|
80 |
* @return containerType * Indicates the type of this dangerous goods container, as specified
|
|
|
81 |
* by the IATA packing instructions. For example, steel cylinder, fiberboard
|
|
|
82 |
* box, plastic jerrican and steel drum.
|
|
|
83 |
*/
|
|
|
84 |
public java.lang.String getContainerType() {
|
|
|
85 |
return containerType;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Sets the containerType value for this DangerousGoodsContainer.
|
|
|
91 |
*
|
|
|
92 |
* @param containerType * Indicates the type of this dangerous goods container, as specified
|
|
|
93 |
* by the IATA packing instructions. For example, steel cylinder, fiberboard
|
|
|
94 |
* box, plastic jerrican and steel drum.
|
|
|
95 |
*/
|
|
|
96 |
public void setContainerType(java.lang.String containerType) {
|
|
|
97 |
this.containerType = containerType;
|
|
|
98 |
}
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
/**
|
|
|
102 |
* Gets the radioactiveContainerClass value for this DangerousGoodsContainer.
|
|
|
103 |
*
|
|
|
104 |
* @return radioactiveContainerClass * Indicates the packaging type of the container used to package
|
|
|
105 |
* the radioactive materials.
|
|
|
106 |
*/
|
|
|
107 |
public com.fedex.ship.stub.RadioactiveContainerClassType getRadioactiveContainerClass() {
|
|
|
108 |
return radioactiveContainerClass;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
/**
|
|
|
113 |
* Sets the radioactiveContainerClass value for this DangerousGoodsContainer.
|
|
|
114 |
*
|
|
|
115 |
* @param radioactiveContainerClass * Indicates the packaging type of the container used to package
|
|
|
116 |
* the radioactive materials.
|
|
|
117 |
*/
|
|
|
118 |
public void setRadioactiveContainerClass(com.fedex.ship.stub.RadioactiveContainerClassType radioactiveContainerClass) {
|
|
|
119 |
this.radioactiveContainerClass = radioactiveContainerClass;
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
/**
|
|
|
124 |
* Gets the numberOfContainers value for this DangerousGoodsContainer.
|
|
|
125 |
*
|
|
|
126 |
* @return numberOfContainers * Indicates the number of occurrences of this container with
|
|
|
127 |
* identical dangerous goods configuration.
|
|
|
128 |
*/
|
|
|
129 |
public org.apache.axis.types.NonNegativeInteger getNumberOfContainers() {
|
|
|
130 |
return numberOfContainers;
|
|
|
131 |
}
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Sets the numberOfContainers value for this DangerousGoodsContainer.
|
|
|
136 |
*
|
|
|
137 |
* @param numberOfContainers * Indicates the number of occurrences of this container with
|
|
|
138 |
* identical dangerous goods configuration.
|
|
|
139 |
*/
|
|
|
140 |
public void setNumberOfContainers(org.apache.axis.types.NonNegativeInteger numberOfContainers) {
|
|
|
141 |
this.numberOfContainers = numberOfContainers;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
/**
|
|
|
146 |
* Gets the hazardousCommodities value for this DangerousGoodsContainer.
|
|
|
147 |
*
|
|
|
148 |
* @return hazardousCommodities * Documents the kinds and quantities of all hazardous commodities
|
|
|
149 |
* in the current container.
|
|
|
150 |
*/
|
|
|
151 |
public com.fedex.ship.stub.HazardousCommodityContent[] getHazardousCommodities() {
|
|
|
152 |
return hazardousCommodities;
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
/**
|
|
|
157 |
* Sets the hazardousCommodities value for this DangerousGoodsContainer.
|
|
|
158 |
*
|
|
|
159 |
* @param hazardousCommodities * Documents the kinds and quantities of all hazardous commodities
|
|
|
160 |
* in the current container.
|
|
|
161 |
*/
|
|
|
162 |
public void setHazardousCommodities(com.fedex.ship.stub.HazardousCommodityContent[] hazardousCommodities) {
|
|
|
163 |
this.hazardousCommodities = hazardousCommodities;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
public com.fedex.ship.stub.HazardousCommodityContent getHazardousCommodities(int i) {
|
|
|
167 |
return this.hazardousCommodities[i];
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
public void setHazardousCommodities(int i, com.fedex.ship.stub.HazardousCommodityContent _value) {
|
|
|
171 |
this.hazardousCommodities[i] = _value;
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
private java.lang.Object __equalsCalc = null;
|
|
|
175 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
176 |
if (!(obj instanceof DangerousGoodsContainer)) return false;
|
|
|
177 |
DangerousGoodsContainer other = (DangerousGoodsContainer) obj;
|
|
|
178 |
if (obj == null) return false;
|
|
|
179 |
if (this == obj) return true;
|
|
|
180 |
if (__equalsCalc != null) {
|
|
|
181 |
return (__equalsCalc == obj);
|
|
|
182 |
}
|
|
|
183 |
__equalsCalc = obj;
|
|
|
184 |
boolean _equals;
|
|
|
185 |
_equals = true &&
|
|
|
186 |
((this.packingType==null && other.getPackingType()==null) ||
|
|
|
187 |
(this.packingType!=null &&
|
|
|
188 |
this.packingType.equals(other.getPackingType()))) &&
|
|
|
189 |
((this.containerType==null && other.getContainerType()==null) ||
|
|
|
190 |
(this.containerType!=null &&
|
|
|
191 |
this.containerType.equals(other.getContainerType()))) &&
|
|
|
192 |
((this.radioactiveContainerClass==null && other.getRadioactiveContainerClass()==null) ||
|
|
|
193 |
(this.radioactiveContainerClass!=null &&
|
|
|
194 |
this.radioactiveContainerClass.equals(other.getRadioactiveContainerClass()))) &&
|
|
|
195 |
((this.numberOfContainers==null && other.getNumberOfContainers()==null) ||
|
|
|
196 |
(this.numberOfContainers!=null &&
|
|
|
197 |
this.numberOfContainers.equals(other.getNumberOfContainers()))) &&
|
|
|
198 |
((this.hazardousCommodities==null && other.getHazardousCommodities()==null) ||
|
|
|
199 |
(this.hazardousCommodities!=null &&
|
|
|
200 |
java.util.Arrays.equals(this.hazardousCommodities, other.getHazardousCommodities())));
|
|
|
201 |
__equalsCalc = null;
|
|
|
202 |
return _equals;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
private boolean __hashCodeCalc = false;
|
|
|
206 |
public synchronized int hashCode() {
|
|
|
207 |
if (__hashCodeCalc) {
|
|
|
208 |
return 0;
|
|
|
209 |
}
|
|
|
210 |
__hashCodeCalc = true;
|
|
|
211 |
int _hashCode = 1;
|
|
|
212 |
if (getPackingType() != null) {
|
|
|
213 |
_hashCode += getPackingType().hashCode();
|
|
|
214 |
}
|
|
|
215 |
if (getContainerType() != null) {
|
|
|
216 |
_hashCode += getContainerType().hashCode();
|
|
|
217 |
}
|
|
|
218 |
if (getRadioactiveContainerClass() != null) {
|
|
|
219 |
_hashCode += getRadioactiveContainerClass().hashCode();
|
|
|
220 |
}
|
|
|
221 |
if (getNumberOfContainers() != null) {
|
|
|
222 |
_hashCode += getNumberOfContainers().hashCode();
|
|
|
223 |
}
|
|
|
224 |
if (getHazardousCommodities() != null) {
|
|
|
225 |
for (int i=0;
|
|
|
226 |
i<java.lang.reflect.Array.getLength(getHazardousCommodities());
|
|
|
227 |
i++) {
|
|
|
228 |
java.lang.Object obj = java.lang.reflect.Array.get(getHazardousCommodities(), i);
|
|
|
229 |
if (obj != null &&
|
|
|
230 |
!obj.getClass().isArray()) {
|
|
|
231 |
_hashCode += obj.hashCode();
|
|
|
232 |
}
|
|
|
233 |
}
|
|
|
234 |
}
|
|
|
235 |
__hashCodeCalc = false;
|
|
|
236 |
return _hashCode;
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
// Type metadata
|
|
|
240 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
241 |
new org.apache.axis.description.TypeDesc(DangerousGoodsContainer.class, true);
|
|
|
242 |
|
|
|
243 |
static {
|
|
|
244 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DangerousGoodsContainer"));
|
|
|
245 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
246 |
elemField.setFieldName("packingType");
|
|
|
247 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackingType"));
|
|
|
248 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousContainerPackingType"));
|
|
|
249 |
elemField.setMinOccurs(0);
|
|
|
250 |
elemField.setNillable(false);
|
|
|
251 |
typeDesc.addFieldDesc(elemField);
|
|
|
252 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
253 |
elemField.setFieldName("containerType");
|
|
|
254 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContainerType"));
|
|
|
255 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
256 |
elemField.setMinOccurs(0);
|
|
|
257 |
elemField.setNillable(false);
|
|
|
258 |
typeDesc.addFieldDesc(elemField);
|
|
|
259 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
260 |
elemField.setFieldName("radioactiveContainerClass");
|
|
|
261 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadioactiveContainerClass"));
|
|
|
262 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadioactiveContainerClassType"));
|
|
|
263 |
elemField.setMinOccurs(0);
|
|
|
264 |
elemField.setNillable(false);
|
|
|
265 |
typeDesc.addFieldDesc(elemField);
|
|
|
266 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
267 |
elemField.setFieldName("numberOfContainers");
|
|
|
268 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NumberOfContainers"));
|
|
|
269 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
|
|
|
270 |
elemField.setMinOccurs(0);
|
|
|
271 |
elemField.setNillable(false);
|
|
|
272 |
typeDesc.addFieldDesc(elemField);
|
|
|
273 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
274 |
elemField.setFieldName("hazardousCommodities");
|
|
|
275 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodities"));
|
|
|
276 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityContent"));
|
|
|
277 |
elemField.setMinOccurs(0);
|
|
|
278 |
elemField.setNillable(false);
|
|
|
279 |
elemField.setMaxOccursUnbounded(true);
|
|
|
280 |
typeDesc.addFieldDesc(elemField);
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
/**
|
|
|
284 |
* Return type metadata object
|
|
|
285 |
*/
|
|
|
286 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
287 |
return typeDesc;
|
|
|
288 |
}
|
|
|
289 |
|
|
|
290 |
/**
|
|
|
291 |
* Get Custom Serializer
|
|
|
292 |
*/
|
|
|
293 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
294 |
java.lang.String mechType,
|
|
|
295 |
java.lang.Class _javaType,
|
|
|
296 |
javax.xml.namespace.QName _xmlType) {
|
|
|
297 |
return
|
|
|
298 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
299 |
_javaType, _xmlType, typeDesc);
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
/**
|
|
|
303 |
* Get Custom Deserializer
|
|
|
304 |
*/
|
|
|
305 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
306 |
java.lang.String mechType,
|
|
|
307 |
java.lang.Class _javaType,
|
|
|
308 |
javax.xml.namespace.QName _xmlType) {
|
|
|
309 |
return
|
|
|
310 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
311 |
_javaType, _xmlType, typeDesc);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
}
|