Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShipmentDryIceDetail.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
 * Shipment-level totals of dry ice data across all packages.
13
 */
14
public class ShipmentDryIceDetail  implements java.io.Serializable {
15
    /* Total number of packages in the shipment that contain dry ice. */
16
    private org.apache.axis.types.NonNegativeInteger packageCount;
17
 
18
    /* Total shipment dry ice weight for all packages. */
19
    private com.fedex.ship.stub.Weight totalWeight;
20
 
21
    public ShipmentDryIceDetail() {
22
    }
23
 
24
    public ShipmentDryIceDetail(
25
           org.apache.axis.types.NonNegativeInteger packageCount,
26
           com.fedex.ship.stub.Weight totalWeight) {
27
           this.packageCount = packageCount;
28
           this.totalWeight = totalWeight;
29
    }
30
 
31
 
32
    /**
33
     * Gets the packageCount value for this ShipmentDryIceDetail.
34
     * 
35
     * @return packageCount   * Total number of packages in the shipment that contain dry ice.
36
     */
37
    public org.apache.axis.types.NonNegativeInteger getPackageCount() {
38
        return packageCount;
39
    }
40
 
41
 
42
    /**
43
     * Sets the packageCount value for this ShipmentDryIceDetail.
44
     * 
45
     * @param packageCount   * Total number of packages in the shipment that contain dry ice.
46
     */
47
    public void setPackageCount(org.apache.axis.types.NonNegativeInteger packageCount) {
48
        this.packageCount = packageCount;
49
    }
50
 
51
 
52
    /**
53
     * Gets the totalWeight value for this ShipmentDryIceDetail.
54
     * 
55
     * @return totalWeight   * Total shipment dry ice weight for all packages.
56
     */
57
    public com.fedex.ship.stub.Weight getTotalWeight() {
58
        return totalWeight;
59
    }
60
 
61
 
62
    /**
63
     * Sets the totalWeight value for this ShipmentDryIceDetail.
64
     * 
65
     * @param totalWeight   * Total shipment dry ice weight for all packages.
66
     */
67
    public void setTotalWeight(com.fedex.ship.stub.Weight totalWeight) {
68
        this.totalWeight = totalWeight;
69
    }
70
 
71
    private java.lang.Object __equalsCalc = null;
72
    public synchronized boolean equals(java.lang.Object obj) {
73
        if (!(obj instanceof ShipmentDryIceDetail)) return false;
74
        ShipmentDryIceDetail other = (ShipmentDryIceDetail) obj;
75
        if (obj == null) return false;
76
        if (this == obj) return true;
77
        if (__equalsCalc != null) {
78
            return (__equalsCalc == obj);
79
        }
80
        __equalsCalc = obj;
81
        boolean _equals;
82
        _equals = true && 
83
            ((this.packageCount==null && other.getPackageCount()==null) || 
84
             (this.packageCount!=null &&
85
              this.packageCount.equals(other.getPackageCount()))) &&
86
            ((this.totalWeight==null && other.getTotalWeight()==null) || 
87
             (this.totalWeight!=null &&
88
              this.totalWeight.equals(other.getTotalWeight())));
89
        __equalsCalc = null;
90
        return _equals;
91
    }
92
 
93
    private boolean __hashCodeCalc = false;
94
    public synchronized int hashCode() {
95
        if (__hashCodeCalc) {
96
            return 0;
97
        }
98
        __hashCodeCalc = true;
99
        int _hashCode = 1;
100
        if (getPackageCount() != null) {
101
            _hashCode += getPackageCount().hashCode();
102
        }
103
        if (getTotalWeight() != null) {
104
            _hashCode += getTotalWeight().hashCode();
105
        }
106
        __hashCodeCalc = false;
107
        return _hashCode;
108
    }
109
 
110
    // Type metadata
111
    private static org.apache.axis.description.TypeDesc typeDesc =
112
        new org.apache.axis.description.TypeDesc(ShipmentDryIceDetail.class, true);
113
 
114
    static {
115
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentDryIceDetail"));
116
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
117
        elemField.setFieldName("packageCount");
118
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageCount"));
119
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
120
        elemField.setNillable(false);
121
        typeDesc.addFieldDesc(elemField);
122
        elemField = new org.apache.axis.description.ElementDesc();
123
        elemField.setFieldName("totalWeight");
124
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalWeight"));
125
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
126
        elemField.setNillable(false);
127
        typeDesc.addFieldDesc(elemField);
128
    }
129
 
130
    /**
131
     * Return type metadata object
132
     */
133
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
134
        return typeDesc;
135
    }
136
 
137
    /**
138
     * Get Custom Serializer
139
     */
140
    public static org.apache.axis.encoding.Serializer getSerializer(
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.BeanSerializer(
146
            _javaType, _xmlType, typeDesc);
147
    }
148
 
149
    /**
150
     * Get Custom Deserializer
151
     */
152
    public static org.apache.axis.encoding.Deserializer getDeserializer(
153
           java.lang.String mechType, 
154
           java.lang.Class _javaType,  
155
           javax.xml.namespace.QName _xmlType) {
156
        return 
157
          new  org.apache.axis.encoding.ser.BeanDeserializer(
158
            _javaType, _xmlType, typeDesc);
159
    }
160
 
161
}