Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * FreightBaseCharge.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
 * Individual charge which contributes to the total base charge for
13
 * the shipment.
14
 */
15
public class FreightBaseCharge  implements java.io.Serializable {
16
    /* Freight class for this line item. */
17
    private com.fedex.ship.stub.FreightClassType freightClass;
18
 
19
    /* Effective freight class used for rating this line item. */
20
    private com.fedex.ship.stub.FreightClassType ratedAsClass;
21
 
22
    /* NMFC Code for commodity. */
23
    private java.lang.String nmfcCode;
24
 
25
    /* Customer-provided description for this commodity or class line. */
26
    private java.lang.String description;
27
 
28
    /* Weight for this commodity or class line. */
29
    private com.fedex.ship.stub.Weight weight;
30
 
31
    /* Rate or factor applied to this line item. */
32
    private com.fedex.ship.stub.Money chargeRate;
33
 
34
    /* Identifies the manner in which the chargeRate for this line
35
     * item was applied. */
36
    private com.fedex.ship.stub.FreightChargeBasisType chargeBasis;
37
 
38
    /* The net or extended charge for this line item. */
39
    private com.fedex.ship.stub.Money extendedAmount;
40
 
41
    public FreightBaseCharge() {
42
    }
43
 
44
    public FreightBaseCharge(
45
           com.fedex.ship.stub.FreightClassType freightClass,
46
           com.fedex.ship.stub.FreightClassType ratedAsClass,
47
           java.lang.String nmfcCode,
48
           java.lang.String description,
49
           com.fedex.ship.stub.Weight weight,
50
           com.fedex.ship.stub.Money chargeRate,
51
           com.fedex.ship.stub.FreightChargeBasisType chargeBasis,
52
           com.fedex.ship.stub.Money extendedAmount) {
53
           this.freightClass = freightClass;
54
           this.ratedAsClass = ratedAsClass;
55
           this.nmfcCode = nmfcCode;
56
           this.description = description;
57
           this.weight = weight;
58
           this.chargeRate = chargeRate;
59
           this.chargeBasis = chargeBasis;
60
           this.extendedAmount = extendedAmount;
61
    }
62
 
63
 
64
    /**
65
     * Gets the freightClass value for this FreightBaseCharge.
66
     * 
67
     * @return freightClass   * Freight class for this line item.
68
     */
69
    public com.fedex.ship.stub.FreightClassType getFreightClass() {
70
        return freightClass;
71
    }
72
 
73
 
74
    /**
75
     * Sets the freightClass value for this FreightBaseCharge.
76
     * 
77
     * @param freightClass   * Freight class for this line item.
78
     */
79
    public void setFreightClass(com.fedex.ship.stub.FreightClassType freightClass) {
80
        this.freightClass = freightClass;
81
    }
82
 
83
 
84
    /**
85
     * Gets the ratedAsClass value for this FreightBaseCharge.
86
     * 
87
     * @return ratedAsClass   * Effective freight class used for rating this line item.
88
     */
89
    public com.fedex.ship.stub.FreightClassType getRatedAsClass() {
90
        return ratedAsClass;
91
    }
92
 
93
 
94
    /**
95
     * Sets the ratedAsClass value for this FreightBaseCharge.
96
     * 
97
     * @param ratedAsClass   * Effective freight class used for rating this line item.
98
     */
99
    public void setRatedAsClass(com.fedex.ship.stub.FreightClassType ratedAsClass) {
100
        this.ratedAsClass = ratedAsClass;
101
    }
102
 
103
 
104
    /**
105
     * Gets the nmfcCode value for this FreightBaseCharge.
106
     * 
107
     * @return nmfcCode   * NMFC Code for commodity.
108
     */
109
    public java.lang.String getNmfcCode() {
110
        return nmfcCode;
111
    }
112
 
113
 
114
    /**
115
     * Sets the nmfcCode value for this FreightBaseCharge.
116
     * 
117
     * @param nmfcCode   * NMFC Code for commodity.
118
     */
119
    public void setNmfcCode(java.lang.String nmfcCode) {
120
        this.nmfcCode = nmfcCode;
121
    }
122
 
123
 
124
    /**
125
     * Gets the description value for this FreightBaseCharge.
126
     * 
127
     * @return description   * Customer-provided description for this commodity or class line.
128
     */
129
    public java.lang.String getDescription() {
130
        return description;
131
    }
132
 
133
 
134
    /**
135
     * Sets the description value for this FreightBaseCharge.
136
     * 
137
     * @param description   * Customer-provided description for this commodity or class line.
138
     */
139
    public void setDescription(java.lang.String description) {
140
        this.description = description;
141
    }
142
 
143
 
144
    /**
145
     * Gets the weight value for this FreightBaseCharge.
146
     * 
147
     * @return weight   * Weight for this commodity or class line.
148
     */
149
    public com.fedex.ship.stub.Weight getWeight() {
150
        return weight;
151
    }
152
 
153
 
154
    /**
155
     * Sets the weight value for this FreightBaseCharge.
156
     * 
157
     * @param weight   * Weight for this commodity or class line.
158
     */
159
    public void setWeight(com.fedex.ship.stub.Weight weight) {
160
        this.weight = weight;
161
    }
162
 
163
 
164
    /**
165
     * Gets the chargeRate value for this FreightBaseCharge.
166
     * 
167
     * @return chargeRate   * Rate or factor applied to this line item.
168
     */
169
    public com.fedex.ship.stub.Money getChargeRate() {
170
        return chargeRate;
171
    }
172
 
173
 
174
    /**
175
     * Sets the chargeRate value for this FreightBaseCharge.
176
     * 
177
     * @param chargeRate   * Rate or factor applied to this line item.
178
     */
179
    public void setChargeRate(com.fedex.ship.stub.Money chargeRate) {
180
        this.chargeRate = chargeRate;
181
    }
182
 
183
 
184
    /**
185
     * Gets the chargeBasis value for this FreightBaseCharge.
186
     * 
187
     * @return chargeBasis   * Identifies the manner in which the chargeRate for this line
188
     * item was applied.
189
     */
190
    public com.fedex.ship.stub.FreightChargeBasisType getChargeBasis() {
191
        return chargeBasis;
192
    }
193
 
194
 
195
    /**
196
     * Sets the chargeBasis value for this FreightBaseCharge.
197
     * 
198
     * @param chargeBasis   * Identifies the manner in which the chargeRate for this line
199
     * item was applied.
200
     */
201
    public void setChargeBasis(com.fedex.ship.stub.FreightChargeBasisType chargeBasis) {
202
        this.chargeBasis = chargeBasis;
203
    }
204
 
205
 
206
    /**
207
     * Gets the extendedAmount value for this FreightBaseCharge.
208
     * 
209
     * @return extendedAmount   * The net or extended charge for this line item.
210
     */
211
    public com.fedex.ship.stub.Money getExtendedAmount() {
212
        return extendedAmount;
213
    }
214
 
215
 
216
    /**
217
     * Sets the extendedAmount value for this FreightBaseCharge.
218
     * 
219
     * @param extendedAmount   * The net or extended charge for this line item.
220
     */
221
    public void setExtendedAmount(com.fedex.ship.stub.Money extendedAmount) {
222
        this.extendedAmount = extendedAmount;
223
    }
224
 
225
    private java.lang.Object __equalsCalc = null;
226
    public synchronized boolean equals(java.lang.Object obj) {
227
        if (!(obj instanceof FreightBaseCharge)) return false;
228
        FreightBaseCharge other = (FreightBaseCharge) obj;
229
        if (obj == null) return false;
230
        if (this == obj) return true;
231
        if (__equalsCalc != null) {
232
            return (__equalsCalc == obj);
233
        }
234
        __equalsCalc = obj;
235
        boolean _equals;
236
        _equals = true && 
237
            ((this.freightClass==null && other.getFreightClass()==null) || 
238
             (this.freightClass!=null &&
239
              this.freightClass.equals(other.getFreightClass()))) &&
240
            ((this.ratedAsClass==null && other.getRatedAsClass()==null) || 
241
             (this.ratedAsClass!=null &&
242
              this.ratedAsClass.equals(other.getRatedAsClass()))) &&
243
            ((this.nmfcCode==null && other.getNmfcCode()==null) || 
244
             (this.nmfcCode!=null &&
245
              this.nmfcCode.equals(other.getNmfcCode()))) &&
246
            ((this.description==null && other.getDescription()==null) || 
247
             (this.description!=null &&
248
              this.description.equals(other.getDescription()))) &&
249
            ((this.weight==null && other.getWeight()==null) || 
250
             (this.weight!=null &&
251
              this.weight.equals(other.getWeight()))) &&
252
            ((this.chargeRate==null && other.getChargeRate()==null) || 
253
             (this.chargeRate!=null &&
254
              this.chargeRate.equals(other.getChargeRate()))) &&
255
            ((this.chargeBasis==null && other.getChargeBasis()==null) || 
256
             (this.chargeBasis!=null &&
257
              this.chargeBasis.equals(other.getChargeBasis()))) &&
258
            ((this.extendedAmount==null && other.getExtendedAmount()==null) || 
259
             (this.extendedAmount!=null &&
260
              this.extendedAmount.equals(other.getExtendedAmount())));
261
        __equalsCalc = null;
262
        return _equals;
263
    }
264
 
265
    private boolean __hashCodeCalc = false;
266
    public synchronized int hashCode() {
267
        if (__hashCodeCalc) {
268
            return 0;
269
        }
270
        __hashCodeCalc = true;
271
        int _hashCode = 1;
272
        if (getFreightClass() != null) {
273
            _hashCode += getFreightClass().hashCode();
274
        }
275
        if (getRatedAsClass() != null) {
276
            _hashCode += getRatedAsClass().hashCode();
277
        }
278
        if (getNmfcCode() != null) {
279
            _hashCode += getNmfcCode().hashCode();
280
        }
281
        if (getDescription() != null) {
282
            _hashCode += getDescription().hashCode();
283
        }
284
        if (getWeight() != null) {
285
            _hashCode += getWeight().hashCode();
286
        }
287
        if (getChargeRate() != null) {
288
            _hashCode += getChargeRate().hashCode();
289
        }
290
        if (getChargeBasis() != null) {
291
            _hashCode += getChargeBasis().hashCode();
292
        }
293
        if (getExtendedAmount() != null) {
294
            _hashCode += getExtendedAmount().hashCode();
295
        }
296
        __hashCodeCalc = false;
297
        return _hashCode;
298
    }
299
 
300
    // Type metadata
301
    private static org.apache.axis.description.TypeDesc typeDesc =
302
        new org.apache.axis.description.TypeDesc(FreightBaseCharge.class, true);
303
 
304
    static {
305
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightBaseCharge"));
306
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
307
        elemField.setFieldName("freightClass");
308
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightClass"));
309
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightClassType"));
310
        elemField.setMinOccurs(0);
311
        elemField.setNillable(false);
312
        typeDesc.addFieldDesc(elemField);
313
        elemField = new org.apache.axis.description.ElementDesc();
314
        elemField.setFieldName("ratedAsClass");
315
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RatedAsClass"));
316
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightClassType"));
317
        elemField.setMinOccurs(0);
318
        elemField.setNillable(false);
319
        typeDesc.addFieldDesc(elemField);
320
        elemField = new org.apache.axis.description.ElementDesc();
321
        elemField.setFieldName("nmfcCode");
322
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NmfcCode"));
323
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
324
        elemField.setMinOccurs(0);
325
        elemField.setNillable(false);
326
        typeDesc.addFieldDesc(elemField);
327
        elemField = new org.apache.axis.description.ElementDesc();
328
        elemField.setFieldName("description");
329
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Description"));
330
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
331
        elemField.setMinOccurs(0);
332
        elemField.setNillable(false);
333
        typeDesc.addFieldDesc(elemField);
334
        elemField = new org.apache.axis.description.ElementDesc();
335
        elemField.setFieldName("weight");
336
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
337
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
338
        elemField.setMinOccurs(0);
339
        elemField.setNillable(false);
340
        typeDesc.addFieldDesc(elemField);
341
        elemField = new org.apache.axis.description.ElementDesc();
342
        elemField.setFieldName("chargeRate");
343
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ChargeRate"));
344
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
345
        elemField.setMinOccurs(0);
346
        elemField.setNillable(false);
347
        typeDesc.addFieldDesc(elemField);
348
        elemField = new org.apache.axis.description.ElementDesc();
349
        elemField.setFieldName("chargeBasis");
350
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ChargeBasis"));
351
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightChargeBasisType"));
352
        elemField.setMinOccurs(0);
353
        elemField.setNillable(false);
354
        typeDesc.addFieldDesc(elemField);
355
        elemField = new org.apache.axis.description.ElementDesc();
356
        elemField.setFieldName("extendedAmount");
357
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExtendedAmount"));
358
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
359
        elemField.setMinOccurs(0);
360
        elemField.setNillable(false);
361
        typeDesc.addFieldDesc(elemField);
362
    }
363
 
364
    /**
365
     * Return type metadata object
366
     */
367
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
368
        return typeDesc;
369
    }
370
 
371
    /**
372
     * Get Custom Serializer
373
     */
374
    public static org.apache.axis.encoding.Serializer getSerializer(
375
           java.lang.String mechType, 
376
           java.lang.Class _javaType,  
377
           javax.xml.namespace.QName _xmlType) {
378
        return 
379
          new  org.apache.axis.encoding.ser.BeanSerializer(
380
            _javaType, _xmlType, typeDesc);
381
    }
382
 
383
    /**
384
     * Get Custom Deserializer
385
     */
386
    public static org.apache.axis.encoding.Deserializer getDeserializer(
387
           java.lang.String mechType, 
388
           java.lang.Class _javaType,  
389
           javax.xml.namespace.QName _xmlType) {
390
        return 
391
          new  org.apache.axis.encoding.ser.BeanDeserializer(
392
            _javaType, _xmlType, typeDesc);
393
    }
394
 
395
}