Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 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.ship.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.ship.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.ship.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.ship.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.ship.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/ship/v12", "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/ship/v12", "Length"));
177
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
178
        elemField.setNillable(false);
179
        typeDesc.addFieldDesc(elemField);
180
        elemField = new org.apache.axis.description.ElementDesc();
181
        elemField.setFieldName("width");
182
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Width"));
183
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
184
        elemField.setNillable(false);
185
        typeDesc.addFieldDesc(elemField);
186
        elemField = new org.apache.axis.description.ElementDesc();
187
        elemField.setFieldName("height");
188
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Height"));
189
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
190
        elemField.setNillable(false);
191
        typeDesc.addFieldDesc(elemField);
192
        elemField = new org.apache.axis.description.ElementDesc();
193
        elemField.setFieldName("units");
194
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Units"));
195
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LinearUnits"));
196
        elemField.setNillable(false);
197
        typeDesc.addFieldDesc(elemField);
198
    }
199
 
200
    /**
201
     * Return type metadata object
202
     */
203
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
204
        return typeDesc;
205
    }
206
 
207
    /**
208
     * Get Custom Serializer
209
     */
210
    public static org.apache.axis.encoding.Serializer getSerializer(
211
           java.lang.String mechType, 
212
           java.lang.Class _javaType,  
213
           javax.xml.namespace.QName _xmlType) {
214
        return 
215
          new  org.apache.axis.encoding.ser.BeanSerializer(
216
            _javaType, _xmlType, typeDesc);
217
    }
218
 
219
    /**
220
     * Get Custom Deserializer
221
     */
222
    public static org.apache.axis.encoding.Deserializer getDeserializer(
223
           java.lang.String mechType, 
224
           java.lang.Class _javaType,  
225
           javax.xml.namespace.QName _xmlType) {
226
        return 
227
          new  org.apache.axis.encoding.ser.BeanDeserializer(
228
            _javaType, _xmlType, typeDesc);
229
    }
230
 
231
}