Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShippingDocumentEMailRecipient.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
 * Specifies an individual recipient of e-mailed shipping document(s).
13
 */
14
public class ShippingDocumentEMailRecipient  implements java.io.Serializable {
15
    /* Identifies the relationship of this recipient in the shipment. */
16
    private com.fedex.ship.stub.EMailNotificationRecipientType recipientType;
17
 
18
    /* Address to which the document is to be sent. */
19
    private java.lang.String address;
20
 
21
    public ShippingDocumentEMailRecipient() {
22
    }
23
 
24
    public ShippingDocumentEMailRecipient(
25
           com.fedex.ship.stub.EMailNotificationRecipientType recipientType,
26
           java.lang.String address) {
27
           this.recipientType = recipientType;
28
           this.address = address;
29
    }
30
 
31
 
32
    /**
33
     * Gets the recipientType value for this ShippingDocumentEMailRecipient.
34
     * 
35
     * @return recipientType   * Identifies the relationship of this recipient in the shipment.
36
     */
37
    public com.fedex.ship.stub.EMailNotificationRecipientType getRecipientType() {
38
        return recipientType;
39
    }
40
 
41
 
42
    /**
43
     * Sets the recipientType value for this ShippingDocumentEMailRecipient.
44
     * 
45
     * @param recipientType   * Identifies the relationship of this recipient in the shipment.
46
     */
47
    public void setRecipientType(com.fedex.ship.stub.EMailNotificationRecipientType recipientType) {
48
        this.recipientType = recipientType;
49
    }
50
 
51
 
52
    /**
53
     * Gets the address value for this ShippingDocumentEMailRecipient.
54
     * 
55
     * @return address   * Address to which the document is to be sent.
56
     */
57
    public java.lang.String getAddress() {
58
        return address;
59
    }
60
 
61
 
62
    /**
63
     * Sets the address value for this ShippingDocumentEMailRecipient.
64
     * 
65
     * @param address   * Address to which the document is to be sent.
66
     */
67
    public void setAddress(java.lang.String address) {
68
        this.address = address;
69
    }
70
 
71
    private java.lang.Object __equalsCalc = null;
72
    public synchronized boolean equals(java.lang.Object obj) {
73
        if (!(obj instanceof ShippingDocumentEMailRecipient)) return false;
74
        ShippingDocumentEMailRecipient other = (ShippingDocumentEMailRecipient) 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.recipientType==null && other.getRecipientType()==null) || 
84
             (this.recipientType!=null &&
85
              this.recipientType.equals(other.getRecipientType()))) &&
86
            ((this.address==null && other.getAddress()==null) || 
87
             (this.address!=null &&
88
              this.address.equals(other.getAddress())));
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 (getRecipientType() != null) {
101
            _hashCode += getRecipientType().hashCode();
102
        }
103
        if (getAddress() != null) {
104
            _hashCode += getAddress().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(ShippingDocumentEMailRecipient.class, true);
113
 
114
    static {
115
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentEMailRecipient"));
116
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
117
        elemField.setFieldName("recipientType");
118
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RecipientType"));
119
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailNotificationRecipientType"));
120
        elemField.setMinOccurs(0);
121
        elemField.setNillable(false);
122
        typeDesc.addFieldDesc(elemField);
123
        elemField = new org.apache.axis.description.ElementDesc();
124
        elemField.setFieldName("address");
125
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Address"));
126
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
127
        elemField.setMinOccurs(0);
128
        elemField.setNillable(false);
129
        typeDesc.addFieldDesc(elemField);
130
    }
131
 
132
    /**
133
     * Return type metadata object
134
     */
135
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
136
        return typeDesc;
137
    }
138
 
139
    /**
140
     * Get Custom Serializer
141
     */
142
    public static org.apache.axis.encoding.Serializer getSerializer(
143
           java.lang.String mechType, 
144
           java.lang.Class _javaType,  
145
           javax.xml.namespace.QName _xmlType) {
146
        return 
147
          new  org.apache.axis.encoding.ser.BeanSerializer(
148
            _javaType, _xmlType, typeDesc);
149
    }
150
 
151
    /**
152
     * Get Custom Deserializer
153
     */
154
    public static org.apache.axis.encoding.Deserializer getDeserializer(
155
           java.lang.String mechType, 
156
           java.lang.Class _javaType,  
157
           javax.xml.namespace.QName _xmlType) {
158
        return 
159
          new  org.apache.axis.encoding.ser.BeanDeserializer(
160
            _javaType, _xmlType, typeDesc);
161
    }
162
 
163
}