Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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