Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShippingDocumentEMailDetail.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 how to e-mail shipping documents.
13
 */
14
public class ShippingDocumentEMailDetail  implements java.io.Serializable {
15
    /* Provides the roles and email addresses for e-mail recipients. */
16
    private com.fedex.ship.stub.ShippingDocumentEMailRecipient[] EMailRecipients;
17
 
18
    /* Identifies the convention by which documents are to be grouped
19
     * as e-mail attachments. */
20
    private com.fedex.ship.stub.ShippingDocumentEMailGroupingType grouping;
21
 
22
    public ShippingDocumentEMailDetail() {
23
    }
24
 
25
    public ShippingDocumentEMailDetail(
26
           com.fedex.ship.stub.ShippingDocumentEMailRecipient[] EMailRecipients,
27
           com.fedex.ship.stub.ShippingDocumentEMailGroupingType grouping) {
28
           this.EMailRecipients = EMailRecipients;
29
           this.grouping = grouping;
30
    }
31
 
32
 
33
    /**
34
     * Gets the EMailRecipients value for this ShippingDocumentEMailDetail.
35
     * 
36
     * @return EMailRecipients   * Provides the roles and email addresses for e-mail recipients.
37
     */
38
    public com.fedex.ship.stub.ShippingDocumentEMailRecipient[] getEMailRecipients() {
39
        return EMailRecipients;
40
    }
41
 
42
 
43
    /**
44
     * Sets the EMailRecipients value for this ShippingDocumentEMailDetail.
45
     * 
46
     * @param EMailRecipients   * Provides the roles and email addresses for e-mail recipients.
47
     */
48
    public void setEMailRecipients(com.fedex.ship.stub.ShippingDocumentEMailRecipient[] EMailRecipients) {
49
        this.EMailRecipients = EMailRecipients;
50
    }
51
 
52
    public com.fedex.ship.stub.ShippingDocumentEMailRecipient getEMailRecipients(int i) {
53
        return this.EMailRecipients[i];
54
    }
55
 
56
    public void setEMailRecipients(int i, com.fedex.ship.stub.ShippingDocumentEMailRecipient _value) {
57
        this.EMailRecipients[i] = _value;
58
    }
59
 
60
 
61
    /**
62
     * Gets the grouping value for this ShippingDocumentEMailDetail.
63
     * 
64
     * @return grouping   * Identifies the convention by which documents are to be grouped
65
     * as e-mail attachments.
66
     */
67
    public com.fedex.ship.stub.ShippingDocumentEMailGroupingType getGrouping() {
68
        return grouping;
69
    }
70
 
71
 
72
    /**
73
     * Sets the grouping value for this ShippingDocumentEMailDetail.
74
     * 
75
     * @param grouping   * Identifies the convention by which documents are to be grouped
76
     * as e-mail attachments.
77
     */
78
    public void setGrouping(com.fedex.ship.stub.ShippingDocumentEMailGroupingType grouping) {
79
        this.grouping = grouping;
80
    }
81
 
82
    private java.lang.Object __equalsCalc = null;
83
    public synchronized boolean equals(java.lang.Object obj) {
84
        if (!(obj instanceof ShippingDocumentEMailDetail)) return false;
85
        ShippingDocumentEMailDetail other = (ShippingDocumentEMailDetail) obj;
86
        if (obj == null) return false;
87
        if (this == obj) return true;
88
        if (__equalsCalc != null) {
89
            return (__equalsCalc == obj);
90
        }
91
        __equalsCalc = obj;
92
        boolean _equals;
93
        _equals = true && 
94
            ((this.EMailRecipients==null && other.getEMailRecipients()==null) || 
95
             (this.EMailRecipients!=null &&
96
              java.util.Arrays.equals(this.EMailRecipients, other.getEMailRecipients()))) &&
97
            ((this.grouping==null && other.getGrouping()==null) || 
98
             (this.grouping!=null &&
99
              this.grouping.equals(other.getGrouping())));
100
        __equalsCalc = null;
101
        return _equals;
102
    }
103
 
104
    private boolean __hashCodeCalc = false;
105
    public synchronized int hashCode() {
106
        if (__hashCodeCalc) {
107
            return 0;
108
        }
109
        __hashCodeCalc = true;
110
        int _hashCode = 1;
111
        if (getEMailRecipients() != null) {
112
            for (int i=0;
113
                 i<java.lang.reflect.Array.getLength(getEMailRecipients());
114
                 i++) {
115
                java.lang.Object obj = java.lang.reflect.Array.get(getEMailRecipients(), i);
116
                if (obj != null &&
117
                    !obj.getClass().isArray()) {
118
                    _hashCode += obj.hashCode();
119
                }
120
            }
121
        }
122
        if (getGrouping() != null) {
123
            _hashCode += getGrouping().hashCode();
124
        }
125
        __hashCodeCalc = false;
126
        return _hashCode;
127
    }
128
 
129
    // Type metadata
130
    private static org.apache.axis.description.TypeDesc typeDesc =
131
        new org.apache.axis.description.TypeDesc(ShippingDocumentEMailDetail.class, true);
132
 
133
    static {
134
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentEMailDetail"));
135
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
136
        elemField.setFieldName("EMailRecipients");
137
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EMailRecipients"));
138
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentEMailRecipient"));
139
        elemField.setMinOccurs(0);
140
        elemField.setNillable(false);
141
        elemField.setMaxOccursUnbounded(true);
142
        typeDesc.addFieldDesc(elemField);
143
        elemField = new org.apache.axis.description.ElementDesc();
144
        elemField.setFieldName("grouping");
145
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Grouping"));
146
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentEMailGroupingType"));
147
        elemField.setMinOccurs(0);
148
        elemField.setNillable(false);
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
}