Subversion Repositories SmartDukaan

Rev

Rev 22577 | Details | Compare with Previous | Last modification | View Log | RSS feed

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