| 7908 |
manish.sha |
1 |
/**
|
|
|
2 |
* Dimensions.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.track.stub;
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
/**
|
|
|
12 |
* The dimensions of this package and the unit type used for the measurements.
|
|
|
13 |
*/
|
|
|
14 |
public class Dimensions implements java.io.Serializable {
|
|
|
15 |
private org.apache.axis.types.NonNegativeInteger length;
|
|
|
16 |
|
|
|
17 |
private org.apache.axis.types.NonNegativeInteger width;
|
|
|
18 |
|
|
|
19 |
private org.apache.axis.types.NonNegativeInteger height;
|
|
|
20 |
|
|
|
21 |
private com.fedex.track.stub.LinearUnits units;
|
|
|
22 |
|
|
|
23 |
public Dimensions() {
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public Dimensions(
|
|
|
27 |
org.apache.axis.types.NonNegativeInteger length,
|
|
|
28 |
org.apache.axis.types.NonNegativeInteger width,
|
|
|
29 |
org.apache.axis.types.NonNegativeInteger height,
|
|
|
30 |
com.fedex.track.stub.LinearUnits units) {
|
|
|
31 |
this.length = length;
|
|
|
32 |
this.width = width;
|
|
|
33 |
this.height = height;
|
|
|
34 |
this.units = units;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
/**
|
|
|
39 |
* Gets the length value for this Dimensions.
|
|
|
40 |
*
|
|
|
41 |
* @return length
|
|
|
42 |
*/
|
|
|
43 |
public org.apache.axis.types.NonNegativeInteger getLength() {
|
|
|
44 |
return length;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Sets the length value for this Dimensions.
|
|
|
50 |
*
|
|
|
51 |
* @param length
|
|
|
52 |
*/
|
|
|
53 |
public void setLength(org.apache.axis.types.NonNegativeInteger length) {
|
|
|
54 |
this.length = length;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* Gets the width value for this Dimensions.
|
|
|
60 |
*
|
|
|
61 |
* @return width
|
|
|
62 |
*/
|
|
|
63 |
public org.apache.axis.types.NonNegativeInteger getWidth() {
|
|
|
64 |
return width;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* Sets the width value for this Dimensions.
|
|
|
70 |
*
|
|
|
71 |
* @param width
|
|
|
72 |
*/
|
|
|
73 |
public void setWidth(org.apache.axis.types.NonNegativeInteger width) {
|
|
|
74 |
this.width = width;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* Gets the height value for this Dimensions.
|
|
|
80 |
*
|
|
|
81 |
* @return height
|
|
|
82 |
*/
|
|
|
83 |
public org.apache.axis.types.NonNegativeInteger getHeight() {
|
|
|
84 |
return height;
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Sets the height value for this Dimensions.
|
|
|
90 |
*
|
|
|
91 |
* @param height
|
|
|
92 |
*/
|
|
|
93 |
public void setHeight(org.apache.axis.types.NonNegativeInteger height) {
|
|
|
94 |
this.height = height;
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* Gets the units value for this Dimensions.
|
|
|
100 |
*
|
|
|
101 |
* @return units
|
|
|
102 |
*/
|
|
|
103 |
public com.fedex.track.stub.LinearUnits getUnits() {
|
|
|
104 |
return units;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
/**
|
|
|
109 |
* Sets the units value for this Dimensions.
|
|
|
110 |
*
|
|
|
111 |
* @param units
|
|
|
112 |
*/
|
|
|
113 |
public void setUnits(com.fedex.track.stub.LinearUnits units) {
|
|
|
114 |
this.units = units;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
private java.lang.Object __equalsCalc = null;
|
|
|
118 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
119 |
if (!(obj instanceof Dimensions)) return false;
|
|
|
120 |
Dimensions other = (Dimensions) obj;
|
|
|
121 |
if (obj == null) return false;
|
|
|
122 |
if (this == obj) return true;
|
|
|
123 |
if (__equalsCalc != null) {
|
|
|
124 |
return (__equalsCalc == obj);
|
|
|
125 |
}
|
|
|
126 |
__equalsCalc = obj;
|
|
|
127 |
boolean _equals;
|
|
|
128 |
_equals = true &&
|
|
|
129 |
((this.length==null && other.getLength()==null) ||
|
|
|
130 |
(this.length!=null &&
|
|
|
131 |
this.length.equals(other.getLength()))) &&
|
|
|
132 |
((this.width==null && other.getWidth()==null) ||
|
|
|
133 |
(this.width!=null &&
|
|
|
134 |
this.width.equals(other.getWidth()))) &&
|
|
|
135 |
((this.height==null && other.getHeight()==null) ||
|
|
|
136 |
(this.height!=null &&
|
|
|
137 |
this.height.equals(other.getHeight()))) &&
|
|
|
138 |
((this.units==null && other.getUnits()==null) ||
|
|
|
139 |
(this.units!=null &&
|
|
|
140 |
this.units.equals(other.getUnits())));
|
|
|
141 |
__equalsCalc = null;
|
|
|
142 |
return _equals;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
private boolean __hashCodeCalc = false;
|
|
|
146 |
public synchronized int hashCode() {
|
|
|
147 |
if (__hashCodeCalc) {
|
|
|
148 |
return 0;
|
|
|
149 |
}
|
|
|
150 |
__hashCodeCalc = true;
|
|
|
151 |
int _hashCode = 1;
|
|
|
152 |
if (getLength() != null) {
|
|
|
153 |
_hashCode += getLength().hashCode();
|
|
|
154 |
}
|
|
|
155 |
if (getWidth() != null) {
|
|
|
156 |
_hashCode += getWidth().hashCode();
|
|
|
157 |
}
|
|
|
158 |
if (getHeight() != null) {
|
|
|
159 |
_hashCode += getHeight().hashCode();
|
|
|
160 |
}
|
|
|
161 |
if (getUnits() != null) {
|
|
|
162 |
_hashCode += getUnits().hashCode();
|
|
|
163 |
}
|
|
|
164 |
__hashCodeCalc = false;
|
|
|
165 |
return _hashCode;
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
// Type metadata
|
|
|
169 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
170 |
new org.apache.axis.description.TypeDesc(Dimensions.class, true);
|
|
|
171 |
|
|
|
172 |
static {
|
|
|
173 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Dimensions"));
|
|
|
174 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
175 |
elemField.setFieldName("length");
|
|
|
176 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Length"));
|
|
|
177 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
|
|
|
178 |
elemField.setMinOccurs(0);
|
|
|
179 |
elemField.setNillable(false);
|
|
|
180 |
typeDesc.addFieldDesc(elemField);
|
|
|
181 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
182 |
elemField.setFieldName("width");
|
|
|
183 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Width"));
|
|
|
184 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
|
|
|
185 |
elemField.setMinOccurs(0);
|
|
|
186 |
elemField.setNillable(false);
|
|
|
187 |
typeDesc.addFieldDesc(elemField);
|
|
|
188 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
189 |
elemField.setFieldName("height");
|
|
|
190 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Height"));
|
|
|
191 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
|
|
|
192 |
elemField.setMinOccurs(0);
|
|
|
193 |
elemField.setNillable(false);
|
|
|
194 |
typeDesc.addFieldDesc(elemField);
|
|
|
195 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
196 |
elemField.setFieldName("units");
|
|
|
197 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Units"));
|
|
|
198 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "LinearUnits"));
|
|
|
199 |
elemField.setMinOccurs(0);
|
|
|
200 |
elemField.setNillable(false);
|
|
|
201 |
typeDesc.addFieldDesc(elemField);
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
/**
|
|
|
205 |
* Return type metadata object
|
|
|
206 |
*/
|
|
|
207 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
208 |
return typeDesc;
|
|
|
209 |
}
|
|
|
210 |
|
|
|
211 |
/**
|
|
|
212 |
* Get Custom Serializer
|
|
|
213 |
*/
|
|
|
214 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
215 |
java.lang.String mechType,
|
|
|
216 |
java.lang.Class _javaType,
|
|
|
217 |
javax.xml.namespace.QName _xmlType) {
|
|
|
218 |
return
|
|
|
219 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
220 |
_javaType, _xmlType, typeDesc);
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
/**
|
|
|
224 |
* Get Custom Deserializer
|
|
|
225 |
*/
|
|
|
226 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
227 |
java.lang.String mechType,
|
|
|
228 |
java.lang.Class _javaType,
|
|
|
229 |
javax.xml.namespace.QName _xmlType) {
|
|
|
230 |
return
|
|
|
231 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
232 |
_javaType, _xmlType, typeDesc);
|
|
|
233 |
}
|
|
|
234 |
|
|
|
235 |
}
|