Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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