Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ReturnShipmentDetail.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
 * Information relating to a return shipment.
13
 */
14
public class ReturnShipmentDetail  implements java.io.Serializable {
15
    /* The type of return shipment that is being requested. */
16
    private com.fedex.ship.stub.ReturnType returnType;
17
 
18
    /* Return Merchant Authorization */
19
    private com.fedex.ship.stub.Rma rma;
20
 
21
    /* Describes specific information about the email label for return
22
     * shipment. */
23
    private com.fedex.ship.stub.ReturnEMailDetail returnEMailDetail;
24
 
25
    private com.fedex.ship.stub.ReturnAssociationDetail returnAssociation;
26
 
27
    public ReturnShipmentDetail() {
28
    }
29
 
30
    public ReturnShipmentDetail(
31
           com.fedex.ship.stub.ReturnType returnType,
32
           com.fedex.ship.stub.Rma rma,
33
           com.fedex.ship.stub.ReturnEMailDetail returnEMailDetail,
34
           com.fedex.ship.stub.ReturnAssociationDetail returnAssociation) {
35
           this.returnType = returnType;
36
           this.rma = rma;
37
           this.returnEMailDetail = returnEMailDetail;
38
           this.returnAssociation = returnAssociation;
39
    }
40
 
41
 
42
    /**
43
     * Gets the returnType value for this ReturnShipmentDetail.
44
     * 
45
     * @return returnType   * The type of return shipment that is being requested.
46
     */
47
    public com.fedex.ship.stub.ReturnType getReturnType() {
48
        return returnType;
49
    }
50
 
51
 
52
    /**
53
     * Sets the returnType value for this ReturnShipmentDetail.
54
     * 
55
     * @param returnType   * The type of return shipment that is being requested.
56
     */
57
    public void setReturnType(com.fedex.ship.stub.ReturnType returnType) {
58
        this.returnType = returnType;
59
    }
60
 
61
 
62
    /**
63
     * Gets the rma value for this ReturnShipmentDetail.
64
     * 
65
     * @return rma   * Return Merchant Authorization
66
     */
67
    public com.fedex.ship.stub.Rma getRma() {
68
        return rma;
69
    }
70
 
71
 
72
    /**
73
     * Sets the rma value for this ReturnShipmentDetail.
74
     * 
75
     * @param rma   * Return Merchant Authorization
76
     */
77
    public void setRma(com.fedex.ship.stub.Rma rma) {
78
        this.rma = rma;
79
    }
80
 
81
 
82
    /**
83
     * Gets the returnEMailDetail value for this ReturnShipmentDetail.
84
     * 
85
     * @return returnEMailDetail   * Describes specific information about the email label for return
86
     * shipment.
87
     */
88
    public com.fedex.ship.stub.ReturnEMailDetail getReturnEMailDetail() {
89
        return returnEMailDetail;
90
    }
91
 
92
 
93
    /**
94
     * Sets the returnEMailDetail value for this ReturnShipmentDetail.
95
     * 
96
     * @param returnEMailDetail   * Describes specific information about the email label for return
97
     * shipment.
98
     */
99
    public void setReturnEMailDetail(com.fedex.ship.stub.ReturnEMailDetail returnEMailDetail) {
100
        this.returnEMailDetail = returnEMailDetail;
101
    }
102
 
103
 
104
    /**
105
     * Gets the returnAssociation value for this ReturnShipmentDetail.
106
     * 
107
     * @return returnAssociation
108
     */
109
    public com.fedex.ship.stub.ReturnAssociationDetail getReturnAssociation() {
110
        return returnAssociation;
111
    }
112
 
113
 
114
    /**
115
     * Sets the returnAssociation value for this ReturnShipmentDetail.
116
     * 
117
     * @param returnAssociation
118
     */
119
    public void setReturnAssociation(com.fedex.ship.stub.ReturnAssociationDetail returnAssociation) {
120
        this.returnAssociation = returnAssociation;
121
    }
122
 
123
    private java.lang.Object __equalsCalc = null;
124
    public synchronized boolean equals(java.lang.Object obj) {
125
        if (!(obj instanceof ReturnShipmentDetail)) return false;
126
        ReturnShipmentDetail other = (ReturnShipmentDetail) obj;
127
        if (obj == null) return false;
128
        if (this == obj) return true;
129
        if (__equalsCalc != null) {
130
            return (__equalsCalc == obj);
131
        }
132
        __equalsCalc = obj;
133
        boolean _equals;
134
        _equals = true && 
135
            ((this.returnType==null && other.getReturnType()==null) || 
136
             (this.returnType!=null &&
137
              this.returnType.equals(other.getReturnType()))) &&
138
            ((this.rma==null && other.getRma()==null) || 
139
             (this.rma!=null &&
140
              this.rma.equals(other.getRma()))) &&
141
            ((this.returnEMailDetail==null && other.getReturnEMailDetail()==null) || 
142
             (this.returnEMailDetail!=null &&
143
              this.returnEMailDetail.equals(other.getReturnEMailDetail()))) &&
144
            ((this.returnAssociation==null && other.getReturnAssociation()==null) || 
145
             (this.returnAssociation!=null &&
146
              this.returnAssociation.equals(other.getReturnAssociation())));
147
        __equalsCalc = null;
148
        return _equals;
149
    }
150
 
151
    private boolean __hashCodeCalc = false;
152
    public synchronized int hashCode() {
153
        if (__hashCodeCalc) {
154
            return 0;
155
        }
156
        __hashCodeCalc = true;
157
        int _hashCode = 1;
158
        if (getReturnType() != null) {
159
            _hashCode += getReturnType().hashCode();
160
        }
161
        if (getRma() != null) {
162
            _hashCode += getRma().hashCode();
163
        }
164
        if (getReturnEMailDetail() != null) {
165
            _hashCode += getReturnEMailDetail().hashCode();
166
        }
167
        if (getReturnAssociation() != null) {
168
            _hashCode += getReturnAssociation().hashCode();
169
        }
170
        __hashCodeCalc = false;
171
        return _hashCode;
172
    }
173
 
174
    // Type metadata
175
    private static org.apache.axis.description.TypeDesc typeDesc =
176
        new org.apache.axis.description.TypeDesc(ReturnShipmentDetail.class, true);
177
 
178
    static {
179
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnShipmentDetail"));
180
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
181
        elemField.setFieldName("returnType");
182
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnType"));
183
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnType"));
184
        elemField.setNillable(false);
185
        typeDesc.addFieldDesc(elemField);
186
        elemField = new org.apache.axis.description.ElementDesc();
187
        elemField.setFieldName("rma");
188
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Rma"));
189
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Rma"));
190
        elemField.setMinOccurs(0);
191
        elemField.setNillable(false);
192
        typeDesc.addFieldDesc(elemField);
193
        elemField = new org.apache.axis.description.ElementDesc();
194
        elemField.setFieldName("returnEMailDetail");
195
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnEMailDetail"));
196
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnEMailDetail"));
197
        elemField.setMinOccurs(0);
198
        elemField.setNillable(false);
199
        typeDesc.addFieldDesc(elemField);
200
        elemField = new org.apache.axis.description.ElementDesc();
201
        elemField.setFieldName("returnAssociation");
202
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnAssociation"));
203
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnAssociationDetail"));
204
        elemField.setMinOccurs(0);
205
        elemField.setNillable(false);
206
        typeDesc.addFieldDesc(elemField);
207
    }
208
 
209
    /**
210
     * Return type metadata object
211
     */
212
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
213
        return typeDesc;
214
    }
215
 
216
    /**
217
     * Get Custom Serializer
218
     */
219
    public static org.apache.axis.encoding.Serializer getSerializer(
220
           java.lang.String mechType, 
221
           java.lang.Class _javaType,  
222
           javax.xml.namespace.QName _xmlType) {
223
        return 
224
          new  org.apache.axis.encoding.ser.BeanSerializer(
225
            _javaType, _xmlType, typeDesc);
226
    }
227
 
228
    /**
229
     * Get Custom Deserializer
230
     */
231
    public static org.apache.axis.encoding.Deserializer getDeserializer(
232
           java.lang.String mechType, 
233
           java.lang.Class _javaType,  
234
           javax.xml.namespace.QName _xmlType) {
235
        return 
236
          new  org.apache.axis.encoding.ser.BeanDeserializer(
237
            _javaType, _xmlType, typeDesc);
238
    }
239
 
240
}