Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * Rma.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
 * June 2011 ITG 121203 IR-RMA number has been removed from this structure
13
 * and added as a new customer reference type. The structure remains
14
 * because of the reason field below.
15
 */
16
public class Rma  implements java.io.Serializable {
17
    /* The reason for the return. */
18
    private java.lang.String reason;
19
 
20
    public Rma() {
21
    }
22
 
23
    public Rma(
24
           java.lang.String reason) {
25
           this.reason = reason;
26
    }
27
 
28
 
29
    /**
30
     * Gets the reason value for this Rma.
31
     * 
32
     * @return reason   * The reason for the return.
33
     */
34
    public java.lang.String getReason() {
35
        return reason;
36
    }
37
 
38
 
39
    /**
40
     * Sets the reason value for this Rma.
41
     * 
42
     * @param reason   * The reason for the return.
43
     */
44
    public void setReason(java.lang.String reason) {
45
        this.reason = reason;
46
    }
47
 
48
    private java.lang.Object __equalsCalc = null;
49
    public synchronized boolean equals(java.lang.Object obj) {
50
        if (!(obj instanceof Rma)) return false;
51
        Rma other = (Rma) obj;
52
        if (obj == null) return false;
53
        if (this == obj) return true;
54
        if (__equalsCalc != null) {
55
            return (__equalsCalc == obj);
56
        }
57
        __equalsCalc = obj;
58
        boolean _equals;
59
        _equals = true && 
60
            ((this.reason==null && other.getReason()==null) || 
61
             (this.reason!=null &&
62
              this.reason.equals(other.getReason())));
63
        __equalsCalc = null;
64
        return _equals;
65
    }
66
 
67
    private boolean __hashCodeCalc = false;
68
    public synchronized int hashCode() {
69
        if (__hashCodeCalc) {
70
            return 0;
71
        }
72
        __hashCodeCalc = true;
73
        int _hashCode = 1;
74
        if (getReason() != null) {
75
            _hashCode += getReason().hashCode();
76
        }
77
        __hashCodeCalc = false;
78
        return _hashCode;
79
    }
80
 
81
    // Type metadata
82
    private static org.apache.axis.description.TypeDesc typeDesc =
83
        new org.apache.axis.description.TypeDesc(Rma.class, true);
84
 
85
    static {
86
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Rma"));
87
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
88
        elemField.setFieldName("reason");
89
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Reason"));
90
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
91
        elemField.setMinOccurs(0);
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
}