Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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