Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ExpressFreightDetail.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
 * Details specific to an Express freight shipment.
13
 */
14
public class ExpressFreightDetail  implements java.io.Serializable {
15
    /* Indicates whether or nor a packing list is enclosed. */
16
    private java.lang.Boolean packingListEnclosed;
17
 
18
    /* Total shipment pieces.
19
     *                 e.g. 3 boxes and 3 pallets of 100 pieces each = Shippers
20
     * Load and Count of 303.
21
     *                 Applicable to International Priority Freight and International
22
     * Economy Freight.
23
     *                 Values must be in the range of 1 - 99999 */
24
    private org.apache.axis.types.PositiveInteger shippersLoadAndCount;
25
 
26
    /* Required for International Freight shipping. Values must be
27
     * 8- 12 characters in length. */
28
    private java.lang.String bookingConfirmationNumber;
29
 
30
    public ExpressFreightDetail() {
31
    }
32
 
33
    public ExpressFreightDetail(
34
           java.lang.Boolean packingListEnclosed,
35
           org.apache.axis.types.PositiveInteger shippersLoadAndCount,
36
           java.lang.String bookingConfirmationNumber) {
37
           this.packingListEnclosed = packingListEnclosed;
38
           this.shippersLoadAndCount = shippersLoadAndCount;
39
           this.bookingConfirmationNumber = bookingConfirmationNumber;
40
    }
41
 
42
 
43
    /**
44
     * Gets the packingListEnclosed value for this ExpressFreightDetail.
45
     * 
46
     * @return packingListEnclosed   * Indicates whether or nor a packing list is enclosed.
47
     */
48
    public java.lang.Boolean getPackingListEnclosed() {
49
        return packingListEnclosed;
50
    }
51
 
52
 
53
    /**
54
     * Sets the packingListEnclosed value for this ExpressFreightDetail.
55
     * 
56
     * @param packingListEnclosed   * Indicates whether or nor a packing list is enclosed.
57
     */
58
    public void setPackingListEnclosed(java.lang.Boolean packingListEnclosed) {
59
        this.packingListEnclosed = packingListEnclosed;
60
    }
61
 
62
 
63
    /**
64
     * Gets the shippersLoadAndCount value for this ExpressFreightDetail.
65
     * 
66
     * @return shippersLoadAndCount   * Total shipment pieces.
67
     *                 e.g. 3 boxes and 3 pallets of 100 pieces each = Shippers
68
     * Load and Count of 303.
69
     *                 Applicable to International Priority Freight and International
70
     * Economy Freight.
71
     *                 Values must be in the range of 1 - 99999
72
     */
73
    public org.apache.axis.types.PositiveInteger getShippersLoadAndCount() {
74
        return shippersLoadAndCount;
75
    }
76
 
77
 
78
    /**
79
     * Sets the shippersLoadAndCount value for this ExpressFreightDetail.
80
     * 
81
     * @param shippersLoadAndCount   * Total shipment pieces.
82
     *                 e.g. 3 boxes and 3 pallets of 100 pieces each = Shippers
83
     * Load and Count of 303.
84
     *                 Applicable to International Priority Freight and International
85
     * Economy Freight.
86
     *                 Values must be in the range of 1 - 99999
87
     */
88
    public void setShippersLoadAndCount(org.apache.axis.types.PositiveInteger shippersLoadAndCount) {
89
        this.shippersLoadAndCount = shippersLoadAndCount;
90
    }
91
 
92
 
93
    /**
94
     * Gets the bookingConfirmationNumber value for this ExpressFreightDetail.
95
     * 
96
     * @return bookingConfirmationNumber   * Required for International Freight shipping. Values must be
97
     * 8- 12 characters in length.
98
     */
99
    public java.lang.String getBookingConfirmationNumber() {
100
        return bookingConfirmationNumber;
101
    }
102
 
103
 
104
    /**
105
     * Sets the bookingConfirmationNumber value for this ExpressFreightDetail.
106
     * 
107
     * @param bookingConfirmationNumber   * Required for International Freight shipping. Values must be
108
     * 8- 12 characters in length.
109
     */
110
    public void setBookingConfirmationNumber(java.lang.String bookingConfirmationNumber) {
111
        this.bookingConfirmationNumber = bookingConfirmationNumber;
112
    }
113
 
114
    private java.lang.Object __equalsCalc = null;
115
    public synchronized boolean equals(java.lang.Object obj) {
116
        if (!(obj instanceof ExpressFreightDetail)) return false;
117
        ExpressFreightDetail other = (ExpressFreightDetail) obj;
118
        if (obj == null) return false;
119
        if (this == obj) return true;
120
        if (__equalsCalc != null) {
121
            return (__equalsCalc == obj);
122
        }
123
        __equalsCalc = obj;
124
        boolean _equals;
125
        _equals = true && 
126
            ((this.packingListEnclosed==null && other.getPackingListEnclosed()==null) || 
127
             (this.packingListEnclosed!=null &&
128
              this.packingListEnclosed.equals(other.getPackingListEnclosed()))) &&
129
            ((this.shippersLoadAndCount==null && other.getShippersLoadAndCount()==null) || 
130
             (this.shippersLoadAndCount!=null &&
131
              this.shippersLoadAndCount.equals(other.getShippersLoadAndCount()))) &&
132
            ((this.bookingConfirmationNumber==null && other.getBookingConfirmationNumber()==null) || 
133
             (this.bookingConfirmationNumber!=null &&
134
              this.bookingConfirmationNumber.equals(other.getBookingConfirmationNumber())));
135
        __equalsCalc = null;
136
        return _equals;
137
    }
138
 
139
    private boolean __hashCodeCalc = false;
140
    public synchronized int hashCode() {
141
        if (__hashCodeCalc) {
142
            return 0;
143
        }
144
        __hashCodeCalc = true;
145
        int _hashCode = 1;
146
        if (getPackingListEnclosed() != null) {
147
            _hashCode += getPackingListEnclosed().hashCode();
148
        }
149
        if (getShippersLoadAndCount() != null) {
150
            _hashCode += getShippersLoadAndCount().hashCode();
151
        }
152
        if (getBookingConfirmationNumber() != null) {
153
            _hashCode += getBookingConfirmationNumber().hashCode();
154
        }
155
        __hashCodeCalc = false;
156
        return _hashCode;
157
    }
158
 
159
    // Type metadata
160
    private static org.apache.axis.description.TypeDesc typeDesc =
161
        new org.apache.axis.description.TypeDesc(ExpressFreightDetail.class, true);
162
 
163
    static {
164
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ExpressFreightDetail"));
165
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
166
        elemField.setFieldName("packingListEnclosed");
167
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackingListEnclosed"));
168
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
169
        elemField.setMinOccurs(0);
170
        elemField.setNillable(false);
171
        typeDesc.addFieldDesc(elemField);
172
        elemField = new org.apache.axis.description.ElementDesc();
173
        elemField.setFieldName("shippersLoadAndCount");
174
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippersLoadAndCount"));
175
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "positiveInteger"));
176
        elemField.setMinOccurs(0);
