Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * EMailLabelDetail.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
 * Describes specific information about the email label shipment.
13
 */
14
public class EMailLabelDetail  implements java.io.Serializable {
15
    /* Notification email will be sent to this email address */
16
    private java.lang.String notificationEMailAddress;
17
 
18
    /* Message to be sent in the notification email */
19
    private java.lang.String notificationMessage;
20
 
21
    public EMailLabelDetail() {
22
    }
23
 
24
    public EMailLabelDetail(
25
           java.lang.String notificationEMailAddress,
26
           java.lang.String notificationMessage) {
27
           this.notificationEMailAddress = notificationEMailAddress;
28
           this.notificationMessage = notificationMessage;
29
    }
30
 
31
 
32
    /**
33
     * Gets the notificationEMailAddress value for this EMailLabelDetail.
34
     * 
35
     * @return notificationEMailAddress   * Notification email will be sent to this email address
36
     */
37
    public java.lang.String getNotificationEMailAddress() {
38
        return notificationEMailAddress;
39
    }
40
 
41
 
42
    /**
43
     * Sets the notificationEMailAddress value for this EMailLabelDetail.
44
     * 
45
     * @param notificationEMailAddress   * Notification email will be sent to this email address
46
     */
47
    public void setNotificationEMailAddress(java.lang.String notificationEMailAddress) {
48
        this.notificationEMailAddress = notificationEMailAddress;
49
    }
50
 
51
 
52
    /**
53
     * Gets the notificationMessage value for this EMailLabelDetail.
54
     * 
55
     * @return notificationMessage   * Message to be sent in the notification email
56
     */
57
    public java.lang.String getNotificationMessage() {
58
        return notificationMessage;
59
    }
60
 
61
 
62
    /**
63
     * Sets the notificationMessage value for this EMailLabelDetail.
64
     * 
65
     * @param notificationMessage   * Message to be sent in the notification email
66
     */
67
    public void setNotificationMessage(java.lang.String notificationMessage) {
68
        this.notificationMessage = notificationMessage;
69
    }
70
 
71
    private java.lang.Object __equalsCalc = null;
72
    public synchronized boolean equals(java.lang.Object obj) {
73
        if (!(obj instanceof EMailLabelDetail)) return false;
74
        EMailLabelDetail other = (EMailLabelDetail) obj;
75
        if (obj == null) return false;
76
        if (this == obj) return true;
77
        if (__equalsCalc != null) {
78
            return (__equalsCalc == obj);
79
        }
80
        __equalsCalc = obj;
81
        boolean _equals;
82
        _equals = true && 
83
            ((this.notificationEMailAddress==null && other.getNotificationEMailAddress()==null) || 
84
             (this.notificationEMailAddress!=null &&
85
              this.notificationEMailAddress.equals(other.getNotificationEMailAddress()))) &&
86
            ((this.notificationMessage==null && other.getNotificationMessage()==null) || 
87
             (this.notificationMessage!=null &&
88
              this.notificationMessage.equals(other.getNotificationMessage())));
89
        __equalsCalc = null;
90
        return _equals;
91
    }
92
 
93
    private boolean __hashCodeCalc = false;
94
    public synchronized int hashCode() {
95
        if (__hashCodeCalc) {
96
            return 0;
97
        }
98
        __hashCodeCalc = true;
99
        int _hashCode = 1;
100
        if (getNotificationEMailAddress() != null) {
101
            _hashCode += getNotificationEMailAddress().hashCode();
102
        }
103
        if (getNotificationMessage() != null) {
104
            _hashCode += getNotificationMessage().hashCode();
105
        }
106
        __hashCodeCalc = false;
107
        return _hashCode;
108
    }
109
 
110
    // Type metadata
111
    private static org.apache.axis.description.TypeDesc typeDesc =
112
        new org.apache.axis.description.TypeDesc(EMailLabelDetail.class, true);
113
 
114
    static {
115
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailLabelDetail"));
116
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
117
        elemField.setFieldName("notificationEMailAddress");
118
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NotificationEMailAddress"));
119
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
120
        elemField.setNillable(false);
121
        typeDesc.addFieldDesc(elemField);
122
        elemField = new org.apache.axis.description.ElementDesc();
123
        elemField.setFieldName("notificationMessage");
124
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NotificationMessage"));
125
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
126
        elemField.setMinOccurs(0);
127
        elemField.setNillable(false);
128
        typeDesc.addFieldDesc(elemField);
129
    }
130
 
131
    /**
132
     * Return type metadata object
133
     */
134
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
135
        return typeDesc;
136
    }
137
 
138
    /**
139
     * Get Custom Serializer
140
     */
141
    public static org.apache.axis.encoding.Serializer getSerializer(
142
           java.lang.String mechType, 
143
           java.lang.Class _javaType,  
144
           javax.xml.namespace.QName _xmlType) {
145
        return 
146
          new  org.apache.axis.encoding.ser.BeanSerializer(
147
            _javaType, _xmlType, typeDesc);
148
    }
149
 
150
    /**
151
     * Get Custom Deserializer
152
     */
153
    public static org.apache.axis.encoding.Deserializer getDeserializer(
154
           java.lang.String mechType, 
155
           java.lang.Class _javaType,  
156
           javax.xml.namespace.QName _xmlType) {
157
        return 
158
          new  org.apache.axis.encoding.ser.BeanDeserializer(
159
            _javaType, _xmlType, typeDesc);
160
    }
161
 
162
}