Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * EtdDetail.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
 * Electronic Trade document references used with the ETD special
13
 * service.
14
 */
15
public class EtdDetail  implements java.io.Serializable {
16
    /* Indicates the types of shipping documents produced for the
17
     * shipper by FedEx (see ShippingDocumentSpecification) which should
18
     * be copied back to the shipper in the shipment result data. */
19
    private com.fedex.ship.stub.RequestedShippingDocumentType[] requestedDocumentCopies;
20
 
21
    private com.fedex.ship.stub.UploadDocumentReferenceDetail[] documentReferences;
22
 
23
    public EtdDetail() {
24
    }
25
 
26
    public EtdDetail(
27
           com.fedex.ship.stub.RequestedShippingDocumentType[] requestedDocumentCopies,
28
           com.fedex.ship.stub.UploadDocumentReferenceDetail[] documentReferences) {
29
           this.requestedDocumentCopies = requestedDocumentCopies;
30
           this.documentReferences = documentReferences;
31
    }
32
 
33
 
34
    /**
35
     * Gets the requestedDocumentCopies value for this EtdDetail.
36
     * 
37
     * @return requestedDocumentCopies   * Indicates the types of shipping documents produced for the
38
     * shipper by FedEx (see ShippingDocumentSpecification) which should
39
     * be copied back to the shipper in the shipment result data.
40
     */
41
    public com.fedex.ship.stub.RequestedShippingDocumentType[] getRequestedDocumentCopies() {
42
        return requestedDocumentCopies;
43
    }
44
 
45
 
46
    /**
47
     * Sets the requestedDocumentCopies value for this EtdDetail.
48
     * 
49
     * @param requestedDocumentCopies   * Indicates the types of shipping documents produced for the
50
     * shipper by FedEx (see ShippingDocumentSpecification) which should
51
     * be copied back to the shipper in the shipment result data.
52
     */
53
    public void setRequestedDocumentCopies(com.fedex.ship.stub.RequestedShippingDocumentType[] requestedDocumentCopies) {
54
        this.requestedDocumentCopies = requestedDocumentCopies;
55
    }
56
 
57
    public com.fedex.ship.stub.RequestedShippingDocumentType getRequestedDocumentCopies(int i) {
58
        return this.requestedDocumentCopies[i];
59
    }
60
 
61
    public void setRequestedDocumentCopies(int i, com.fedex.ship.stub.RequestedShippingDocumentType _value) {
62
        this.requestedDocumentCopies[i] = _value;
63
    }
64
 
65
 
66
    /**
67
     * Gets the documentReferences value for this EtdDetail.
68
     * 
69
     * @return documentReferences
70
     */
71
    public com.fedex.ship.stub.UploadDocumentReferenceDetail[] getDocumentReferences() {
72
        return documentReferences;
73
    }
74
 
75
 
76
    /**
77
     * Sets the documentReferences value for this EtdDetail.
78
     * 
79
     * @param documentReferences
80
     */
81
    public void setDocumentReferences(com.fedex.ship.stub.UploadDocumentReferenceDetail[] documentReferences) {
82
        this.documentReferences = documentReferences;
83
    }
84
 
85
    public com.fedex.ship.stub.UploadDocumentReferenceDetail getDocumentReferences(int i) {
86
        return this.documentReferences[i];
87
    }
88
 
89
    public void setDocumentReferences(int i, com.fedex.ship.stub.UploadDocumentReferenceDetail _value) {
90
        this.documentReferences[i] = _value;
91
    }
92
 
93
    private java.lang.Object __equalsCalc = null;
94
    public synchronized boolean equals(java.lang.Object obj) {
95
        if (!(obj instanceof EtdDetail)) return false;
96
        EtdDetail other = (EtdDetail) obj;
97
        if (obj == null) return false;
98
        if (this == obj) return true;
99
        if (__equalsCalc != null) {
100
            return (__equalsCalc == obj);
101
        }
102
        __equalsCalc = obj;
103
        boolean _equals;
104
        _equals = true && 
105
            ((this.requestedDocumentCopies==null && other.getRequestedDocumentCopies()==null) || 
106
             (this.requestedDocumentCopies!=null &&
107
              java.util.Arrays.equals(this.requestedDocumentCopies, other.getRequestedDocumentCopies()))) &&
108
            ((this.documentReferences==null && other.getDocumentReferences()==null) || 
109
             (this.documentReferences!=null &&
110
              java.util.Arrays.equals(this.documentReferences, other.getDocumentReferences())));
111
        __equalsCalc = null;
112
        return _equals;
113
    }
114
 
115
    private boolean __hashCodeCalc = false;
116
    public synchronized int hashCode() {
117
        if (__hashCodeCalc) {
118
            return 0;
119
        }
120
        __hashCodeCalc = true;
121
        int _hashCode = 1;
122
        if (getRequestedDocumentCopies() != null) {
123
            for (int i=0;
124
                 i<java.lang.reflect.Array.getLength(getRequestedDocumentCopies());
125
                 i++) {
126
                java.lang.Object obj = java.lang.reflect.Array.get(getRequestedDocumentCopies(), i);
127
                if (obj != null &&
128
                    !obj.getClass().isArray()) {
129
                    _hashCode += obj.hashCode();
130
                }
131
            }
132
        }
133
        if (getDocumentReferences() != null) {
134
            for (int i=0;
135
                 i<java.lang.reflect.Array.getLength(getDocumentReferences());
136
                 i++) {
137
                java.lang.Object obj = java.lang.reflect.Array.get(getDocumentReferences(), i);
138
                if (obj != null &&
139
                    !obj.getClass().isArray()) {
140
                    _hashCode += obj.hashCode();
141
                }
142
            }
143
        }
144
        __hashCodeCalc = false;
145
        return _hashCode;
146
    }
147
 
148
    // Type metadata
149
    private static org.apache.axis.description.TypeDesc typeDesc =
150
        new org.apache.axis.description.TypeDesc(EtdDetail.class, true);
151
 
152
    static {
153
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "EtdDetail"));
154
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
155
        elemField.setFieldName("requestedDocumentCopies");
