Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * VariableHandlingChargeDetail.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
 * This definition of variable handling charge detail is intended
13
 * for use in Jan 2011 corp load.
14
 */
15
public class VariableHandlingChargeDetail  implements java.io.Serializable {
16
    /* Used with Variable handling charge type of FIXED_VALUE.
17
     *                 Contains the amount to be added to the freight charge.
18
     * Contains 2 explicit decimal positions with a total max length of 10
19
     * including the decimal. */
20
    private com.fedex.ship.stub.Money fixedValue;
21
 
22
    /* Actual percentage (10 means 10%, which is a mutiplier of 0.1) */
23
    private java.math.BigDecimal percentValue;
24
 
25
    /* Select the value from a set of rate data to which the percentage
26
     * is applied. */
27
    private com.fedex.ship.stub.RateElementBasisType rateElementBasis;
28
 
29
    /* Select the type of rate from which the element is to be selected. */
30
    private com.fedex.ship.stub.RateTypeBasisType rateTypeBasis;
31
 
32
    public VariableHandlingChargeDetail() {
33
    }
34
 
35
    public VariableHandlingChargeDetail(
36
           com.fedex.ship.stub.Money fixedValue,
37
           java.math.BigDecimal percentValue,
38
           com.fedex.ship.stub.RateElementBasisType rateElementBasis,
39
           com.fedex.ship.stub.RateTypeBasisType rateTypeBasis) {
40
           this.fixedValue = fixedValue;
41
           this.percentValue = percentValue;
42
           this.rateElementBasis = rateElementBasis;
43
           this.rateTypeBasis = rateTypeBasis;
44
    }
45
 
46
 
47
    /**
48
     * Gets the fixedValue value for this VariableHandlingChargeDetail.
49
     * 
50
     * @return fixedValue   * Used with Variable handling charge type of FIXED_VALUE.
51
     *                 Contains the amount to be added to the freight charge.
52
     * Contains 2 explicit decimal positions with a total max length of 10
53
     * including the decimal.
54
     */
55
    public com.fedex.ship.stub.Money getFixedValue() {
56
        return fixedValue;
57
    }
58
 
59
 
60
    /**
61
     * Sets the fixedValue value for this VariableHandlingChargeDetail.
62
     * 
63
     * @param fixedValue   * Used with Variable handling charge type of FIXED_VALUE.
64
     *                 Contains the amount to be added to the freight charge.
65
     * Contains 2 explicit decimal positions with a total max length of 10
66
     * including the decimal.
67
     */
68
    public void setFixedValue(com.fedex.ship.stub.Money fixedValue) {
69
        this.fixedValue = fixedValue;
70
    }
71
 
72
 
73
    /**
74
     * Gets the percentValue value for this VariableHandlingChargeDetail.
75
     * 
76
     * @return percentValue   * Actual percentage (10 means 10%, which is a mutiplier of 0.1)
77
     */
78
    public java.math.BigDecimal getPercentValue() {
79
        return percentValue;
80
    }
81
 
82
 
83
    /**
84
     * Sets the percentValue value for this VariableHandlingChargeDetail.
85
     * 
86
     * @param percentValue   * Actual percentage (10 means 10%, which is a mutiplier of 0.1)
87
     */
88
    public void setPercentValue(java.math.BigDecimal percentValue) {
89
        this.percentValue = percentValue;
90
    }
91
 
92
 
93
    /**
94
     * Gets the rateElementBasis value for this VariableHandlingChargeDetail.
95
     * 
96
     * @return rateElementBasis   * Select the value from a set of rate data to which the percentage
97
     * is applied.
98
     */
99
    public com.fedex.ship.stub.RateElementBasisType getRateElementBasis() {
100
        return rateElementBasis;
101
    }
102
 
103
 
104
    /**
105
     * Sets the rateElementBasis value for this VariableHandlingChargeDetail.
106
     * 
107
     * @param rateElementBasis   * Select the value from a set of rate data to which the percentage
108
     * is applied.
109
     */
110
    public void setRateElementBasis(com.fedex.ship.stub.RateElementBasisType rateElementBasis) {
111
        this.rateElementBasis = rateElementBasis;
112
    }
113
 
114
 
115
    /**
116
     * Gets the rateTypeBasis value for this VariableHandlingChargeDetail.
117
     * 
118
     * @return rateTypeBasis   * Select the type of rate from which the element is to be selected.
119
     */
120
    public com.fedex.ship.stub.RateTypeBasisType getRateTypeBasis() {
121
        return rateTypeBasis;
122
    }
123
 
124
 
125
    /**
126
     * Sets the rateTypeBasis value for this VariableHandlingChargeDetail.
127
     * 
128
     * @param rateTypeBasis   * Select the type of rate from which the element is to be selected.
129
     */
130
    public void setRateTypeBasis(com.fedex.ship.stub.RateTypeBasisType rateTypeBasis) {
131
        this.rateTypeBasis = rateTypeBasis;
132
    }
133
 
134
    private java.lang.Object __equalsCalc = null;
135
    public synchronized boolean equals(java.lang.Object obj) {
136
        if (!(obj instanceof VariableHandlingChargeDetail)) return false;
137
        VariableHandlingChargeDetail other = (VariableHandlingChargeDetail) obj;
138
        if (obj == null) return false;
139
        if (this == obj) return true;
140
        if (__equalsCalc != null) {
141
            return (__equalsCalc == obj);
142
        }
143
        __equalsCalc = obj;
144
        boolean _equals;
145
        _equals = true && 
146
            ((this.fixedValue==null && other.getFixedValue()==null) || 
147
             (this.fixedValue!=null &&
148
              this.fixedValue.equals(other.getFixedValue()))) &&
149
            ((this.percentValue==null && other.getPercentValue()==null) || 
150
             (this.percentValue!=null &&
151
              this.percentValue.equals(other.getPercentValue()))) &&
152
            ((this.rateElementBasis==null && other.getRateElementBasis()==null) || 
153
             (this.rateElementBasis!=null &&
154
              this.rateElementBasis.equals(other.getRateElementBasis()))) &&
155
            ((this.rateTypeBasis==null && other.getRateTypeBasis()==null) || 
156
             (this.rateTypeBasis!=null &&
157
              this.rateTypeBasis.equals(other.getRateTypeBasis())));
158
        __equalsCalc = null;
159
        return _equals;
160
    }
161
 
162
    private boolean __hashCodeCalc = false;
163
    public synchronized int hashCode() {
164
        if (__hashCodeCalc) {
165
            return 0;
166
        }
167
        __hashCodeCalc = true;
168
        int _hashCode = 1;
169
        if (getFixedValue() != null) {
170
            _hashCode += getFixedValue().hashCode();
171
        }
172
        if (getPercentValue() != null) {
173
            _hashCode += getPercentValue().hashCode();
174
        }
175
        if (getRateElementBasis() != null) {
176
            _hashCode += getRateElementBasis().hashCode();
177
        }
178
        if (getRateTypeBasis() != null) {
179
            _hashCode += getRateTypeBasis().hashCode();
180
        }
181
        __hashCodeCalc = false;
182
        return _hashCode;
183
    }
184
 
185
    // Type metadata
186
    private static org.apache.axis.description.TypeDesc typeDesc =
187
        new org.apache.axis.description.TypeDesc(VariableHandlingChargeDetail.class, true);
188
 
189
    static {
190
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VariableHandlingChargeDetail"));
191
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
192
        elemField.setFieldName("fixedValue");
193
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FixedValue"));
194
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
195
        elemField.setMinOccurs(0);
196
        elemField.setNillable(false);
197
        typeDesc.addFieldDesc(elemField);
198
        elemField = new org.apache.axis.description.ElementDesc();
199
        elemField.setFieldName("percentValue");
200
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PercentValue"));
201
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
202
        elemField.setMinOccurs(0);
203
        elemField.setNillable(false);
204
        typeDesc.addFieldDesc(elemField);
205
        elemField = new org.apache.axis.description.ElementDesc();
206
        elemField.setFieldName("rateElementBasis");
207
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateElementBasis"));
208
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateElementBasisType"));
209
        elemField.setMinOccurs(0);
210
        elemField.setNillable(false);
211
        typeDesc.addFieldDesc(elemField);
212
        elemField = new org.apache.axis.description.ElementDesc();
213
        elemField.setFieldName("rateTypeBasis");
214
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateTypeBasis"));
215
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateTypeBasisType"));
216
        elemField.setMinOccurs(0);
217
        elemField.setNillable(false);
218
        typeDesc.addFieldDesc(elemField);
219
    }
220
 
221
    /**
222
     * Return type metadata object
223
     */
224
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
225
        return typeDesc;
226
    }
227
 
228
    /**
229
     * Get Custom Serializer
230
     */
231
    public static org.apache.axis.encoding.Serializer getSerializer(
232
           java.lang.String mechType, 
233
           java.lang.Class _javaType,  
234
           javax.xml.namespace.QName _xmlType) {
235
        return 
236
          new  org.apache.axis.encoding.ser.BeanSerializer(
237
            _javaType, _xmlType, typeDesc);
238
    }
239
 
240
    /**
241
     * Get Custom Deserializer
242
     */
243
    public static org.apache.axis.encoding.Deserializer getDeserializer(
244
           java.lang.String mechType, 
245
           java.lang.Class _javaType,  
246
           javax.xml.namespace.QName _xmlType) {
247
        return 
248
          new  org.apache.axis.encoding.ser.BeanDeserializer(
249
            _javaType, _xmlType, typeDesc);
250
    }
251
 
252
}