Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * HazardousCommodityOptionDetail.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
 * Customer-provided specifications for handling individual commodities.
13
 */
14
public class HazardousCommodityOptionDetail  implements java.io.Serializable {
15
    /* Specifies how the customer wishes the label text to be handled
16
     * for this commodity in this package. */
17
    private com.fedex.ship.stub.HazardousCommodityLabelTextOptionType labelTextOption;
18
 
19
    /* Text used in labeling the commodity under control of the labelTextOption
20
     * field. */
21
    private java.lang.String customerSuppliedLabelText;
22
 
23
    public HazardousCommodityOptionDetail() {
24
    }
25
 
26
    public HazardousCommodityOptionDetail(
27
           com.fedex.ship.stub.HazardousCommodityLabelTextOptionType labelTextOption,
28
           java.lang.String customerSuppliedLabelText) {
29
           this.labelTextOption = labelTextOption;
30
           this.customerSuppliedLabelText = customerSuppliedLabelText;
31
    }
32
 
33
 
34
    /**
35
     * Gets the labelTextOption value for this HazardousCommodityOptionDetail.
36
     * 
37
     * @return labelTextOption   * Specifies how the customer wishes the label text to be handled
38
     * for this commodity in this package.
39
     */
40
    public com.fedex.ship.stub.HazardousCommodityLabelTextOptionType getLabelTextOption() {
41
        return labelTextOption;
42
    }
43
 
44
 
45
    /**
46
     * Sets the labelTextOption value for this HazardousCommodityOptionDetail.
47
     * 
48
     * @param labelTextOption   * Specifies how the customer wishes the label text to be handled
49
     * for this commodity in this package.
50
     */
51
    public void setLabelTextOption(com.fedex.ship.stub.HazardousCommodityLabelTextOptionType labelTextOption) {
52
        this.labelTextOption = labelTextOption;
53
    }
54
 
55
 
56
    /**
57
     * Gets the customerSuppliedLabelText value for this HazardousCommodityOptionDetail.
58
     * 
59
     * @return customerSuppliedLabelText   * Text used in labeling the commodity under control of the labelTextOption
60
     * field.
61
     */
62
    public java.lang.String getCustomerSuppliedLabelText() {
63
        return customerSuppliedLabelText;
64
    }
65
 
66
 
67
    /**
68
     * Sets the customerSuppliedLabelText value for this HazardousCommodityOptionDetail.
69
     * 
70
     * @param customerSuppliedLabelText   * Text used in labeling the commodity under control of the labelTextOption
71
     * field.
72
     */
73
    public void setCustomerSuppliedLabelText(java.lang.String customerSuppliedLabelText) {
74
        this.customerSuppliedLabelText = customerSuppliedLabelText;
75
    }
76
 
77
    private java.lang.Object __equalsCalc = null;
78
    public synchronized boolean equals(java.lang.Object obj) {
79
        if (!(obj instanceof HazardousCommodityOptionDetail)) return false;
80
        HazardousCommodityOptionDetail other = (HazardousCommodityOptionDetail) obj;
81
        if (obj == null) return false;
82
        if (this == obj) return true;
83
        if (__equalsCalc != null) {
84
            return (__equalsCalc == obj);
85
        }
86
        __equalsCalc = obj;
87
        boolean _equals;
88
        _equals = true && 
89
            ((this.labelTextOption==null && other.getLabelTextOption()==null) || 
90
             (this.labelTextOption!=null &&
91
              this.labelTextOption.equals(other.getLabelTextOption()))) &&
92
            ((this.customerSuppliedLabelText==null && other.getCustomerSuppliedLabelText()==null) || 
93
             (this.customerSuppliedLabelText!=null &&
94
              this.customerSuppliedLabelText.equals(other.getCustomerSuppliedLabelText())));
95
        __equalsCalc = null;
96
        return _equals;
97
    }
98
 
99
    private boolean __hashCodeCalc = false;
100
    public synchronized int hashCode() {
101
        if (__hashCodeCalc) {
102
            return 0;
103
        }
104
        __hashCodeCalc = true;
105
        int _hashCode = 1;
106
        if (getLabelTextOption() != null) {
107
            _hashCode += getLabelTextOption().hashCode();
108
        }
109
        if (getCustomerSuppliedLabelText() != null) {
110
            _hashCode += getCustomerSuppliedLabelText().hashCode();
111
        }
112
        __hashCodeCalc = false;
113
        return _hashCode;
114
    }
115
 
116
    // Type metadata
117
    private static org.apache.axis.description.TypeDesc typeDesc =
118
        new org.apache.axis.description.TypeDesc(HazardousCommodityOptionDetail.class, true);
119
 
120
    static {
121
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityOptionDetail"));
122
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
123
        elemField.setFieldName("labelTextOption");
124
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelTextOption"));
125
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousCommodityLabelTextOptionType"));
126
        elemField.setMinOccurs(0);
127
        elemField.setNillable(false);
128
        typeDesc.addFieldDesc(elemField);
129
        elemField = new org.apache.axis.description.ElementDesc();
130
        elemField.setFieldName("customerSuppliedLabelText");
131
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerSuppliedLabelText"));
132
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
133
        elemField.setMinOccurs(0);
134
        elemField.setNillable(false);
135
        typeDesc.addFieldDesc(elemField);
136
    }
137
 
138
    /**
139
     * Return type metadata object
140
     */
141
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
142
        return typeDesc;
143
    }
144
 
145
    /**
146
     * Get Custom Serializer
147
     */
148
    public static org.apache.axis.encoding.Serializer getSerializer(
149
           java.lang.String mechType, 
150
           java.lang.Class _javaType,  
151
           javax.xml.namespace.QName _xmlType) {
152
        return 
153
          new  org.apache.axis.encoding.ser.BeanSerializer(
154
            _javaType, _xmlType, typeDesc);
155
    }
156
 
157
    /**
158
     * Get Custom Deserializer
159
     */
160
    public static org.apache.axis.encoding.Deserializer getDeserializer(
161
           java.lang.String mechType, 
162
           java.lang.Class _javaType,  
163
           javax.xml.namespace.QName _xmlType) {
164
        return 
165
          new  org.apache.axis.encoding.ser.BeanDeserializer(
166
            _javaType, _xmlType, typeDesc);
167
    }
168
 
169
}