Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * NaftaCommodityDetail.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 element is currently not supported and is for the future use.
13
 */
14
public class NaftaCommodityDetail  implements java.io.Serializable {
15
    /* Defined by NAFTA regulations. */
16
    private com.fedex.ship.stub.NaftaPreferenceCriterionCode preferenceCriterion;
17
 
18
    /* Defined by NAFTA regulations. */
19
    private com.fedex.ship.stub.NaftaProducerDeterminationCode producerDetermination;
20
 
21
    /* Identification of which producer is associated with this commodity
22
     * (if multiple producers are used in a single shipment). */
23
    private java.lang.String producerId;
24
 
25
    private com.fedex.ship.stub.NaftaNetCostMethodCode netCostMethod;
26
 
27
    /* Date range over which RVC net cost was calculated. */
28
    private com.fedex.ship.stub.DateRange netCostDateRange;
29
 
30
    public NaftaCommodityDetail() {
31
    }
32
 
33
    public NaftaCommodityDetail(
34
           com.fedex.ship.stub.NaftaPreferenceCriterionCode preferenceCriterion,
35
           com.fedex.ship.stub.NaftaProducerDeterminationCode producerDetermination,
36
           java.lang.String producerId,
37
           com.fedex.ship.stub.NaftaNetCostMethodCode netCostMethod,
38
           com.fedex.ship.stub.DateRange netCostDateRange) {
39
           this.preferenceCriterion = preferenceCriterion;
40
           this.producerDetermination = producerDetermination;
41
           this.producerId = producerId;
42
           this.netCostMethod = netCostMethod;
43
           this.netCostDateRange = netCostDateRange;
44
    }
45
 
46
 
47
    /**
48
     * Gets the preferenceCriterion value for this NaftaCommodityDetail.
49
     * 
50
     * @return preferenceCriterion   * Defined by NAFTA regulations.
51
     */
52
    public com.fedex.ship.stub.NaftaPreferenceCriterionCode getPreferenceCriterion() {
53
        return preferenceCriterion;
54
    }
55
 
56
 
57
    /**
58
     * Sets the preferenceCriterion value for this NaftaCommodityDetail.
59
     * 
60
     * @param preferenceCriterion   * Defined by NAFTA regulations.
61
     */
62
    public void setPreferenceCriterion(com.fedex.ship.stub.NaftaPreferenceCriterionCode preferenceCriterion) {
63
        this.preferenceCriterion = preferenceCriterion;
64
    }
65
 
66
 
67
    /**
68
     * Gets the producerDetermination value for this NaftaCommodityDetail.
69
     * 
70
     * @return producerDetermination   * Defined by NAFTA regulations.
71
     */
72
    public com.fedex.ship.stub.NaftaProducerDeterminationCode getProducerDetermination() {
73
        return producerDetermination;
74
    }
75
 
76
 
77
    /**
78
     * Sets the producerDetermination value for this NaftaCommodityDetail.
79
     * 
80
     * @param producerDetermination   * Defined by NAFTA regulations.
81
     */
82
    public void setProducerDetermination(com.fedex.ship.stub.NaftaProducerDeterminationCode producerDetermination) {
83
        this.producerDetermination = producerDetermination;
84
    }
85
 
86
 
87
    /**
88
     * Gets the producerId value for this NaftaCommodityDetail.
89
     * 
90
     * @return producerId   * Identification of which producer is associated with this commodity
91
     * (if multiple producers are used in a single shipment).
92
     */
93
    public java.lang.String getProducerId() {
94
        return producerId;
95
    }
96
 
97
 
98
    /**
99
     * Sets the producerId value for this NaftaCommodityDetail.
100
     * 
101
     * @param producerId   * Identification of which producer is associated with this commodity
102
     * (if multiple producers are used in a single shipment).
103
     */
104
    public void setProducerId(java.lang.String producerId) {
105
        this.producerId = producerId;
106
    }
107
 
108
 
109
    /**
110
     * Gets the netCostMethod value for this NaftaCommodityDetail.
111
     * 
112
     * @return netCostMethod
113
     */
114
    public com.fedex.ship.stub.NaftaNetCostMethodCode getNetCostMethod() {
115
        return netCostMethod;
116
    }
117
 
118
 
119
    /**
120
     * Sets the netCostMethod value for this NaftaCommodityDetail.
121
     * 
122
     * @param netCostMethod
123
     */
124
    public void setNetCostMethod(com.fedex.ship.stub.NaftaNetCostMethodCode netCostMethod) {
125
        this.netCostMethod = netCostMethod;
126
    }
127
 
128
 
129
    /**
130
     * Gets the netCostDateRange value for this NaftaCommodityDetail.
131
     * 
132
     * @return netCostDateRange   * Date range over which RVC net cost was calculated.
133
     */
134
    public com.fedex.ship.stub.DateRange getNetCostDateRange() {
135
        return netCostDateRange;
136
    }
137
 
138
 
139
    /**
140
     * Sets the netCostDateRange value for this NaftaCommodityDetail.
141
     * 
142
     * @param netCostDateRange   * Date range over which RVC net cost was calculated.
143
     */
144
    public void setNetCostDateRange(com.fedex.ship.stub.DateRange netCostDateRange) {
145
        this.netCostDateRange = netCostDateRange;
146
    }
147
 
148
    private java.lang.Object __equalsCalc = null;
149
    public synchronized boolean equals(java.lang.Object obj) {
150
        if (!(obj instanceof NaftaCommodityDetail)) return false;
151
        NaftaCommodityDetail other = (NaftaCommodityDetail) obj;
152
        if (obj == null) return false;
153
        if (this == obj) return true;
154
        if (__equalsCalc != null) {
155
            return (__equalsCalc == obj);
156
        }
157
        __equalsCalc = obj;
158
        boolean _equals;
159
        _equals = true && 
160
            ((this.preferenceCriterion==null && other.getPreferenceCriterion()==null) || 
161
             (this.preferenceCriterion!=null &&
162
              this.preferenceCriterion.equals(other.getPreferenceCriterion()))) &&
163
            ((this.producerDetermination==null && other.getProducerDetermination()==null) || 
164
             (this.producerDetermination!=null &&
165
              this.producerDetermination.equals(other.getProducerDetermination()))) &&
166
            ((this.producerId==null && other.getProducerId()==null) || 
167
             (this.producerId!=null &&
168
              this.producerId.equals(other.getProducerId()))) &&
169
            ((this.netCostMethod==null && other.getNetCostMethod()==null) || 
170
             (this.netCostMethod!=null &&
171
              this.netCostMethod.equals(other.getNetCostMethod()))) &&
172
            ((this.netCostDateRange==null && other.getNetCostDateRange()==null) || 
173
             (this.netCostDateRange!=null &&
174
              this.netCostDateRange.equals(other.getNetCostDateRange())));
175
        __equalsCalc = null;
176
        return _equals;
177
    }
178
 
179
    private boolean __hashCodeCalc = false;
180
    public synchronized int hashCode() {
181
        if (__hashCodeCalc) {
182
            return 0;
183
        }
184
        __hashCodeCalc = true;
185
        int _hashCode = 1;
186
        if (getPreferenceCriterion() != null) {
187
            _hashCode += getPreferenceCriterion().hashCode();
188
        }
189
        if (getProducerDetermination() != null) {
190
            _hashCode += getProducerDetermination().hashCode();
191
        }
192
        if (getProducerId() != null) {
193
            _hashCode += getProducerId().hashCode();
194
        }
195
        if (getNetCostMethod() != null) {
196
            _hashCode += getNetCostMethod().hashCode();
197
        }
198
        if (getNetCostDateRange() != null) {
199
            _hashCode += getNetCostDateRange().hashCode();
200
        }
201
        __hashCodeCalc = false;
202
        return _hashCode;
203
    }
204
 
205
    // Type metadata
206
    private static org.apache.axis.description.TypeDesc typeDesc =
207
        new org.apache.axis.description.TypeDesc(NaftaCommodityDetail.class, true);
208
 
209
    static {
210
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaCommodityDetail"));
211
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
212
        elemField.setFieldName("preferenceCriterion");
213
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PreferenceCriterion"));
214
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaPreferenceCriterionCode"));
215
        elemField.setMinOccurs(0);
216
        elemField.setNillable(false);
217
        typeDesc.addFieldDesc(elemField);
218
        elemField = new org.apache.axis.description.ElementDesc();
219
        elemField.setFieldName("producerDetermination");
220
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ProducerDetermination"));
221
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaProducerDeterminationCode"));
222
        elemField.setMinOccurs(0);
223
        elemField.setNillable(false);
224
        typeDesc.addFieldDesc(elemField);
225
        elemField = new org.apache.axis.description.ElementDesc();
226
        elemField.setFieldName("producerId");
227
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ProducerId"));
228
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
229
        elemField.setMinOccurs(0);
230
        elemField.setNillable(false);
231
        typeDesc.addFieldDesc(elemField);
232
        elemField = new org.apache.axis.description.ElementDesc();
233
        elemField.setFieldName("netCostMethod");
234
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NetCostMethod"));
235
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaNetCostMethodCode"));
236
        elemField.setMinOccurs(0);
237
        elemField.setNillable(false);
238
        typeDesc.addFieldDesc(elemField);
239
        elemField = new org.apache.axis.description.ElementDesc();
240
        elemField.setFieldName("netCostDateRange");
241
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NetCostDateRange"));
242
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DateRange"));
243
        elemField.setMinOccurs(0);
244
        elemField.setNillable(false);
245
        typeDesc.addFieldDesc(elemField);
246
    }
247
 
248
    /**
249
     * Return type metadata object
250
     */
251
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
252
        return typeDesc;
253
    }
254
 
255
    /**
256
     * Get Custom Serializer
257
     */
258
    public static org.apache.axis.encoding.Serializer getSerializer(
259
           java.lang.String mechType, 
260
           java.lang.Class _javaType,  
261
           javax.xml.namespace.QName _xmlType) {
262
        return 
263
          new  org.apache.axis.encoding.ser.BeanSerializer(
264
            _javaType, _xmlType, typeDesc);
265
    }
266
 
267
    /**
268
     * Get Custom Deserializer
269
     */
270
    public static org.apache.axis.encoding.Deserializer getDeserializer(
271
           java.lang.String mechType, 
272
           java.lang.Class _javaType,  
273
           javax.xml.namespace.QName _xmlType) {
274
        return 
275
          new  org.apache.axis.encoding.ser.BeanDeserializer(
276
            _javaType, _xmlType, typeDesc);
277
    }
278
 
279
}