Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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