Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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