Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * ShippingDocument.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
 * All package-level shipping documents (other than labels and barcodes).
13
 */
14
public class ShippingDocument  implements java.io.Serializable {
15
    /* Shipping Document Type */
16
    private com.fedex.ship.stub.ReturnedShippingDocumentType type;
17
 
18
    /* Specifies how this document image/file is organized. */
19
    private com.fedex.ship.stub.ShippingDocumentGroupingType grouping;
20
 
21
    private com.fedex.ship.stub.ShippingDocumentDispositionType shippingDocumentDisposition;
22
 
23
    /* The name under which a STORED or DEFERRED document is written. */
24
    private java.lang.String accessReference;
25
 
26
    /* Specifies the image type of this shipping document. */
27
    private com.fedex.ship.stub.ShippingDocumentImageType imageType;
28
 
29
    /* Specifies the image resolution in DPI (dots per inch). */
30
    private org.apache.axis.types.NonNegativeInteger resolution;
31
 
32
    /* Can be zero for documents whose disposition implies that no
33
     * content is included. */
34
    private org.apache.axis.types.NonNegativeInteger copiesToPrint;
35
 
36
    /* One or more document parts which make up a single logical document,
37
     * such as multiple pages of a single form. */
38
    private com.fedex.ship.stub.ShippingDocumentPart[] parts;
39
 
40
    public ShippingDocument() {
41
    }
42
 
43
    public ShippingDocument(
44
           com.fedex.ship.stub.ReturnedShippingDocumentType type,
45
           com.fedex.ship.stub.ShippingDocumentGroupingType grouping,
46
           com.fedex.ship.stub.ShippingDocumentDispositionType shippingDocumentDisposition,
47
           java.lang.String accessReference,
48
           com.fedex.ship.stub.ShippingDocumentImageType imageType,
49
           org.apache.axis.types.NonNegativeInteger resolution,
50
           org.apache.axis.types.NonNegativeInteger copiesToPrint,
51
           com.fedex.ship.stub.ShippingDocumentPart[] parts) {
52
           this.type = type;
53
           this.grouping = grouping;
54
           this.shippingDocumentDisposition = shippingDocumentDisposition;
55
           this.accessReference = accessReference;
56
           this.imageType = imageType;
57
           this.resolution = resolution;
58
           this.copiesToPrint = copiesToPrint;
59
           this.parts = parts;
60
    }
61
 
62
 
63
    /**
64
     * Gets the type value for this ShippingDocument.
65
     * 
66
     * @return type   * Shipping Document Type
67
     */
68
    public com.fedex.ship.stub.ReturnedShippingDocumentType getType() {
69
        return type;
70
    }
71
 
72
 
73
    /**
74
     * Sets the type value for this ShippingDocument.
75
     * 
76
     * @param type   * Shipping Document Type
77
     */
78
    public void setType(com.fedex.ship.stub.ReturnedShippingDocumentType type) {
79
        this.type = type;
80
    }
81
 
82
 
83
    /**
84
     * Gets the grouping value for this ShippingDocument.
85
     * 
86
     * @return grouping   * Specifies how this document image/file is organized.
87
     */
88
    public com.fedex.ship.stub.ShippingDocumentGroupingType getGrouping() {
89
        return grouping;
90
    }
91
 
92
 
93
    /**
94
     * Sets the grouping value for this ShippingDocument.
95
     * 
96
     * @param grouping   * Specifies how this document image/file is organized.
97
     */
98
    public void setGrouping(com.fedex.ship.stub.ShippingDocumentGroupingType grouping) {
99
        this.grouping = grouping;
100
    }
101
 
102
 
103
    /**
104
     * Gets the shippingDocumentDisposition value for this ShippingDocument.
105
     * 
106
     * @return shippingDocumentDisposition
107
     */
108
    public com.fedex.ship.stub.ShippingDocumentDispositionType getShippingDocumentDisposition() {
109
        return shippingDocumentDisposition;
110
    }
111
 
112
 
113
    /**
114
     * Sets the shippingDocumentDisposition value for this ShippingDocument.
115
     * 
116
     * @param shippingDocumentDisposition
117
     */
118
    public void setShippingDocumentDisposition(com.fedex.ship.stub.ShippingDocumentDispositionType shippingDocumentDisposition) {
119
        this.shippingDocumentDisposition = shippingDocumentDisposition;
120
    }
121
 
122
 
123
    /**
124
     * Gets the accessReference value for this ShippingDocument.
125
     * 
126
     * @return accessReference   * The name under which a STORED or DEFERRED document is written.
127
     */
128
    public java.lang.String getAccessReference() {
129
        return accessReference;
130
    }
131
 
132
 
133
    /**
134
     * Sets the accessReference value for this ShippingDocument.
135
     * 
136
     * @param accessReference   * The name under which a STORED or DEFERRED document is written.
137
     */
138
    public void setAccessReference(java.lang.String accessReference) {
139
        this.accessReference = accessReference;
140
    }
141
 
142
 
143
    /**
144
     * Gets the imageType value for this ShippingDocument.
145
     * 
146
     * @return imageType   * Specifies the image type of this shipping document.
147
     */
148
    public com.fedex.ship.stub.ShippingDocumentImageType getImageType() {
149
        return imageType;
150
    }
151
 
152
 
153
    /**
154
     * Sets the imageType value for this ShippingDocument.
155
     * 
156
     * @param imageType   * Specifies the image type of this shipping document.
157
     */
158
    public void setImageType(com.fedex.ship.stub.ShippingDocumentImageType imageType) {
159
        this.imageType = imageType;
160
    }
161
 
162
 
163
    /**
164
     * Gets the resolution value for this ShippingDocument.
165
     * 
166
     * @return resolution   * Specifies the image resolution in DPI (dots per inch).
167
     */
168
    public org.apache.axis.types.NonNegativeInteger getResolution() {
169
        return resolution;
170
    }
171
 
172
 
173
    /**
174
     * Sets the resolution value for this ShippingDocument.
175
     * 
176
     * @param resolution   * Specifies the image resolution in DPI (dots per inch).
177
     */
178
    public void setResolution(org.apache.axis.types.NonNegativeInteger resolution) {
179
        this.resolution = resolution;
180
    }
181
 
182
 
183
    /**
184
     * Gets the copiesToPrint value for this ShippingDocument.
185
     * 
186
     * @return copiesToPrint   * Can be zero for documents whose disposition implies that no
187
     * content is included.
188
     */
189
    public org.apache.axis.types.NonNegativeInteger getCopiesToPrint() {
190
        return copiesToPrint;
191
    }
192
 
193
 
194
    /**
195
     * Sets the copiesToPrint value for this ShippingDocument.
196
     * 
197
     * @param copiesToPrint   * Can be zero for documents whose disposition implies that no
198
     * content is included.
199
     */
200
    public void setCopiesToPrint(org.apache.axis.types.NonNegativeInteger copiesToPrint) {
201
        this.copiesToPrint = copiesToPrint;
202
    }
203
 
204
 
205
    /**
206
     * Gets the parts value for this ShippingDocument.
207
     * 
208
     * @return parts   * One or more document parts which make up a single logical document,
209
     * such as multiple pages of a single form.
210
     */
211
    public com.fedex.ship.stub.ShippingDocumentPart[] getParts() {
212
        return parts;
213
    }
214
 
215
 
216
    /**
217
     * Sets the parts value for this ShippingDocument.
218
     * 
219
     * @param parts   * One or more document parts which make up a single logical document,
220
     * such as multiple pages of a single form.
221
     */
222
    public void setParts(com.fedex.ship.stub.ShippingDocumentPart[] parts) {
223
        this.parts = parts;
224
    }
225
 
226
    public com.fedex.ship.stub.ShippingDocumentPart getParts(int i) {
227
        return this.parts[i];
228
    }
229
 
230
    public void setParts(int i, com.fedex.ship.stub.ShippingDocumentPart _value) {
231
        this.parts[i] = _value;
232
    }
233
 
234
    private java.lang.Object __equalsCalc = null;
235
    public synchronized boolean equals(java.lang.Object obj) {
236
        if (!(obj instanceof ShippingDocument)) return false;
237
        ShippingDocument other = (ShippingDocument) obj;
238
        if (obj == null) return false;
239
        if (this == obj) return true;
240
        if (__equalsCalc != null) {
241
            return (__equalsCalc == obj);
242
        }
243
        __equalsCalc = obj;
244
        boolean _equals;
245
        _equals = true && 
246
            ((this.type==null && other.getType()==null) || 
247
             (this.type!=null &&
248
              this.type.equals(other.getType()))) &&
249
            ((this.grouping==null && other.getGrouping()==null) || 
250
             (this.grouping!=null &&
251
              this.grouping.equals(other.getGrouping()))) &&
252
            ((this.shippingDocumentDisposition==null && other.getShippingDocumentDisposition()==null) || 
253
             (this.shippingDocumentDisposition!=null &&
254
              this.shippingDocumentDisposition.equals(other.getShippingDocumentDisposition()))) &&
255
            ((this.accessReference==null && other.getAccessReference()==null) || 
256
             (this.accessReference!=null &&
257
              this.accessReference.equals(other.getAccessReference()))) &&
258
            ((this.imageType==null && other.getImageType()==null) || 
259
             (this.imageType!=null &&
260
              this.imageType.equals(other.getImageType()))) &&
261
            ((this.resolution==null && other.getResolution()==null) || 
262
             (this.resolution!=null &&
263
              this.resolution.equals(other.getResolution()))) &&
264
            ((this.copiesToPrint==null && other.getCopiesToPrint()==null) || 
265
             (this.copiesToPrint!=null &&
266
              this.copiesToPrint.equals(other.getCopiesToPrint()))) &&
267
            ((this.parts==null && other.getParts()==null) || 
268
             (this.parts!=null &&
269
              java.util.Arrays.equals(this.parts, other.getParts())));
270
        __equalsCalc = null;
271
        return _equals;
272
    }
273
 
274
    private boolean __hashCodeCalc = false;
275
    public synchronized int hashCode() {
276
        if (__hashCodeCalc) {
277
            return 0;
278
        }
279
        __hashCodeCalc = true;
280
        int _hashCode = 1;
281
        if (getType() != null) {
282
            _hashCode += getType().hashCode();
283
        }
284
        if (getGrouping() != null) {
285
            _hashCode += getGrouping().hashCode();
286
        }
287
        if (getShippingDocumentDisposition() != null) {
288
            _hashCode += getShippingDocumentDisposition().hashCode();
289
        }
290
        if (getAccessReference() != null) {
291
            _hashCode += getAccessReference().hashCode();
292
        }
293
        if (getImageType() != null) {
294
            _hashCode += getImageType().hashCode();
295
        }
296
        if (getResolution() != null) {
297
            _hashCode += getResolution().hashCode();
298
        }
299
        if (getCopiesToPrint() != null) {
300
            _hashCode += getCopiesToPrint().hashCode();
301
        }
302
        if (getParts() != null) {
303
            for (int i=0;
304
                 i<java.lang.reflect.Array.getLength(getParts());
305
                 i++) {
306
                java.lang.Object obj = java.lang.reflect.Array.get(getParts(), i);
307
                if (obj != null &&
308
                    !obj.getClass().isArray()) {
309
                    _hashCode += obj.hashCode();
310
                }
311
            }
312
        }
313
        __hashCodeCalc = false;
314
        return _hashCode;
315
    }
316
 
317
    // Type metadata
318
    private static org.apache.axis.description.TypeDesc typeDesc =
319
        new org.apache.axis.description.TypeDesc(ShippingDocument.class, true);
320
 
321
    static {
322
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocument"));
323
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
324
        elemField.setFieldName("type");
325
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Type"));
326
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnedShippingDocumentType"));
327
        elemField.setMinOccurs(0);
328
        elemField.setNillable(false);
329
        typeDesc.addFieldDesc(elemField);
330
        elemField = new org.apache.axis.description.ElementDesc();
331
        elemField.setFieldName("grouping");
332
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Grouping"));
333
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentGroupingType"));
334
        elemField.setMinOccurs(0);
335
        elemField.setNillable(false);
336
        typeDesc.addFieldDesc(elemField);
337
        elemField = new org.apache.axis.description.ElementDesc();
338
        elemField.setFieldName("shippingDocumentDisposition");
339
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentDisposition"));
340
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentDispositionType"));
341
        elemField.setMinOccurs(0);
342
        elemField.setNillable(false);
343
        typeDesc.addFieldDesc(elemField);
344
        elemField = new org.apache.axis.description.ElementDesc();
345
        elemField.setFieldName("accessReference");
346
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AccessReference"));
347
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
348
        elemField.setMinOccurs(0);
349
        elemField.setNillable(false);
350
        typeDesc.addFieldDesc(elemField);
351
        elemField = new org.apache.axis.description.ElementDesc();
352
        elemField.setFieldName("imageType");
353
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ImageType"));
354
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentImageType"));
355
        elemField.setMinOccurs(0);
356
        elemField.setNillable(false);
357
        typeDesc.addFieldDesc(elemField);
358
        elemField = new org.apache.axis.description.ElementDesc();
359
        elemField.setFieldName("resolution");
360
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Resolution"));
361
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
362
        elemField.setMinOccurs(0);
363
        elemField.setNillable(false);
364
        typeDesc.addFieldDesc(elemField);
365
        elemField = new org.apache.axis.description.ElementDesc();
366
        elemField.setFieldName("copiesToPrint");
367
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CopiesToPrint"));
368
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
369
        elemField.setMinOccurs(0);
370
        elemField.setNillable(false);
371
        typeDesc.addFieldDesc(elemField);
372
        elemField = new org.apache.axis.description.ElementDesc();
373
        elemField.setFieldName("parts");
374
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Parts"));
375
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentPart"));
376
        elemField.setMinOccurs(0);
377
        elemField.setNillable(false);
378
        elemField.setMaxOccursUnbounded(true);
379
        typeDesc.addFieldDesc(elemField);
380
    }
381
 
382
    /**
383
     * Return type metadata object
384
     */
385
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
386
        return typeDesc;
387
    }
388
 
389
    /**
390
     * Get Custom Serializer
391
     */
392
    public static org.apache.axis.encoding.Serializer getSerializer(
393
           java.lang.String mechType, 
394
           java.lang.Class _javaType,  
395
           javax.xml.namespace.QName _xmlType) {
396
        return 
397
          new  org.apache.axis.encoding.ser.BeanSerializer(
398
            _javaType, _xmlType, typeDesc);
399
    }
400
 
401
    /**
402
     * Get Custom Deserializer
403
     */
404
    public static org.apache.axis.encoding.Deserializer getDeserializer(
405
           java.lang.String mechType, 
406
           java.lang.Class _javaType,  
407
           javax.xml.namespace.QName _xmlType) {
408
        return 
409
          new  org.apache.axis.encoding.ser.BeanDeserializer(
410
            _javaType, _xmlType, typeDesc);
411
    }
412
 
413
}