Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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