Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * WebAuthenticationDetail.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
 * Used in authentication of the sender's identity.
13
 */
14
public class WebAuthenticationDetail  implements java.io.Serializable {
15
    /* Credential used to authenticate a specific software application.
16
     * This value is provided by FedEx after registration. */
17
    private com.fedex.track.stub.WebAuthenticationCredential userCredential;
18
 
19
    public WebAuthenticationDetail() {
20
    }
21
 
22
    public WebAuthenticationDetail(
23
           com.fedex.track.stub.WebAuthenticationCredential userCredential) {
24
           this.userCredential = userCredential;
25
    }
26
 
27
 
28
    /**
29
     * Gets the userCredential value for this WebAuthenticationDetail.
30
     * 
31
     * @return userCredential   * Credential used to authenticate a specific software application.
32
     * This value is provided by FedEx after registration.
33
     */
34
    public com.fedex.track.stub.WebAuthenticationCredential getUserCredential() {
35
        return userCredential;
36
    }
37
 
38
 
39
    /**
40
     * Sets the userCredential value for this WebAuthenticationDetail.
41
     * 
42
     * @param userCredential   * Credential used to authenticate a specific software application.
43
     * This value is provided by FedEx after registration.
44
     */
45
    public void setUserCredential(com.fedex.track.stub.WebAuthenticationCredential userCredential) {
46
        this.userCredential = userCredential;
47
    }
48
 
49
    private java.lang.Object __equalsCalc = null;
50
    public synchronized boolean equals(java.lang.Object obj) {
51
        if (!(obj instanceof WebAuthenticationDetail)) return false;
52
        WebAuthenticationDetail other = (WebAuthenticationDetail) obj;
53
        if (obj == null) return false;
54
        if (this == obj) return true;
55
        if (__equalsCalc != null) {
56
            return (__equalsCalc == obj);
57
        }
58
        __equalsCalc = obj;
59
        boolean _equals;
60
        _equals = true && 
61
            ((this.userCredential==null && other.getUserCredential()==null) || 
62
             (this.userCredential!=null &&
63
              this.userCredential.equals(other.getUserCredential())));
64
        __equalsCalc = null;
65
        return _equals;
66
    }
67
 
68
    private boolean __hashCodeCalc = false;
69
    public synchronized int hashCode() {
70
        if (__hashCodeCalc) {
71
            return 0;
72
        }
73
        __hashCodeCalc = true;
74
        int _hashCode = 1;
75
        if (getUserCredential() != null) {
76
            _hashCode += getUserCredential().hashCode();
77
        }
78
        __hashCodeCalc = false;
79
        return _hashCode;
80
    }
81
 
82
    // Type metadata
83
    private static org.apache.axis.description.TypeDesc typeDesc =
84
        new org.apache.axis.description.TypeDesc(WebAuthenticationDetail.class, true);
85
 
86
    static {
87
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "WebAuthenticationDetail"));
88
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
89
        elemField.setFieldName("userCredential");
90
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "UserCredential"));
91
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "WebAuthenticationCredential"));
92
        elemField.setNillable(false);
93
        typeDesc.addFieldDesc(elemField);
94
    }
95
 
96
    /**
97
     * Return type metadata object
98
     */
99
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
100
        return typeDesc;
101
    }
102
 
103
    /**
104
     * Get Custom Serializer
105
     */
106
    public static org.apache.axis.encoding.Serializer getSerializer(
107
           java.lang.String mechType, 
108
           java.lang.Class _javaType,  
109
           javax.xml.namespace.QName _xmlType) {
110
        return 
111
          new  org.apache.axis.encoding.ser.BeanSerializer(
112
            _javaType, _xmlType, typeDesc);
113
    }
114
 
115
    /**
116
     * Get Custom Deserializer
117
     */
118
    public static org.apache.axis.encoding.Deserializer getDeserializer(
119
           java.lang.String mechType, 
120
           java.lang.Class _javaType,  
121
           javax.xml.namespace.QName _xmlType) {
122
        return 
123
          new  org.apache.axis.encoding.ser.BeanDeserializer(
124
            _javaType, _xmlType, typeDesc);
125
    }
126
 
127
}