Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * RadionuclideActivity.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
public class RadionuclideActivity  implements java.io.Serializable {
11
    private java.math.BigDecimal value;
12
 
13
    private com.fedex.ship.stub.RadioactivityUnitOfMeasure unitOfMeasure;
14
 
15
    public RadionuclideActivity() {
16
    }
17
 
18
    public RadionuclideActivity(
19
           java.math.BigDecimal value,
20
           com.fedex.ship.stub.RadioactivityUnitOfMeasure unitOfMeasure) {
21
           this.value = value;
22
           this.unitOfMeasure = unitOfMeasure;
23
    }
24
 
25
 
26
    /**
27
     * Gets the value value for this RadionuclideActivity.
28
     * 
29
     * @return value
30
     */
31
    public java.math.BigDecimal getValue() {
32
        return value;
33
    }
34
 
35
 
36
    /**
37
     * Sets the value value for this RadionuclideActivity.
38
     * 
39
     * @param value
40
     */
41
    public void setValue(java.math.BigDecimal value) {
42
        this.value = value;
43
    }
44
 
45
 
46
    /**
47
     * Gets the unitOfMeasure value for this RadionuclideActivity.
48
     * 
49
     * @return unitOfMeasure
50
     */
51
    public com.fedex.ship.stub.RadioactivityUnitOfMeasure getUnitOfMeasure() {
52
        return unitOfMeasure;
53
    }
54
 
55
 
56
    /**
57
     * Sets the unitOfMeasure value for this RadionuclideActivity.
58
     * 
59
     * @param unitOfMeasure
60
     */
61
    public void setUnitOfMeasure(com.fedex.ship.stub.RadioactivityUnitOfMeasure unitOfMeasure) {
62
        this.unitOfMeasure = unitOfMeasure;
63
    }
64
 
65
    private java.lang.Object __equalsCalc = null;
66
    public synchronized boolean equals(java.lang.Object obj) {
67
        if (!(obj instanceof RadionuclideActivity)) return false;
68
        RadionuclideActivity other = (RadionuclideActivity) obj;
69
        if (obj == null) return false;
70
        if (this == obj) return true;
71
        if (__equalsCalc != null) {
72
            return (__equalsCalc == obj);
73
        }
74
        __equalsCalc = obj;
75
        boolean _equals;
76
        _equals = true && 
77
            ((this.value==null && other.getValue()==null) || 
78
             (this.value!=null &&
79
              this.value.equals(other.getValue()))) &&
80
            ((this.unitOfMeasure==null && other.getUnitOfMeasure()==null) || 
81
             (this.unitOfMeasure!=null &&
82
              this.unitOfMeasure.equals(other.getUnitOfMeasure())));
83
        __equalsCalc = null;
84
        return _equals;
85
    }
86
 
87
    private boolean __hashCodeCalc = false;
88
    public synchronized int hashCode() {
89
        if (__hashCodeCalc) {
90
            return 0;
91
        }
92
        __hashCodeCalc = true;
93
        int _hashCode = 1;
94
        if (getValue() != null) {
95
            _hashCode += getValue().hashCode();
96
        }
97
        if (getUnitOfMeasure() != null) {
98
            _hashCode += getUnitOfMeasure().hashCode();
99
        }
100
        __hashCodeCalc = false;
101
        return _hashCode;
102
    }
103
 
104
    // Type metadata
105
    private static org.apache.axis.description.TypeDesc typeDesc =
106
        new org.apache.axis.description.TypeDesc(RadionuclideActivity.class, true);
107
 
108
    static {
109
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadionuclideActivity"));
110
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
111
        elemField.setFieldName("value");
112
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Value"));
113
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
114
        elemField.setMinOccurs(0);
115
        elemField.setNillable(false);
116
        typeDesc.addFieldDesc(elemField);
117
        elemField = new org.apache.axis.description.ElementDesc();
118
        elemField.setFieldName("unitOfMeasure");
119
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "UnitOfMeasure"));
120
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RadioactivityUnitOfMeasure"));
121
        elemField.setMinOccurs(0);
122
        elemField.setNillable(false);
123
        typeDesc.addFieldDesc(elemField);
124
    }
125
 
126
    /**
127
     * Return type metadata object
128
     */
129
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
130
        return typeDesc;
131
    }
132
 
133
    /**
134
     * Get Custom Serializer
135
     */
136
    public static org.apache.axis.encoding.Serializer getSerializer(
137
           java.lang.String mechType, 
138
           java.lang.Class _javaType,  
139
           javax.xml.namespace.QName _xmlType) {
140
        return 
141
          new  org.apache.axis.encoding.ser.BeanSerializer(
142
            _javaType, _xmlType, typeDesc);
143
    }
144
 
145
    /**
146
     * Get Custom Deserializer
147
     */
148
    public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
154
            _javaType, _xmlType, typeDesc);
155
    }
156
 
157
}