Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * EMailNotificationRecipient.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.track.stub;
9
 
10
public class EMailNotificationRecipient  implements java.io.Serializable {
11
    /* Identifies the relationship this email recipient has to the
12
     * shipment. */
13
    private com.fedex.track.stub.EMailNotificationRecipientType EMailNotificationRecipientType;
14
 
15
    /* The email address to send the notification to */
16
    private java.lang.String EMailAddress;
17
 
18
    /* The types of email notifications being requested for this recipient. */
19
    private com.fedex.track.stub.EMailNotificationEventType[] notificationEventsRequested;
20
 
21
    /* The format of the email notification. */
22
    private com.fedex.track.stub.EMailNotificationFormatType format;
23
 
24
    /* The language/locale to be used in this email notification. */
25
    private com.fedex.track.stub.Localization localization;
26
 
27
    public EMailNotificationRecipient() {
28
    }
29
 
30
    public EMailNotificationRecipient(
31
           com.fedex.track.stub.EMailNotificationRecipientType EMailNotificationRecipientType,
32
           java.lang.String EMailAddress,
33
           com.fedex.track.stub.EMailNotificationEventType[] notificationEventsRequested,
34
           com.fedex.track.stub.EMailNotificationFormatType format,
35
           com.fedex.track.stub.Localization localization) {
36
           this.EMailNotificationRecipientType = EMailNotificationRecipientType;
37
           this.EMailAddress = EMailAddress;
38
           this.notificationEventsRequested = notificationEventsRequested;
39
           this.format = format;
40
           this.localization = localization;
41
    }
42
 
43
 
44
    /**
45
     * Gets the EMailNotificationRecipientType value for this EMailNotificationRecipient.
46
     * 
47
     * @return EMailNotificationRecipientType   * Identifies the relationship this email recipient has to the
48
     * shipment.
49
     */
50
    public com.fedex.track.stub.EMailNotificationRecipientType getEMailNotificationRecipientType() {
51
        return EMailNotificationRecipientType;
52
    }
53
 
54
 
55
    /**
56
     * Sets the EMailNotificationRecipientType value for this EMailNotificationRecipient.
57
     * 
58
     * @param EMailNotificationRecipientType   * Identifies the relationship this email recipient has to the
59
     * shipment.
60
     */
61
    public void setEMailNotificationRecipientType(com.fedex.track.stub.EMailNotificationRecipientType EMailNotificationRecipientType) {
62
        this.EMailNotificationRecipientType = EMailNotificationRecipientType;
63
    }
64
 
65
 
66
    /**
67
     * Gets the EMailAddress value for this EMailNotificationRecipient.
68
     * 
69
     * @return EMailAddress   * The email address to send the notification to
70
     */
71
    public java.lang.String getEMailAddress() {
72
        return EMailAddress;
73
    }
74
 
75
 
76
    /**
77
     * Sets the EMailAddress value for this EMailNotificationRecipient.
78
     * 
79
     * @param EMailAddress   * The email address to send the notification to
80
     */
81
    public void setEMailAddress(java.lang.String EMailAddress) {
82
        this.EMailAddress = EMailAddress;
83
    }
84
 
85
 
86
    /**
87
     * Gets the notificationEventsRequested value for this EMailNotificationRecipient.
88
     * 
89
     * @return notificationEventsRequested   * The types of email notifications being requested for this recipient.
90
     */
91
    public com.fedex.track.stub.EMailNotificationEventType[] getNotificationEventsRequested() {
92
        return notificationEventsRequested;
93
    }
94
 
95
 
96
    /**
97
     * Sets the notificationEventsRequested value for this EMailNotificationRecipient.
98
     * 
99
     * @param notificationEventsRequested   * The types of email notifications being requested for this recipient.
100
     */
101
    public void setNotificationEventsRequested(com.fedex.track.stub.EMailNotificationEventType[] notificationEventsRequested) {
102
        this.notificationEventsRequested = notificationEventsRequested;
103
    }
104
 
105
    public com.fedex.track.stub.EMailNotificationEventType getNotificationEventsRequested(int i) {
106
        return this.notificationEventsRequested[i];
107
    }
108
 
109
    public void setNotificationEventsRequested(int i, com.fedex.track.stub.EMailNotificationEventType _value) {
110
        this.notificationEventsRequested[i] = _value;
111
    }
112
 
113
 
114
    /**
115
     * Gets the format value for this EMailNotificationRecipient.
116
     * 
117
     * @return format   * The format of the email notification.
118
     */
119
    public com.fedex.track.stub.EMailNotificationFormatType getFormat() {
120
        return format;
121
    }
122
 
123
 
124
    /**
125
     * Sets the format value for this EMailNotificationRecipient.
126
     * 
127
     * @param format   * The format of the email notification.
128
     */
129
    public void setFormat(com.fedex.track.stub.EMailNotificationFormatType format) {
130
        this.format = format;
131
    }
132
 
133
 
134
    /**
135
     * Gets the localization value for this EMailNotificationRecipient.
136
     * 
137
     * @return localization   * The language/locale to be used in this email notification.
138
     */
139
    public com.fedex.track.stub.Localization getLocalization() {
140
        return localization;
141
    }
142
 
143
 
144
    /**
145
     * Sets the localization value for this EMailNotificationRecipient.
146
     * 
147
     * @param localization   * The language/locale to be used in this email notification.
148
     */
149
    public void setLocalization(com.fedex.track.stub.Localization localization) {
150
        this.localization = localization;
151
    }
152
 
153
    private java.lang.Object __equalsCalc = null;
154
    public synchronized boolean equals(java.lang.Object obj) {
155
        if (!(obj instanceof EMailNotificationRecipient)) return false;
156
        EMailNotificationRecipient other = (EMailNotificationRecipient) obj;
157
        if (obj == null) return false;
158
        if (this == obj) return true;
159
        if (__equalsCalc != null) {
160
            return (__equalsCalc == obj);
161
        }
162
        __equalsCalc = obj;
163
        boolean _equals;
164
        _equals = true && 
165
            ((this.EMailNotificationRecipientType==null && other.getEMailNotificationRecipientType()==null) || 
166
             (this.EMailNotificationRecipientType!=null &&
167
              this.EMailNotificationRecipientType.equals(other.getEMailNotificationRecipientType()))) &&
168
            ((this.EMailAddress==null && other.getEMailAddress()==null) || 
169
             (this.EMailAddress!=null &&
170
              this.EMailAddress.equals(other.getEMailAddress()))) &&
171
            ((this.notificationEventsRequested==null && other.getNotificationEventsRequested()==null) || 
172
             (this.notificationEventsRequested!=null &&
173
              java.util.Arrays.equals(this.notificationEventsRequested, other.getNotificationEventsRequested()))) &&
174
            ((this.format==null && other.getFormat()==null) || 
175
             (this.format!=null &&
176
              this.format.equals(other.getFormat()))) &&
177
            ((this.localization==null && other.getLocalization()==null) || 
178
             (this.localization!=null &&
179
              this.localization.equals(other.getLocalization())));
180
        __equalsCalc = null;
181
        return _equals;
182
    }
183
 
184
    private boolean __hashCodeCalc = false;
185
    public synchronized int hashCode() {
186
        if (__hashCodeCalc) {
187
            return 0;
188
        }
189
        __hashCodeCalc = true;
190
        int _hashCode = 1;
191
        if (getEMailNotificationRecipientType() != null) {
192
            _hashCode += getEMailNotificationRecipientType().hashCode();
193
        }
194
        if (getEMailAddress() != null) {
195
            _hashCode += getEMailAddress().hashCode();
196
        }
197
        if (getNotificationEventsRequested() != null) {
198
            for (int i=0;
199
                 i<java.lang.reflect.Array.getLength(getNotificationEventsRequested());
200
                 i++) {
201
                java.lang.Object obj = java.lang.reflect.Array.get(getNotificationEventsRequested(), i);
202
                if (obj != null &&
203
                    !obj.getClass().isArray()) {
204
                    _hashCode += obj.hashCode();
205
                }
206
            }
207
        }
208
        if (getFormat() != null) {
209
            _hashCode += getFormat().hashCode();
210
        }
211
        if (getLocalization() != null) {
212
            _hashCode += getLocalization().hashCode();
213
        }
214
        __hashCodeCalc = false;
215
        return _hashCode;
216
    }
217
 
218
    // Type metadata
219
    private static org.apache.axis.description.TypeDesc typeDesc =
220
        new org.apache.axis.description.TypeDesc(EMailNotificationRecipient.class, true);
221
 
222
    static {
223
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationRecipient"));
224
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
225
        elemField.setFieldName("EMailNotificationRecipientType");
226
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationRecipientType"));
227
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationRecipientType"));
228
        elemField.setMinOccurs(0);
229
        elemField.setNillable(false);
230
        typeDesc.addFieldDesc(elemField);
231
        elemField = new org.apache.axis.description.ElementDesc();
232
        elemField.setFieldName("EMailAddress");
233
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailAddress"));
234
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
235
        elemField.setNillable(false);
236
        typeDesc.addFieldDesc(elemField);
237
        elemField = new org.apache.axis.description.ElementDesc();
238
        elemField.setFieldName("notificationEventsRequested");
239
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "NotificationEventsRequested"));
240
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationEventType"));
241
        elemField.setMinOccurs(0);
