Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * TransactionDetail.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
 * Descriptive data that governs data payload language/translations.
13
 * The TransactionDetail from the request is echoed back to the caller
14
 * in the corresponding reply.
15
 */
16
public class TransactionDetail  implements java.io.Serializable {
17
    /* Free form text to be echoed back in the reply. Used to match
18
     * requests and replies. */
19
    private java.lang.String customerTransactionId;
20
 
21
    /* Governs data payload language/translations (contrasted with
22
     * ClientDetail.localization, which governs Notification.localizedMessage
23
     * language selection). */
24
    private com.fedex.track.stub.Localization localization;
25
 
26
    public TransactionDetail() {
27
    }
28
 
29
    public TransactionDetail(
30
           java.lang.String customerTransactionId,
31
           com.fedex.track.stub.Localization localization) {
32
           this.customerTransactionId = customerTransactionId;
33
           this.localization = localization;
34
    }
35
 
36
 
37
    /**
38
     * Gets the customerTransactionId value for this TransactionDetail.
39
     * 
40
     * @return customerTransactionId   * Free form text to be echoed back in the reply. Used to match
41
     * requests and replies.
42
     */
43
    public java.lang.String getCustomerTransactionId() {
44
        return customerTransactionId;
45
    }
46
 
47
 
48
    /**
49
     * Sets the customerTransactionId value for this TransactionDetail.
50
     * 
51
     * @param customerTransactionId   * Free form text to be echoed back in the reply. Used to match
52
     * requests and replies.
53
     */
54
    public void setCustomerTransactionId(java.lang.String customerTransactionId) {
55
        this.customerTransactionId = customerTransactionId;
56
    }
57
 
58
 
59
    /**
60
     * Gets the localization value for this TransactionDetail.
61
     * 
62
     * @return localization   * Governs data payload language/translations (contrasted with
63
     * ClientDetail.localization, which governs Notification.localizedMessage
64
     * language selection).
65
     */
66
    public com.fedex.track.stub.Localization getLocalization() {
67
        return localization;
68
    }
69
 
70
 
71
    /**
72
     * Sets the localization value for this TransactionDetail.
73
     * 
74
     * @param localization   * Governs data payload language/translations (contrasted with
75
     * ClientDetail.localization, which governs Notification.localizedMessage
76
     * language selection).
77
     */
78
    public void setLocalization(com.fedex.track.stub.Localization localization) {
79
        this.localization = localization;
80
    }
81
 
82
    private java.lang.Object __equalsCalc = null;
83
    public synchronized boolean equals(java.lang.Object obj) {
84
        if (!(obj instanceof TransactionDetail)) return false;
85
        TransactionDetail other = (TransactionDetail) obj;
86
        if (obj == null) return false;
87
        if (this == obj) return true;
88
        if (__equalsCalc != null) {
89
            return (__equalsCalc == obj);
90
        }
91
        __equalsCalc = obj;
92
        boolean _equals;
93
        _equals = true && 
94
            ((this.customerTransactionId==null && other.getCustomerTransactionId()==null) || 
95
             (this.customerTransactionId!=null &&
96
              this.customerTransactionId.equals(other.getCustomerTransactionId()))) &&
97
            ((this.localization==null && other.getLocalization()==null) || 
98
             (this.localization!=null &&
99
              this.localization.equals(other.getLocalization())));
100
        __equalsCalc = null;
101
        return _equals;
102
    }
103
 
104
    private boolean __hashCodeCalc = false;
105
    public synchronized int hashCode() {
106
        if (__hashCodeCalc) {
107
            return 0;
108
        }
109
        __hashCodeCalc = true;
110
        int _hashCode = 1;
111
        if (getCustomerTransactionId() != null) {
112
            _hashCode += getCustomerTransactionId().hashCode();
113
        }
114
        if (getLocalization() != null) {
115
            _hashCode += getLocalization().hashCode();
116
        }
117
        __hashCodeCalc = false;
118
        return _hashCode;
119
    }
120
 
121
    // Type metadata
122
    private static org.apache.axis.description.TypeDesc typeDesc =
123
        new org.apache.axis.description.TypeDesc(TransactionDetail.class, true);
124
 
125
    static {
126
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "TransactionDetail"));
127
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
128
        elemField.setFieldName("customerTransactionId");
129
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "CustomerTransactionId"));
130
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
131
        elemField.setMinOccurs(0);
132
        elemField.setNillable(false);
133
        typeDesc.addFieldDesc(elemField);
134
        elemField = new org.apache.axis.description.ElementDesc();
135
        elemField.setFieldName("localization");
136
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Localization"));
137
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Localization"));
138
        elemField.setMinOccurs(0);
139
        elemField.setNillable(false);
140
        typeDesc.addFieldDesc(elemField);
141
    }
142
 
143
    /**
144
     * Return type metadata object
145
     */
146
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
147
        return typeDesc;
148
    }
149
 
150
    /**
151
     * Get Custom Serializer
152
     */
153
    public static org.apache.axis.encoding.Serializer getSerializer(
154
           java.lang.String mechType, 
155
           java.lang.Class _javaType,  
156
           javax.xml.namespace.QName _xmlType) {
157
        return 
158
          new  org.apache.axis.encoding.ser.BeanSerializer(
159
            _javaType, _xmlType, typeDesc);
160
    }
161
 
162
    /**
163
     * Get Custom Deserializer
164
     */
165
    public static org.apache.axis.encoding.Deserializer getDeserializer(
166
           java.lang.String mechType, 
167
           java.lang.Class _javaType,  
168
           javax.xml.namespace.QName _xmlType) {
169
        return 
170
          new  org.apache.axis.encoding.ser.BeanDeserializer(
171
            _javaType, _xmlType, typeDesc);
172
    }
173
 
174
}