Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ContentRecord.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
 * Content Record.
13
 */
14
public class ContentRecord  implements java.io.Serializable {
15
    /* Part Number. */
16
    private java.lang.String partNumber;
17
 
18
    /* Item Number. */
19
    private java.lang.String itemNumber;
20
 
21
    /* Received Quantity. */
22
    private org.apache.axis.types.NonNegativeInteger receivedQuantity;
23
 
24
    /* Description. */
25
    private java.lang.String description;
26
 
27
    public ContentRecord() {
28
    }
29
 
30
    public ContentRecord(
31
           java.lang.String partNumber,
32
           java.lang.String itemNumber,
33
           org.apache.axis.types.NonNegativeInteger receivedQuantity,
34
           java.lang.String description) {
35
           this.partNumber = partNumber;
36
           this.itemNumber = itemNumber;
37
           this.receivedQuantity = receivedQuantity;
38
           this.description = description;
39
    }
40
 
41
 
42
    /**
43
     * Gets the partNumber value for this ContentRecord.
44
     * 
45
     * @return partNumber   * Part Number.
46
     */
47
    public java.lang.String getPartNumber() {
48
        return partNumber;
49
    }
50
 
51
 
52
    /**
53
     * Sets the partNumber value for this ContentRecord.
54
     * 
55
     * @param partNumber   * Part Number.
56
     */
57
    public void setPartNumber(java.lang.String partNumber) {
58
        this.partNumber = partNumber;
59
    }
60
 
61
 
62
    /**
63
     * Gets the itemNumber value for this ContentRecord.
64
     * 
65
     * @return itemNumber   * Item Number.
66
     */
67
    public java.lang.String getItemNumber() {
68
        return itemNumber;
69
    }
70
 
71
 
72
    /**
73
     * Sets the itemNumber value for this ContentRecord.
74
     * 
75
     * @param itemNumber   * Item Number.
76
     */
77
    public void setItemNumber(java.lang.String itemNumber) {
78
        this.itemNumber = itemNumber;
79
    }
80
 
81
 
82
    /**
83
     * Gets the receivedQuantity value for this ContentRecord.
84
     * 
85
     * @return receivedQuantity   * Received Quantity.
86
     */
87
    public org.apache.axis.types.NonNegativeInteger getReceivedQuantity() {
88
        return receivedQuantity;
89
    }
90
 
91
 
92
    /**
93
     * Sets the receivedQuantity value for this ContentRecord.
94
     * 
95
     * @param receivedQuantity   * Received Quantity.
96
     */
97
    public void setReceivedQuantity(org.apache.axis.types.NonNegativeInteger receivedQuantity) {
98
        this.receivedQuantity = receivedQuantity;
99
    }
100
 
101
 
102
    /**
103
     * Gets the description value for this ContentRecord.
104
     * 
105
     * @return description   * Description.
106
     */
107
    public java.lang.String getDescription() {
108
        return description;
109
    }
110
 
111
 
112
    /**
113
     * Sets the description value for this ContentRecord.
114
     * 
115
     * @param description   * Description.
116
     */
117
    public void setDescription(java.lang.String description) {
118
        this.description = description;
119
    }
120
 
121
    private java.lang.Object __equalsCalc = null;
122
    public synchronized boolean equals(java.lang.Object obj) {
123
        if (!(obj instanceof ContentRecord)) return false;
124
        ContentRecord other = (ContentRecord) obj;
125
        if (obj == null) return false;
126
        if (this == obj) return true;
127
        if (__equalsCalc != null) {
128
            return (__equalsCalc == obj);
129
        }
130
        __equalsCalc = obj;
131
        boolean _equals;
132
        _equals = true && 
133
            ((this.partNumber==null && other.getPartNumber()==null) || 
134
             (this.partNumber!=null &&
135
              this.partNumber.equals(other.getPartNumber()))) &&
136
            ((this.itemNumber==null && other.getItemNumber()==null) || 
137
             (this.itemNumber!=null &&
138
              this.itemNumber.equals(other.getItemNumber()))) &&
139
            ((this.receivedQuantity==null && other.getReceivedQuantity()==null) || 
140
             (this.receivedQuantity!=null &&
141
              this.receivedQuantity.equals(other.getReceivedQuantity()))) &&
142
            ((this.description==null && other.getDescription()==null) || 
143
             (this.description!=null &&
144
              this.description.equals(other.getDescription())));
145
        __equalsCalc = null;
146
        return _equals;
147
    }
148
 
149
    private boolean __hashCodeCalc = false;
150
    public synchronized int hashCode() {
151
        if (__hashCodeCalc) {
152
            return 0;
153
        }
154
        __hashCodeCalc = true;
155
        int _hashCode = 1;
156
        if (getPartNumber() != null) {
157
            _hashCode += getPartNumber().hashCode();
158
        }
159
        if (getItemNumber() != null) {
160
            _hashCode += getItemNumber().hashCode();
161
        }
162
        if (getReceivedQuantity() != null) {
163
            _hashCode += getReceivedQuantity().hashCode();
164
        }
165
        if (getDescription() != null) {
166
            _hashCode += getDescription().hashCode();
167
        }
168
        __hashCodeCalc = false;
169
        return _hashCode;
170
    }
171
 
172
    // Type metadata
173
    private static org.apache.axis.description.TypeDesc typeDesc =
174
        new org.apache.axis.description.TypeDesc(ContentRecord.class, true);
175
 
176
    static {
177
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContentRecord"));
178
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
179
        elemField.setFieldName("partNumber");
180
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PartNumber"));
181
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
182
        elemField.setMinOccurs(0);
183
        elemField.setNillable(false);
184
        typeDesc.addFieldDesc(elemField);
185
        elemField = new org.apache.axis.description.ElementDesc();
186
        elemField.setFieldName("itemNumber");
187
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ItemNumber"));
188
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
189
        elemField.setMinOccurs(0);
190
        elemField.setNillable(false);
191
        typeDesc.addFieldDesc(elemField);
192
        elemField = new org.apache.axis.description.ElementDesc();
193
        elemField.setFieldName("receivedQuantity");
194
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReceivedQuantity"));
195
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
196
        elemField.setMinOccurs(0);
197
        elemField.setNillable(false);
198
        typeDesc.addFieldDesc(elemField);
199
        elemField = new org.apache.axis.description.ElementDesc();
200
        elemField.setFieldName("description");
201
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Description"));
202
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
203
        elemField.setMinOccurs(0);
204
        elemField.setNillable(false);
205
        typeDesc.addFieldDesc(elemField);
206
    }
207
 
208
    /**
209
     * Return type metadata object
210
     */
211
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
212
        return typeDesc;
213
    }
214
 
215
    /**
216
     * Get Custom Serializer
217
     */
218
    public static org.apache.axis.encoding.Serializer getSerializer(
219
           java.lang.String mechType, 
220
           java.lang.Class _javaType,  
221
           javax.xml.namespace.QName _xmlType) {
222
        return 
223
          new  org.apache.axis.encoding.ser.BeanSerializer(
224
            _javaType, _xmlType, typeDesc);
225
    }
226
 
227
    /**
228
     * Get Custom Deserializer
229
     */
230
    public static org.apache.axis.encoding.Deserializer getDeserializer(
231
           java.lang.String mechType, 
232
           java.lang.Class _javaType,  
233
           javax.xml.namespace.QName _xmlType) {
234
        return 
235
          new  org.apache.axis.encoding.ser.BeanDeserializer(
236
            _javaType, _xmlType, typeDesc);
237
    }
238
 
239
}