242
        elemField.setNillable(false);
243
        elemField.setMaxOccursUnbounded(true);
244
        typeDesc.addFieldDesc(elemField);
245
        elemField = new org.apache.axis.description.ElementDesc();
246
        elemField.setFieldName("format");
247
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Format"));
248
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationFormatType"));
249
        elemField.setNillable(false);
250
        typeDesc.addFieldDesc(elemField);
251
        elemField = new org.apache.axis.description.ElementDesc();
252
        elemField.setFieldName("localization");
253
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Localization"));
254
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Localization"));
255
        elemField.setMinOccurs(0);
256
        elemField.setNillable(false);
257
        typeDesc.addFieldDesc(elemField);
258
    }
259
 
260
    /**
261
     * Return type metadata object
262
     */
263
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
264
        return typeDesc;
265
    }
266
 
267
    /**
268
     * Get Custom Serializer
269
     */
270
    public static org.apache.axis.encoding.Serializer getSerializer(
271
           java.lang.String mechType, 
272
           java.lang.Class _javaType,  
273
           javax.xml.namespace.QName _xmlType) {
274
        return 
275
          new  org.apache.axis.encoding.ser.BeanSerializer(
276
            _javaType, _xmlType, typeDesc);
277
    }
278
 
279
    /**
280
     * Get Custom Deserializer
281
     */
282
    public static org.apache.axis.encoding.Deserializer getDeserializer(
283
           java.lang.String mechType, 
284
           java.lang.Class _javaType,  
285
           javax.xml.namespace.QName _xmlType) {
286
        return 
287
          new  org.apache.axis.encoding.ser.BeanDeserializer(
288
            _javaType, _xmlType, typeDesc);
289
    }
290
 
291
}