Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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