Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7908 manish.sha 1
/**
2
 * EMailNotificationDetail.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
 
11
/**
12
 * Information describing email notifications that will be sent in
13
 * relation to events that occur during package movement
14
 */
15
public class EMailNotificationDetail  implements java.io.Serializable {
16
    /* A message that will be included in the email notifications */
17
    private java.lang.String personalMessage;
18
 
19
    /* Information describing the destination of the email, format
20
     * of the email and events to be notified on */
21
    private com.fedex.track.stub.EMailNotificationRecipient[] recipients;
22
 
23
    public EMailNotificationDetail() {
24
    }
25
 
26
    public EMailNotificationDetail(
27
           java.lang.String personalMessage,
28
           com.fedex.track.stub.EMailNotificationRecipient[] recipients) {
29
           this.personalMessage = personalMessage;
30
           this.recipients = recipients;
31
    }
32
 
33
 
34
    /**
35
     * Gets the personalMessage value for this EMailNotificationDetail.
36
     * 
37
     * @return personalMessage   * A message that will be included in the email notifications
38
     */
39
    public java.lang.String getPersonalMessage() {
40
        return personalMessage;
41
    }
42
 
43
 
44
    /**
45
     * Sets the personalMessage value for this EMailNotificationDetail.
46
     * 
47
     * @param personalMessage   * A message that will be included in the email notifications
48
     */
49
    public void setPersonalMessage(java.lang.String personalMessage) {
50
        this.personalMessage = personalMessage;
51
    }
52
 
53
 
54
    /**
55
     * Gets the recipients value for this EMailNotificationDetail.
56
     * 
57
     * @return recipients   * Information describing the destination of the email, format
58
     * of the email and events to be notified on
59
     */
60
    public com.fedex.track.stub.EMailNotificationRecipient[] getRecipients() {
61
        return recipients;
62
    }
63
 
64
 
65
    /**
66
     * Sets the recipients value for this EMailNotificationDetail.
67
     * 
68
     * @param recipients   * Information describing the destination of the email, format
69
     * of the email and events to be notified on
70
     */
71
    public void setRecipients(com.fedex.track.stub.EMailNotificationRecipient[] recipients) {
72
        this.recipients = recipients;
73
    }
74
 
75
    public com.fedex.track.stub.EMailNotificationRecipient getRecipients(int i) {
76
        return this.recipients[i];
77
    }
78
 
79
    public void setRecipients(int i, com.fedex.track.stub.EMailNotificationRecipient _value) {
80
        this.recipients[i] = _value;
81
    }
82
 
83
    private java.lang.Object __equalsCalc = null;
84
    public synchronized boolean equals(java.lang.Object obj) {
85
        if (!(obj instanceof EMailNotificationDetail)) return false;
86
        EMailNotificationDetail other = (EMailNotificationDetail) obj;
87
        if (obj == null) return false;
88
        if (this == obj) return true;
89
        if (__equalsCalc != null) {
90
            return (__equalsCalc == obj);
91
        }
92
        __equalsCalc = obj;
93
        boolean _equals;
94
        _equals = true && 
95
            ((this.personalMessage==null && other.getPersonalMessage()==null) || 
96
             (this.personalMessage!=null &&
97
              this.personalMessage.equals(other.getPersonalMessage()))) &&
98
            ((this.recipients==null && other.getRecipients()==null) || 
99
             (this.recipients!=null &&
100
              java.util.Arrays.equals(this.recipients, other.getRecipients())));
101
        __equalsCalc = null;
102
        return _equals;
103
    }
104
 
105
    private boolean __hashCodeCalc = false;
106
    public synchronized int hashCode() {
107
        if (__hashCodeCalc) {
108
            return 0;
109
        }
110
        __hashCodeCalc = true;
111
        int _hashCode = 1;
112
        if (getPersonalMessage() != null) {
113
            _hashCode += getPersonalMessage().hashCode();
114
        }
115
        if (getRecipients() != null) {
116
            for (int i=0;
117
                 i<java.lang.reflect.Array.getLength(getRecipients());
118
                 i++) {
119
                java.lang.Object obj = java.lang.reflect.Array.get(getRecipients(), i);
120
                if (obj != null &&
121
                    !obj.getClass().isArray()) {
122
                    _hashCode += obj.hashCode();
123
                }
124
            }
125
        }
126
        __hashCodeCalc = false;
127
        return _hashCode;
128
    }
129
 
130
    // Type metadata
131
    private static org.apache.axis.description.TypeDesc typeDesc =
132
        new org.apache.axis.description.TypeDesc(EMailNotificationDetail.class, true);
133
 
134
    static {
135
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationDetail"));
136
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
137
        elemField.setFieldName("personalMessage");
138
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "PersonalMessage"));
139
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
140
        elemField.setMinOccurs(0);
141
        elemField.setNillable(false);
142
        typeDesc.addFieldDesc(elemField);
143
        elemField = new org.apache.axis.description.ElementDesc();
144
        elemField.setFieldName("recipients");
145
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "Recipients"));
146
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/track/v6", "EMailNotificationRecipient"));
147
        elemField.setNillable(false);
148
        elemField.setMaxOccursUnbounded(true);
149
        typeDesc.addFieldDesc(elemField);
150
    }
151
 
152
    /**
153
     * Return type metadata object
154
     */
155
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
156
        return typeDesc;
157
    }
158
 
159
    /**
160
     * Get Custom Serializer
161
     */
162
    public static org.apache.axis.encoding.Serializer getSerializer(
163
           java.lang.String mechType, 
164
           java.lang.Class _javaType,  
165
           javax.xml.namespace.QName _xmlType) {
166
        return 
167
          new  org.apache.axis.encoding.ser.BeanSerializer(
168
            _javaType, _xmlType, typeDesc);
169
    }
170
 
171
    /**
172
     * Get Custom Deserializer
173
     */
174
    public static org.apache.axis.encoding.Deserializer getDeserializer(
175
           java.lang.String mechType, 
176
           java.lang.Class _javaType,  
177
           javax.xml.namespace.QName _xmlType) {
178
        return 
179
          new  org.apache.axis.encoding.ser.BeanDeserializer(
180
            _javaType, _xmlType, typeDesc);
181
    }
182
 
183
}