Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * LabelSpecification.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
 * Description of shipping label to be returned in the reply
13
 */
14
public class LabelSpecification  implements java.io.Serializable {
15
    /* Specifies how to create, organize, and return the document. */
16
    private com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions;
17
 
18
    /* Specify type of label to be returned */
19
    private com.fedex.ship.stub.LabelFormatType labelFormatType;
20
 
21
    /* Specifies the image format used for a shipping document. */
22
    private com.fedex.ship.stub.ShippingDocumentImageType imageType;
23
 
24
    /* For thermal printer lables this indicates the size of the label
25
     * and the location of the doc tab if present. */
26
    private com.fedex.ship.stub.LabelStockType labelStockType;
27
 
28
    /* This indicates if the top or bottom of the label comes out
29
     * of the printer first. */
30
    private com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation;
31
 
32
    /* If present, this contact and address information will replace
33
     * the return address information on the label. */
34
    private com.fedex.ship.stub.ContactAndAddress printedLabelOrigin;
35
 
36
    /* Allows customer-specified control of label content. */
37
    private com.fedex.ship.stub.CustomerSpecifiedLabelDetail customerSpecifiedDetail;
38
 
39
    public LabelSpecification() {
40
    }
41
 
42
    public LabelSpecification(
43
           com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions,
44
           com.fedex.ship.stub.LabelFormatType labelFormatType,
45
           com.fedex.ship.stub.ShippingDocumentImageType imageType,
46
           com.fedex.ship.stub.LabelStockType labelStockType,
47
           com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation,
48
           com.fedex.ship.stub.ContactAndAddress printedLabelOrigin,
49
           com.fedex.ship.stub.CustomerSpecifiedLabelDetail customerSpecifiedDetail) {
50
           this.dispositions = dispositions;
51
           this.labelFormatType = labelFormatType;
52
           this.imageType = imageType;
53
           this.labelStockType = labelStockType;
54
           this.labelPrintingOrientation = labelPrintingOrientation;
55
           this.printedLabelOrigin = printedLabelOrigin;
56
           this.customerSpecifiedDetail = customerSpecifiedDetail;
57
    }
58
 
59
 
60
    /**
61
     * Gets the dispositions value for this LabelSpecification.
62
     * 
63
     * @return dispositions   * Specifies how to create, organize, and return the document.
64
     */
65
    public com.fedex.ship.stub.ShippingDocumentDispositionDetail[] getDispositions() {
66
        return dispositions;
67
    }
68
 
69
 
70
    /**
71
     * Sets the dispositions value for this LabelSpecification.
72
     * 
73
     * @param dispositions   * Specifies how to create, organize, and return the document.
74
     */
75
    public void setDispositions(com.fedex.ship.stub.ShippingDocumentDispositionDetail[] dispositions) {
76
        this.dispositions = dispositions;
77
    }
78
 
79
    public com.fedex.ship.stub.ShippingDocumentDispositionDetail getDispositions(int i) {
80
        return this.dispositions[i];
81
    }
82
 
83
    public void setDispositions(int i, com.fedex.ship.stub.ShippingDocumentDispositionDetail _value) {
84
        this.dispositions[i] = _value;
85
    }
86
 
87
 
88
    /**
89
     * Gets the labelFormatType value for this LabelSpecification.
90
     * 
91
     * @return labelFormatType   * Specify type of label to be returned
92
     */
93
    public com.fedex.ship.stub.LabelFormatType getLabelFormatType() {
94
        return labelFormatType;
95
    }
96
 
97
 
98
    /**
99
     * Sets the labelFormatType value for this LabelSpecification.
100
     * 
101
     * @param labelFormatType   * Specify type of label to be returned
102
     */
103
    public void setLabelFormatType(com.fedex.ship.stub.LabelFormatType labelFormatType) {
104
        this.labelFormatType = labelFormatType;
105
    }
106
 
107
 
108
    /**
109
     * Gets the imageType value for this LabelSpecification.
110
     * 
111
     * @return imageType   * Specifies the image format used for a shipping document.
112
     */
113
    public com.fedex.ship.stub.ShippingDocumentImageType getImageType() {
114
        return imageType;
115
    }
116
 
117
 
118
    /**
119
     * Sets the imageType value for this LabelSpecification.
120
     * 
121
     * @param imageType   * Specifies the image format used for a shipping document.
122
     */
123
    public void setImageType(com.fedex.ship.stub.ShippingDocumentImageType imageType) {
124
        this.imageType = imageType;
125
    }
126
 
127
 
128
    /**
129
     * Gets the labelStockType value for this LabelSpecification.
130
     * 
131
     * @return labelStockType   * For thermal printer lables this indicates the size of the label
132
     * and the location of the doc tab if present.
133
     */
134
    public com.fedex.ship.stub.LabelStockType getLabelStockType() {
135
        return labelStockType;
136
    }
137
 
138
 
139
    /**
140
     * Sets the labelStockType value for this LabelSpecification.
141
     * 
142
     * @param labelStockType   * For thermal printer lables this indicates the size of the label
143
     * and the location of the doc tab if present.
144
     */
145
    public void setLabelStockType(com.fedex.ship.stub.LabelStockType labelStockType) {
146
        this.labelStockType = labelStockType;
147
    }
148
 
149
 
150
    /**
151
     * Gets the labelPrintingOrientation value for this LabelSpecification.
152
     * 
153
     * @return labelPrintingOrientation   * This indicates if the top or bottom of the label comes out
154
     * of the printer first.
155
     */
156
    public com.fedex.ship.stub.LabelPrintingOrientationType getLabelPrintingOrientation() {
157
        return labelPrintingOrientation;
158
    }
159
 
160
 
161
    /**
162
     * Sets the labelPrintingOrientation value for this LabelSpecification.
163
     * 
164
     * @param labelPrintingOrientation   * This indicates if the top or bottom of the label comes out
165
     * of the printer first.
166
     */
167
    public void setLabelPrintingOrientation(com.fedex.ship.stub.LabelPrintingOrientationType labelPrintingOrientation) {
168
        this.labelPrintingOrientation = labelPrintingOrientation;
169
    }
170
 
171
 
172
    /**
173
     * Gets the printedLabelOrigin value for this LabelSpecification.
174
     * 
175
     * @return printedLabelOrigin   * If present, this contact and address information will replace
176
     * the return address information on the label.
177
     */
178
    public com.fedex.ship.stub.ContactAndAddress getPrintedLabelOrigin() {
179
        return printedLabelOrigin;
180
    }
181
 
182
 
183
    /**
184
     * Sets the printedLabelOrigin value for this LabelSpecification.
185
     * 
186
     * @param printedLabelOrigin   * If present, this contact and address information will replace
187
     * the return address information on the label.
188
     */
189
    public void setPrintedLabelOrigin(com.fedex.ship.stub.ContactAndAddress printedLabelOrigin) {
190
        this.printedLabelOrigin = printedLabelOrigin;
191
    }
192
 
193
 
194
    /**
195
     * Gets the customerSpecifiedDetail value for this LabelSpecification.
196
     * 
197
     * @return customerSpecifiedDetail   * Allows customer-specified control of label content.
198
     */
199
    public com.fedex.ship.stub.CustomerSpecifiedLabelDetail getCustomerSpecifiedDetail() {
200
        return customerSpecifiedDetail;
201
    }
202
 
203
 
204
    /**
205
     * Sets the customerSpecifiedDetail value for this LabelSpecification.
206
     * 
207
     * @param customerSpecifiedDetail   * Allows customer-specified control of label content.
208
     */
209
    public void setCustomerSpecifiedDetail(com.fedex.ship.stub.CustomerSpecifiedLabelDetail customerSpecifiedDetail) {
210
        this.customerSpecifiedDetail = customerSpecifiedDetail;
211
    }
212
 
213
    private java.lang.Object __equalsCalc = null;
214
    public synchronized boolean equals(java.lang.Object obj) {
215
        if (!(obj instanceof LabelSpecification)) return false;
216
        LabelSpecification other = (LabelSpecification) obj;
217
        if (obj == null) return false;
218
        if (this == obj) return true;
219
        if (__equalsCalc != null) {
220
            return (__equalsCalc == obj);
221
        }
222
        __equalsCalc = obj;
223
        boolean _equals;
224
        _equals = true && 
225
            ((this.dispositions==null && other.getDispositions()==null) || 
226
             (this.dispositions!=null &&
227
              java.util.Arrays.equals(this.dispositions, other.getDispositions()))) &&
228
            ((this.labelFormatType==null && other.getLabelFormatType()==null) || 
229
             (this.labelFormatType!=null &&
230
              this.labelFormatType.equals(other.getLabelFormatType()))) &&
231
            ((this.imageType==null && other.getImageType()==null) || 
232
             (this.imageType!=null &&
233
              this.imageType.equals(other.getImageType()))) &&
234
            ((this.labelStockType==null && other.getLabelStockType()==null) || 
235
             (this.labelStockType!=null &&
236
              this.labelStockType.equals(other.getLabelStockType()))) &&
237
            ((this.labelPrintingOrientation==null && other.getLabelPrintingOrientation()==null) || 
238
             (this.labelPrintingOrientation!=null &&
239
              this.labelPrintingOrientation.equals(other.getLabelPrintingOrientation()))) &&
240
            ((this.printedLabelOrigin==null && other.getPrintedLabelOrigin()==null) || 
241
             (this.printedLabelOrigin!=null &&
242
              this.printedLabelOrigin.equals(other.getPrintedLabelOrigin()))) &&
243
            ((this.customerSpecifiedDetail==null && other.getCustomerSpecifiedDetail()==null) || 
244
             (this.customerSpecifiedDetail!=null &&
245
              this.customerSpecifiedDetail.equals(other.getCustomerSpecifiedDetail())));
246
        __equalsCalc = null;
247
        return _equals;
248
    }
249
 
250
    private boolean __hashCodeCalc = false;
251
    public synchronized int hashCode() {
252
        if (__hashCodeCalc) {
253
            return 0;
254
        }
255
        __hashCodeCalc = true;
256
        int _hashCode = 1;
257
        if (getDispositions() != null) {
258
            for (int i=0;
259
                 i<java.lang.reflect.Array.getLength(getDispositions());
260
                 i++) {
261
                java.lang.Object obj = java.lang.reflect.Array.get(getDispositions(), i);
262
                if (obj != null &&
263
                    !obj.getClass().isArray()) {
264
                    _hashCode += obj.hashCode();
265
                }
266
            }
267
        }
268
        if (getLabelFormatType() != null) {
269
            _hashCode += getLabelFormatType().hashCode();
270
        }
271
        if (getImageType() != null) {
272
            _hashCode += getImageType().hashCode();
273
        }
274
        if (getLabelStockType() != null) {
275
            _hashCode += getLabelStockType().hashCode();
276
        }
277
        if (getLabelPrintingOrientation() != null) {
278
            _hashCode += getLabelPrintingOrientation().hashCode();
279
        }
280
        if (getPrintedLabelOrigin() != null) {
281
            _hashCode += getPrintedLabelOrigin().hashCode();
282
        }
283
        if (getCustomerSpecifiedDetail() != null) {
284
            _hashCode += getCustomerSpecifiedDetail().hashCode();
285
        }
286
        __hashCodeCalc = false;
287
        return _hashCode;
288
    }
289
 
290
    // Type metadata
291
    private static org.apache.axis.description.TypeDesc typeDesc =
292
        new org.apache.axis.description.TypeDesc(LabelSpecification.class, true);
293
 
294
    static {
295
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelSpecification"));
296
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
297
        elemField.setFieldName("dispositions");
298
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Dispositions"));
299
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentDispositionDetail"));
300
        elemField.setMinOccurs(0);
301
        elemField.setNillable(false);
302
        elemField.setMaxOccursUnbounded(true);
303
        typeDesc.addFieldDesc(elemField);
304
        elemField = new org.apache.axis.description.ElementDesc();
305
        elemField.setFieldName("labelFormatType");
306
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelFormatType"));
307
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelFormatType"));
308
        elemField.setNillable(false);
309
        typeDesc.addFieldDesc(elemField);
310
        elemField = new org.apache.axis.description.ElementDesc();
311
        elemField.setFieldName("imageType");
312
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ImageType"));
313
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentImageType"));
314
        elemField.setMinOccurs(0);
315
        elemField.setNillable(false);
316
        typeDesc.addFieldDesc(elemField);
317
        elemField = new org.apache.axis.description.ElementDesc();
318
        elemField.setFieldName("labelStockType");
319
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelStockType"));
320
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelStockType"));
321
        elemField.setMinOccurs(0);
322
        elemField.setNillable(false);
323
        typeDesc.addFieldDesc(elemField);
324
        elemField = new org.apache.axis.description.ElementDesc();
325
        elemField.setFieldName("labelPrintingOrientation");
326
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelPrintingOrientation"));
327
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelPrintingOrientationType"));
328
        elemField.setMinOccurs(0);
329
        elemField.setNillable(false);
330
        typeDesc.addFieldDesc(elemField);
331
        elemField = new org.apache.axis.description.ElementDesc();
332
        elemField.setFieldName("printedLabelOrigin");
333
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PrintedLabelOrigin"));
334
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactAndAddress"));
335
        elemField.setMinOccurs(0);
336
        elemField.setNillable(false);
337
        typeDesc.addFieldDesc(elemField);
338
        elemField = new org.apache.axis.description.ElementDesc();
339
        elemField.setFieldName("customerSpecifiedDetail");
340
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerSpecifiedDetail"));
341
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerSpecifiedLabelDetail"));
342
        elemField.setMinOccurs(0);
343
        elemField.setNillable(false);
344
        typeDesc.addFieldDesc(elemField);
345
    }
346
 
347
    /**
348
     * Return type metadata object
349
     */
350
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
351
        return typeDesc;
352
    }
353
 
354
    /**
355
     * Get Custom Serializer
356
     */
357
    public static org.apache.axis.encoding.Serializer getSerializer(
358
           java.lang.String mechType, 
359
           java.lang.Class _javaType,  
360
           javax.xml.namespace.QName _xmlType) {
361
        return 
362
          new  org.apache.axis.encoding.ser.BeanSerializer(
363
            _javaType, _xmlType, typeDesc);
364
    }
365
 
366
    /**
367
     * Get Custom Deserializer
368
     */
369
    public static org.apache.axis.encoding.Deserializer getDeserializer(
370
           java.lang.String mechType, 
371
           java.lang.Class _javaType,  
372
           javax.xml.namespace.QName _xmlType) {
373
        return 
374
          new  org.apache.axis.encoding.ser.BeanDeserializer(
375
            _javaType, _xmlType, typeDesc);
376
    }
377
 
378
}