Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * HazardousCommodityContent.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
 * Documents the kind and quantity of an individual hazardous commodity
13
 * in a package.
14
 */
15
public class HazardousCommodityContent  implements java.io.Serializable {
16
    /* Identifies and describes an individual hazardous commodity. */
17
    private com.fedex.ship.stub.HazardousCommodityDescription description;
18
 
19
    /* Specifies the amount of the commodity in alternate units. */
20
    private com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity;
21
 
22
    /* Customer-provided specifications for handling individual commodities. */
23
    private com.fedex.ship.stub.HazardousCommodityOptionDetail options;
24
 
25
    /* Specifies the details of any radio active materials within
26
     * the commodity. */
27
    private com.fedex.ship.stub.RadionuclideDetail radionuclideDetail;
28
 
29
    public HazardousCommodityContent() {
30
    }
31
 
32
    public HazardousCommodityContent(
33
           com.fedex.ship.stub.HazardousCommodityDescription description,
34
           com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity,
35
           com.fedex.ship.stub.HazardousCommodityOptionDetail options,
36
           com.fedex.ship.stub.RadionuclideDetail radionuclideDetail) {
37
           this.description = description;
38
           this.quantity = quantity;
39
           this.options = options;
40
           this.radionuclideDetail = radionuclideDetail;
41
    }
42
 
43
 
44
    /**
45
     * Gets the description value for this HazardousCommodityContent.
46
     * 
47
     * @return description   * Identifies and describes an individual hazardous commodity.
48
     */
49
    public com.fedex.ship.stub.HazardousCommodityDescription getDescription() {
50
        return description;
51
    }
52
 
53
 
54
    /**
55
     * Sets the description value for this HazardousCommodityContent.
56
     * 
57
     * @param description   * Identifies and describes an individual hazardous commodity.
58
     */
59
    public void setDescription(com.fedex.ship.stub.HazardousCommodityDescription description) {
60
        this.description = description;
61
    }
62
 
63
 
64
    /**
65
     * Gets the quantity value for this HazardousCommodityContent.
66
     * 
67
     * @return quantity   * Specifies the amount of the commodity in alternate units.
68
     */
69
    public com.fedex.ship.stub.HazardousCommodityQuantityDetail getQuantity() {
70
        return quantity;
71
    }
72
 
73
 
74
    /**
75
     * Sets the quantity value for this HazardousCommodityContent.
76
     * 
77
     * @param quantity   * Specifies the amount of the commodity in alternate units.
78
     */
79
    public void setQuantity(com.fedex.ship.stub.HazardousCommodityQuantityDetail quantity) {
80
        this.quantity = quantity;
81
    }
82
 
83
 
84
    /**
85
     * Gets the options value for this HazardousCommodityContent.
86
     * 
87
     * @return options   * Customer-provided specifications for handling individual commodities.
88
     */
89
    public com.fedex.ship.stub.HazardousCommodityOptionDetail getOptions() {
90
        return options;
91
    }
92
 
93
 
94
    /**
95
     * Sets the options value for this HazardousCommodityContent.
96
     * 
97
     * @param options   * Customer-provided specifications for handling individual commodities.
98
     */
99
    public void setOptions(com.fedex.ship.stub.HazardousCommodityOptionDetail options) {
100
        this.options = options;
101
    }
102
 
103
 
104
    /**
105
     * Gets the radionuclideDetail value for this HazardousCommodityContent.
106
     * 
107
     * @return radionuclideDetail   * Specifies the details of any radio active materials within
108
     * the commodity.
109
     */
110
    public com.fedex.ship.stub.RadionuclideDetail getRadionuclideDetail() {
111
        return radionuclideDetail;
112
    }
113
 
114
 
115
    /**
116
     * Sets the radionuclideDetail value for this HazardousCommodityContent.
117
     * 
118
     * @param radionuclideDetail   * Specifies the details of any radio active materials within
119
     * the commodity.
120
     */
121
    public void setRadionuclideDetail(com.fedex.ship.stub.RadionuclideDetail radionuclideDetail) {
122
        this.radionuclideDetail = radionuclideDetail;
123
    }
124
 
125
    private java.lang.Object __equalsCalc = null;
126
    public synchronized boolean equals(java.lang.Object obj) {
127
        if (!(obj instanceof HazardousCommodityContent)) return false;
128
        HazardousCommodityContent other = (HazardousCommodityContent) obj;
129
        if (obj == null) return false;
130
        if (this == obj) return true;
131
        if (__equalsCalc != null) {
132
            return (__equalsCalc == obj);
133
        }
134
        __equalsCalc = obj;
135
        boolean _equals;
136
        _equals = true && 
137
            ((this.description==null && other.getDescription()==null) || 
138
             (this.description!=null &&
139
              this.description.equals(other.getDescription()))) &&
140
            ((this.quantity==null && other.getQuantity()==null) || 
141
             (this.quantity!=null &&
142
              this.quantity.equals(other.getQuantity()))) &&
143
            ((this.options==null && other.getOptions()==null) || 
144
             (this.options!=null &&
145
              this.options.equals(other.getOptions()))) &&
146
            ((this.radionuclideDetail==null && other.getRadionuclideDetail()==null) || 
147
             (this.radionuclideDetail!=null &&
148
              this.radionuclideDetail.equals(other.getRadionuclideDetail())));
149
        __equalsCalc = null;
150
        return _equals;
151
    }
152
 
153
    private boolean __hashCodeCalc = false;
154
    public synchronized int hashCode() {
155
        if (__hashCodeCalc) {
156
            return 0;
157
        }
158
        __hashCodeCalc = true;
159
        int _hashCode = 1;
160
        if (getDescription() != null) {
161
            _hashCode += getDescription().hashCode();
162
        }
163
        if (getQuantity() != null) {
164
            _hashCode += getQuantity().hashCode();
165
        }
166
        if (getOptions() != null) {
167
            _hashCode += getOptions().hashCode();
168
        }
169
        if (getRadionuclideDetail() != null) {
170
            _hashCode += getRadionuclideDetail().hashCode();
171
        }
172
        __hashCodeCalc = false;
173
        return _hashCode;
174
    }
175
 
176
    // Type metadata
177
    private static org.apache.axis.description.TypeDesc typeDesc =
178
        new org.apache.axis.description.TypeDesc(HazardousCommodityContent.class, true);
179
 
180
    static {
181
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityContent"));
182
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
183
        elemField.setFieldName("description");
184
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Description"));
185
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityDescription"));
186
        elemField.setMinOccurs(0);
187
        elemField.setNillable(false);
188
        typeDesc.addFieldDesc(elemField);
189
        elemField = new org.apache.axis.description.ElementDesc();
190
        elemField.setFieldName("quantity");
191
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Quantity"));
192
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityQuantityDetail"));
193
        elemField.setMinOccurs(0);
194
        elemField.setNillable(false);
195
        typeDesc.addFieldDesc(elemField);
196
        elemField = new org.apache.axis.description.ElementDesc();
197
        elemField.setFieldName("options");
198
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Options"));
199
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityOptionDetail"));
200
        elemField.setMinOccurs(0);
201
        elemField.setNillable(false);
202
        typeDesc.addFieldDesc(elemField);
203
        elemField = new org.apache.axis.description.ElementDesc();
204
        elemField.setFieldName("radionuclideDetail");
205
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadionuclideDetail"));
206
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadionuclideDetail"));
207
        elemField.setMinOccurs(0);
208
        elemField.setNillable(false);
209
        typeDesc.addFieldDesc(elemField);
210
    }
211
 
212
    /**
213
     * Return type metadata object
214
     */
215
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
216
        return typeDesc;
217
    }
218
 
219
    /**
220
     * Get Custom Serializer
221
     */
222
    public static org.apache.axis.encoding.Serializer getSerializer(
223
           java.lang.String mechType, 
224
           java.lang.Class _javaType,  
225
           javax.xml.namespace.QName _xmlType) {
226
        return 
227
          new  org.apache.axis.encoding.ser.BeanSerializer(
228
            _javaType, _xmlType, typeDesc);
229
    }
230
 
231
    /**
232
     * Get Custom Deserializer
233
     */
234
    public static org.apache.axis.encoding.Deserializer getDeserializer(
235
           java.lang.String mechType, 
236
           java.lang.Class _javaType,  
237
           javax.xml.namespace.QName _xmlType) {
238
        return 
239
          new  org.apache.axis.encoding.ser.BeanDeserializer(
240
            _javaType, _xmlType, typeDesc);
241
    }
242
 
243
}