Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * DocTabContentZone001.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
public class DocTabContentZone001  implements java.io.Serializable {
11
    private com.fedex.ship.stub.DocTabZoneSpecification[] docTabZoneSpecifications;
12
 
13
    public DocTabContentZone001() {
14
    }
15
 
16
    public DocTabContentZone001(
17
           com.fedex.ship.stub.DocTabZoneSpecification[] docTabZoneSpecifications) {
18
           this.docTabZoneSpecifications = docTabZoneSpecifications;
19
    }
20
 
21
 
22
    /**
23
     * Gets the docTabZoneSpecifications value for this DocTabContentZone001.
24
     * 
25
     * @return docTabZoneSpecifications
26
     */
27
    public com.fedex.ship.stub.DocTabZoneSpecification[] getDocTabZoneSpecifications() {
28
        return docTabZoneSpecifications;
29
    }
30
 
31
 
32
    /**
33
     * Sets the docTabZoneSpecifications value for this DocTabContentZone001.
34
     * 
35
     * @param docTabZoneSpecifications
36
     */
37
    public void setDocTabZoneSpecifications(com.fedex.ship.stub.DocTabZoneSpecification[] docTabZoneSpecifications) {
38
        this.docTabZoneSpecifications = docTabZoneSpecifications;
39
    }
40
 
41
    public com.fedex.ship.stub.DocTabZoneSpecification getDocTabZoneSpecifications(int i) {
42
        return this.docTabZoneSpecifications[i];
43
    }
44
 
45
    public void setDocTabZoneSpecifications(int i, com.fedex.ship.stub.DocTabZoneSpecification _value) {
46
        this.docTabZoneSpecifications[i] = _value;
47
    }
48
 
49
    private java.lang.Object __equalsCalc = null;
50
    public synchronized boolean equals(java.lang.Object obj) {
51
        if (!(obj instanceof DocTabContentZone001)) return false;
52
        DocTabContentZone001 other = (DocTabContentZone001) obj;
53
        if (obj == null) return false;
54
        if (this == obj) return true;
55
        if (__equalsCalc != null) {
56
            return (__equalsCalc == obj);
57
        }
58
        __equalsCalc = obj;
59
        boolean _equals;
60
        _equals = true && 
61
            ((this.docTabZoneSpecifications==null && other.getDocTabZoneSpecifications()==null) || 
62
             (this.docTabZoneSpecifications!=null &&
63
              java.util.Arrays.equals(this.docTabZoneSpecifications, other.getDocTabZoneSpecifications())));
64
        __equalsCalc = null;
65
        return _equals;
66
    }
67
 
68
    private boolean __hashCodeCalc = false;
69
    public synchronized int hashCode() {
70
        if (__hashCodeCalc) {
71
            return 0;
72
        }
73
        __hashCodeCalc = true;
74
        int _hashCode = 1;
75
        if (getDocTabZoneSpecifications() != null) {
76
            for (int i=0;
77
                 i<java.lang.reflect.Array.getLength(getDocTabZoneSpecifications());
78
                 i++) {
79
                java.lang.Object obj = java.lang.reflect.Array.get(getDocTabZoneSpecifications(), i);
80
                if (obj != null &&
81
                    !obj.getClass().isArray()) {
82
                    _hashCode += obj.hashCode();
83
                }
84
            }
85
        }
86
        __hashCodeCalc = false;
87
        return _hashCode;
88
    }
89
 
90
    // Type metadata
91
    private static org.apache.axis.description.TypeDesc typeDesc =
92
        new org.apache.axis.description.TypeDesc(DocTabContentZone001.class, true);
93
 
94
    static {
95
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContentZone001"));
96
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
97
        elemField.setFieldName("docTabZoneSpecifications");
98
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabZoneSpecifications"));
99
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabZoneSpecification"));
100
        elemField.setNillable(false);
101
        typeDesc.addFieldDesc(elemField);
102
    }
103
 
104
    /**
105
     * Return type metadata object
106
     */
107
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
108
        return typeDesc;
109
    }
110
 
111
    /**
112
     * Get Custom Serializer
113
     */
114
    public static org.apache.axis.encoding.Serializer getSerializer(
115
           java.lang.String mechType, 
116
           java.lang.Class _javaType,  
117
           javax.xml.namespace.QName _xmlType) {
118
        return 
119
          new  org.apache.axis.encoding.ser.BeanSerializer(
120
            _javaType, _xmlType, typeDesc);
121
    }
122
 
123
    /**
124
     * Get Custom Deserializer
125
     */
126
    public static org.apache.axis.encoding.Deserializer getDeserializer(
127
           java.lang.String mechType, 
128
           java.lang.Class _javaType,  
129
           javax.xml.namespace.QName _xmlType) {
130
        return 
131
          new  org.apache.axis.encoding.ser.BeanDeserializer(
132
            _javaType, _xmlType, typeDesc);
133
    }
134
 
135
}