Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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