Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ReturnEMailDetail.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
 * Return Email Details
13
 */
14
public class ReturnEMailDetail  implements java.io.Serializable {
15
    /* Phone number of the merchant */
16
    private java.lang.String merchantPhoneNumber;
17
 
18
    /* Identifies the allowed (merchant-authorized) special services
19
     * which may be selected when the subsequent shipment is created. Only
20
     * services represented in EMailLabelAllowedSpecialServiceType will be
21
     * controlled by this list. */
22
    private com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType[] allowedSpecialServices;
23
 
24
    public ReturnEMailDetail() {
25
    }
26
 
27
    public ReturnEMailDetail(
28
           java.lang.String merchantPhoneNumber,
29
           com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType[] allowedSpecialServices) {
30
           this.merchantPhoneNumber = merchantPhoneNumber;
31
           this.allowedSpecialServices = allowedSpecialServices;
32
    }
33
 
34
 
35
    /**
36
     * Gets the merchantPhoneNumber value for this ReturnEMailDetail.
37
     * 
38
     * @return merchantPhoneNumber   * Phone number of the merchant
39
     */
40
    public java.lang.String getMerchantPhoneNumber() {
41
        return merchantPhoneNumber;
42
    }
43
 
44
 
45
    /**
46
     * Sets the merchantPhoneNumber value for this ReturnEMailDetail.
47
     * 
48
     * @param merchantPhoneNumber   * Phone number of the merchant
49
     */
50
    public void setMerchantPhoneNumber(java.lang.String merchantPhoneNumber) {
51
        this.merchantPhoneNumber = merchantPhoneNumber;
52
    }
53
 
54
 
55
    /**
56
     * Gets the allowedSpecialServices value for this ReturnEMailDetail.
57
     * 
58
     * @return allowedSpecialServices   * Identifies the allowed (merchant-authorized) special services
59
     * which may be selected when the subsequent shipment is created. Only
60
     * services represented in EMailLabelAllowedSpecialServiceType will be
61
     * controlled by this list.
62
     */
63
    public com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType[] getAllowedSpecialServices() {
64
        return allowedSpecialServices;
65
    }
66
 
67
 
68
    /**
69
     * Sets the allowedSpecialServices value for this ReturnEMailDetail.
70
     * 
71
     * @param allowedSpecialServices   * Identifies the allowed (merchant-authorized) special services
72
     * which may be selected when the subsequent shipment is created. Only
73
     * services represented in EMailLabelAllowedSpecialServiceType will be
74
     * controlled by this list.
75
     */
76
    public void setAllowedSpecialServices(com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType[] allowedSpecialServices) {
77
        this.allowedSpecialServices = allowedSpecialServices;
78
    }
79
 
80
    public com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType getAllowedSpecialServices(int i) {
81
        return this.allowedSpecialServices[i];
82
    }
83
 
84
    public void setAllowedSpecialServices(int i, com.fedex.ship.stub.ReturnEMailAllowedSpecialServiceType _value) {
85
        this.allowedSpecialServices[i] = _value;
86
    }
87
 
88
    private java.lang.Object __equalsCalc = null;
89
    public synchronized boolean equals(java.lang.Object obj) {
90
        if (!(obj instanceof ReturnEMailDetail)) return false;
91
        ReturnEMailDetail other = (ReturnEMailDetail) obj;
92
        if (obj == null) return false;
93
        if (this == obj) return true;
94
        if (__equalsCalc != null) {
95
            return (__equalsCalc == obj);
96
        }
97
        __equalsCalc = obj;
98
        boolean _equals;
99
        _equals = true && 
100
            ((this.merchantPhoneNumber==null && other.getMerchantPhoneNumber()==null) || 
101
             (this.merchantPhoneNumber!=null &&
102
              this.merchantPhoneNumber.equals(other.getMerchantPhoneNumber()))) &&
103
            ((this.allowedSpecialServices==null && other.getAllowedSpecialServices()==null) || 
104
             (this.allowedSpecialServices!=null &&
105
              java.util.Arrays.equals(this.allowedSpecialServices, other.getAllowedSpecialServices())));
106
        __equalsCalc = null;
107
        return _equals;
108
    }
109
 
110
    private boolean __hashCodeCalc = false;
111
    public synchronized int hashCode() {
112
        if (__hashCodeCalc) {
113
            return 0;
114
        }
115
        __hashCodeCalc = true;
116
        int _hashCode = 1;
117
        if (getMerchantPhoneNumber() != null) {
118
            _hashCode += getMerchantPhoneNumber().hashCode();
119
        }
120
        if (getAllowedSpecialServices() != null) {
121
            for (int i=0;
122
                 i<java.lang.reflect.Array.getLength(getAllowedSpecialServices());
123
                 i++) {
124
                java.lang.Object obj = java.lang.reflect.Array.get(getAllowedSpecialServices(), i);
125
                if (obj != null &&
126
                    !obj.getClass().isArray()) {
127
                    _hashCode += obj.hashCode();
128
                }
129
            }
130
        }
131
        __hashCodeCalc = false;
132
        return _hashCode;
133
    }
134
 
135
    // Type metadata
136
    private static org.apache.axis.description.TypeDesc typeDesc =
137
        new org.apache.axis.description.TypeDesc(ReturnEMailDetail.class, true);
138
 
139
    static {
140
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnEMailDetail"));
141
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
142
        elemField.setFieldName("merchantPhoneNumber");
143
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "MerchantPhoneNumber"));
144
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
145
        elemField.setMinOccurs(0);
146
        elemField.setNillable(false);
147
        typeDesc.addFieldDesc(elemField);
148
        elemField = new org.apache.axis.description.ElementDesc();
149
        elemField.setFieldName("allowedSpecialServices");
150
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AllowedSpecialServices"));
151
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnEMailAllowedSpecialServiceType"));
152
        elemField.setMinOccurs(0);
153
        elemField.setNillable(false);
154
        elemField.setMaxOccursUnbounded(true);
155
        typeDesc.addFieldDesc(elemField);
156
    }
157
 
158
    /**
159
     * Return type metadata object
160
     */
161
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
162
        return typeDesc;
163
    }
164
 
165
    /**
166
     * Get Custom Serializer
167
     */
168
    public static org.apache.axis.encoding.Serializer getSerializer(
169
           java.lang.String mechType, 
170
           java.lang.Class _javaType,  
171
           javax.xml.namespace.QName _xmlType) {
172
        return 
173
          new  org.apache.axis.encoding.ser.BeanSerializer(
174
            _javaType, _xmlType, typeDesc);
175
    }
176
 
177
    /**
178
     * Get Custom Deserializer
179
     */
180
    public static org.apache.axis.encoding.Deserializer getDeserializer(
181
           java.lang.String mechType, 
182
           java.lang.Class _javaType,  
183
           javax.xml.namespace.QName _xmlType) {
184
        return 
185
          new  org.apache.axis.encoding.ser.BeanDeserializer(
186
            _javaType, _xmlType, typeDesc);
187
    }
188
 
189
}