177
        elemField.setNillable(false);
178
        typeDesc.addFieldDesc(elemField);
179
        elemField = new org.apache.axis.description.ElementDesc();
180
        elemField.setFieldName("bookingConfirmationNumber");
181
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BookingConfirmationNumber"));
182
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
183
        elemField.setMinOccurs(0);
184
        elemField.setNillable(false);
185
        typeDesc.addFieldDesc(elemField);
186
    }
187
 
188
    /**
189
     * Return type metadata object
190
     */
191
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
192
        return typeDesc;
193
    }
194
 
195
    /**
196
     * Get Custom Serializer
197
     */
198
    public static org.apache.axis.encoding.Serializer getSerializer(
199
           java.lang.String mechType, 
200
           java.lang.Class _javaType,  
201
           javax.xml.namespace.QName _xmlType) {
202
        return 
203
          new  org.apache.axis.encoding.ser.BeanSerializer(
204
            _javaType, _xmlType, typeDesc);
205
    }
206
 
207
    /**
208
     * Get Custom Deserializer
209
     */
210
    public static org.apache.axis.encoding.Deserializer getDeserializer(
211
           java.lang.String mechType, 
212
           java.lang.Class _javaType,  
213
           javax.xml.namespace.QName _xmlType) {
214
        return 
215
          new  org.apache.axis.encoding.ser.BeanDeserializer(
216
            _javaType, _xmlType, typeDesc);
217
    }
218
 
219
}