Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CommercialInvoiceDetail.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
 * The instructions indicating how to print the Commercial Invoice(
13
 * e.g. image type) Specifies characteristics of a shipping document
14
 * to be produced.
15
 */
16
public class CommercialInvoiceDetail  implements java.io.Serializable {
17
    private com.fedex.ship.stub.ShippingDocumentFormat format;
18
 
19
    /* Specifies the usage and identification of a customer supplied
20
     * image to be used on this document. */
21
    private com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages;
22
 
23
    public CommercialInvoiceDetail() {
24
    }
25
 
26
    public CommercialInvoiceDetail(
27
           com.fedex.ship.stub.ShippingDocumentFormat format,
28
           com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
29
           this.format = format;
30
           this.customerImageUsages = customerImageUsages;
31
    }
32
 
33
 
34
    /**
35
     * Gets the format value for this CommercialInvoiceDetail.
36
     * 
37
     * @return format
38
     */
39
    public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
40
        return format;
41
    }
42
 
43
 
44
    /**
45
     * Sets the format value for this CommercialInvoiceDetail.
46
     * 
47
     * @param format
48
     */
49
    public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
50
        this.format = format;
51
    }
52
 
53
 
54
    /**
55
     * Gets the customerImageUsages value for this CommercialInvoiceDetail.
56
     * 
57
     * @return customerImageUsages   * Specifies the usage and identification of a customer supplied
58
     * image to be used on this document.
59
     */
60
    public com.fedex.ship.stub.CustomerImageUsage[] getCustomerImageUsages() {
61
        return customerImageUsages;
62
    }
63
 
64
 
65
    /**
66
     * Sets the customerImageUsages value for this CommercialInvoiceDetail.
67
     * 
68
     * @param customerImageUsages   * Specifies the usage and identification of a customer supplied
69
     * image to be used on this document.
70
     */
71
    public void setCustomerImageUsages(com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
72
        this.customerImageUsages = customerImageUsages;
73
    }
74
 
75
    public com.fedex.ship.stub.CustomerImageUsage getCustomerImageUsages(int i) {
76
        return this.customerImageUsages[i];
77
    }
78
 
79
    public void setCustomerImageUsages(int i, com.fedex.ship.stub.CustomerImageUsage _value) {
80
        this.customerImageUsages[i] = _value;
81
    }
82
 
83
    private java.lang.Object __equalsCalc = null;
84
    public synchronized boolean equals(java.lang.Object obj) {
85
        if (!(obj instanceof CommercialInvoiceDetail)) return false;
86
        CommercialInvoiceDetail other = (CommercialInvoiceDetail) 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.format==null && other.getFormat()==null) || 
96
             (this.format!=null &&
97
              this.format.equals(other.getFormat()))) &&
98
            ((this.customerImageUsages==null && other.getCustomerImageUsages()==null) || 
99
             (this.customerImageUsages!=null &&
100
              java.util.Arrays.equals(this.customerImageUsages, other.getCustomerImageUsages())));
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 (getFormat() != null) {
113
            _hashCode += getFormat().hashCode();
114
        }
115
        if (getCustomerImageUsages() != null) {
116
            for (int i=0;
117
                 i<java.lang.reflect.Array.getLength(getCustomerImageUsages());
118
                 i++) {
119
                java.lang.Object obj = java.lang.reflect.Array.get(getCustomerImageUsages(), 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(CommercialInvoiceDetail.class, true);
133
 
134
    static {
135
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CommercialInvoiceDetail"));
136
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
137
        elemField.setFieldName("format");
138
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
139
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
140
        elemField.setMinOccurs(0);
141
        elemField.setNillable(false);
142
        typeDesc.addFieldDesc(elemField);
143
        elemField = new org.apache.axis.description.ElementDesc();
144
        elemField.setFieldName("customerImageUsages");
145
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsages"));
146
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsage"));
147
        elemField.setMinOccurs(0);
148
        elemField.setNillable(false);
149
        elemField.setMaxOccursUnbounded(true);
150
        typeDesc.addFieldDesc(elemField);
151
    }
152
 
153
    /**
154
     * Return type metadata object
155
     */
156
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
157
        return typeDesc;
158
    }
159
 
160
    /**
161
     * Get Custom Serializer
162
     */
163
    public static org.apache.axis.encoding.Serializer getSerializer(
164
           java.lang.String mechType, 
165
           java.lang.Class _javaType,  
166
           javax.xml.namespace.QName _xmlType) {
167
        return 
168
          new  org.apache.axis.encoding.ser.BeanSerializer(
169
            _javaType, _xmlType, typeDesc);
170
    }
171
 
172
    /**
173
     * Get Custom Deserializer
174
     */
175
    public static org.apache.axis.encoding.Deserializer getDeserializer(
176
           java.lang.String mechType, 
177
           java.lang.Class _javaType,  
178
           javax.xml.namespace.QName _xmlType) {
179
        return 
180
          new  org.apache.axis.encoding.ser.BeanDeserializer(
181
            _javaType, _xmlType, typeDesc);
182
    }
183
 
184
}