156
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestedDocumentCopies"));
157
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RequestedShippingDocumentType"));
158
        elemField.setMinOccurs(0);
159
        elemField.setNillable(false);
160
        elemField.setMaxOccursUnbounded(true);
161
        typeDesc.addFieldDesc(elemField);
162
        elemField = new org.apache.axis.description.ElementDesc();
163
        elemField.setFieldName("documentReferences");
164
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocumentReferences"));
165
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "UploadDocumentReferenceDetail"));
166
        elemField.setMinOccurs(0);
167
        elemField.setNillable(false);
168
        elemField.setMaxOccursUnbounded(true);
169
        typeDesc.addFieldDesc(elemField);
170
    }
171
 
172
    /**
173
     * Return type metadata object
174
     */
175
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
176
        return typeDesc;
177
    }
178
 
179
    /**
180
     * Get Custom Serializer
181
     */
182
    public static org.apache.axis.encoding.Serializer getSerializer(
183
           java.lang.String mechType, 
184
           java.lang.Class _javaType,  
185
           javax.xml.namespace.QName _xmlType) {
186
        return 
187
          new  org.apache.axis.encoding.ser.BeanSerializer(
188
            _javaType, _xmlType, typeDesc);
189
    }
190
 
191
    /**
192
     * Get Custom Deserializer
193
     */
194
    public static org.apache.axis.encoding.Deserializer getDeserializer(
195
           java.lang.String mechType, 
196
           java.lang.Class _javaType,  
197
           javax.xml.namespace.QName _xmlType) {
198
        return 
199
          new  org.apache.axis.encoding.ser.BeanDeserializer(
200
            _javaType, _xmlType, typeDesc);
201
    }
202
 
203
}