Subversion Repositories SmartDukaan

Rev

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