Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CustomerSpecifiedLabelDetail.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
 * Allows customer-specified control of label content.
13
 */
14
public class CustomerSpecifiedLabelDetail  implements java.io.Serializable {
15
    /* If omitted, no doc tab will be produced (i.e. default is former
16
     * NONE type). */
17
    private com.fedex.ship.stub.DocTabContent docTabContent;
18
 
19
    /* Defines any custom content to print on the label. */
20
    private com.fedex.ship.stub.CustomLabelDetail customContent;
21
 
22
    /* Defines additional data to print in the Configurable portion
23
     * of the label, this allows you to print the same type information on
24
     * the label that can also be printed on the doc tab. */
25
    private com.fedex.ship.stub.ConfigurableLabelReferenceEntry[] configurableReferenceEntries;
26
 
27
    /* Controls which data/sections will be suppressed. */
28
    private com.fedex.ship.stub.LabelMaskableDataType[] maskedData;
29
 
30
    /* For customers producing their own Ground labels, this field
31
     * specifies which secondary barcode will be printed on the label; so
32
     * that the primary barcode produced by FedEx has the correct SCNC. */
33
    private com.fedex.ship.stub.SecondaryBarcodeType secondaryBarcode;
34
 
35
    private com.fedex.ship.stub.Localization termsAndConditionsLocalization;
36
 
37
    /* Controls the number of additional copies of supplemental labels. */
38
    private com.fedex.ship.stub.AdditionalLabelsDetail[] additionalLabels;
39
 
40
    /* This value reduces the default quantity of destination/consignee
41
     * air waybill labels. A value of zero indicates no change to default.
42
     * A minimum of one copy will always be produced. */
43
    private org.apache.axis.types.NonNegativeInteger airWaybillSuppressionCount;
44
 
45
    public CustomerSpecifiedLabelDetail() {
46
    }
47
 
48
    public CustomerSpecifiedLabelDetail(
49
           com.fedex.ship.stub.DocTabContent docTabContent,
50
           com.fedex.ship.stub.CustomLabelDetail customContent,
51
           com.fedex.ship.stub.ConfigurableLabelReferenceEntry[] configurableReferenceEntries,
52
           com.fedex.ship.stub.LabelMaskableDataType[] maskedData,
53
           com.fedex.ship.stub.SecondaryBarcodeType secondaryBarcode,
54
           com.fedex.ship.stub.Localization termsAndConditionsLocalization,
55
           com.fedex.ship.stub.AdditionalLabelsDetail[] additionalLabels,
56
           org.apache.axis.types.NonNegativeInteger airWaybillSuppressionCount) {
57
           this.docTabContent = docTabContent;
58
           this.customContent = customContent;
59
           this.configurableReferenceEntries = configurableReferenceEntries;
60
           this.maskedData = maskedData;
61
           this.secondaryBarcode = secondaryBarcode;
62
           this.termsAndConditionsLocalization = termsAndConditionsLocalization;
63
           this.additionalLabels = additionalLabels;
64
           this.airWaybillSuppressionCount = airWaybillSuppressionCount;
65
    }
66
 
67
 
68
    /**
69
     * Gets the docTabContent value for this CustomerSpecifiedLabelDetail.
70
     * 
71
     * @return docTabContent   * If omitted, no doc tab will be produced (i.e. default is former
72
     * NONE type).
73
     */
74
    public com.fedex.ship.stub.DocTabContent getDocTabContent() {
75
        return docTabContent;
76
    }
77
 
78
 
79
    /**
80
     * Sets the docTabContent value for this CustomerSpecifiedLabelDetail.
81
     * 
82
     * @param docTabContent   * If omitted, no doc tab will be produced (i.e. default is former
83
     * NONE type).
84
     */
85
    public void setDocTabContent(com.fedex.ship.stub.DocTabContent docTabContent) {
86
        this.docTabContent = docTabContent;
87
    }
88
 
89
 
90
    /**
91
     * Gets the customContent value for this CustomerSpecifiedLabelDetail.
92
     * 
93
     * @return customContent   * Defines any custom content to print on the label.
94
     */
95
    public com.fedex.ship.stub.CustomLabelDetail getCustomContent() {
96
        return customContent;
97
    }
98
 
99
 
100
    /**
101
     * Sets the customContent value for this CustomerSpecifiedLabelDetail.
102
     * 
103
     * @param customContent   * Defines any custom content to print on the label.
104
     */
105
    public void setCustomContent(com.fedex.ship.stub.CustomLabelDetail customContent) {
106
        this.customContent = customContent;
107
    }
108
 
109
 
110
    /**
111
     * Gets the configurableReferenceEntries value for this CustomerSpecifiedLabelDetail.
112
     * 
113
     * @return configurableReferenceEntries   * Defines additional data to print in the Configurable portion
114
     * of the label, this allows you to print the same type information on
115
     * the label that can also be printed on the doc tab.
116
     */
117
    public com.fedex.ship.stub.ConfigurableLabelReferenceEntry[] getConfigurableReferenceEntries() {
118
        return configurableReferenceEntries;
119
    }
120
 
121
 
122
    /**
123
     * Sets the configurableReferenceEntries value for this CustomerSpecifiedLabelDetail.
124
     * 
125
     * @param configurableReferenceEntries   * Defines additional data to print in the Configurable portion
126
     * of the label, this allows you to print the same type information on
127
     * the label that can also be printed on the doc tab.
128
     */
129
    public void setConfigurableReferenceEntries(com.fedex.ship.stub.ConfigurableLabelReferenceEntry[] configurableReferenceEntries) {
130
        this.configurableReferenceEntries = configurableReferenceEntries;
131
    }
132
 
133
    public com.fedex.ship.stub.ConfigurableLabelReferenceEntry getConfigurableReferenceEntries(int i) {
134
        return this.configurableReferenceEntries[i];
135
    }
136
 
137
    public void setConfigurableReferenceEntries(int i, com.fedex.ship.stub.ConfigurableLabelReferenceEntry _value) {
138
        this.configurableReferenceEntries[i] = _value;
139
    }
140
 
141
 
142
    /**
143
     * Gets the maskedData value for this CustomerSpecifiedLabelDetail.
144
     * 
145
     * @return maskedData   * Controls which data/sections will be suppressed.
146
     */
147
    public com.fedex.ship.stub.LabelMaskableDataType[] getMaskedData() {
148
        return maskedData;
149
    }
150
 
151
 
152
    /**
153
     * Sets the maskedData value for this CustomerSpecifiedLabelDetail.
154
     * 
155
     * @param maskedData   * Controls which data/sections will be suppressed.
156
     */
157
    public void setMaskedData(com.fedex.ship.stub.LabelMaskableDataType[] maskedData) {
158
        this.maskedData = maskedData;
159
    }
160
 
161
    public com.fedex.ship.stub.LabelMaskableDataType getMaskedData(int i) {
162
        return this.maskedData[i];
163
    }
164
 
165
    public void setMaskedData(int i, com.fedex.ship.stub.LabelMaskableDataType _value) {
166
        this.maskedData[i] = _value;
167
    }
168
 
169
 
170
    /**
171
     * Gets the secondaryBarcode value for this CustomerSpecifiedLabelDetail.
172
     * 
173
     * @return secondaryBarcode   * For customers producing their own Ground labels, this field
174
     * specifies which secondary barcode will be printed on the label; so
175
     * that the primary barcode produced by FedEx has the correct SCNC.
176
     */
177
    public com.fedex.ship.stub.SecondaryBarcodeType getSecondaryBarcode() {
178
        return secondaryBarcode;
179
    }
180
 
181
 
182
    /**
183
     * Sets the secondaryBarcode value for this CustomerSpecifiedLabelDetail.
184
     * 
185
     * @param secondaryBarcode   * For customers producing their own Ground labels, this field
186
     * specifies which secondary barcode will be printed on the label; so
187
     * that the primary barcode produced by FedEx has the correct SCNC.
188
     */
189
    public void setSecondaryBarcode(com.fedex.ship.stub.SecondaryBarcodeType secondaryBarcode) {
190
        this.secondaryBarcode = secondaryBarcode;
191
    }
192
 
193
 
194
    /**
195
     * Gets the termsAndConditionsLocalization value for this CustomerSpecifiedLabelDetail.
196
     * 
197
     * @return termsAndConditionsLocalization
198
     */
199
    public com.fedex.ship.stub.Localization getTermsAndConditionsLocalization() {
200
        return termsAndConditionsLocalization;
201
    }
202
 
203
 
204
    /**
205
     * Sets the termsAndConditionsLocalization value for this CustomerSpecifiedLabelDetail.
206
     * 
207
     * @param termsAndConditionsLocalization
208
     */
209
    public void setTermsAndConditionsLocalization(com.fedex.ship.stub.Localization termsAndConditionsLocalization) {
210
        this.termsAndConditionsLocalization = termsAndConditionsLocalization;
211
    }
212
 
213
 
214
    /**
215
     * Gets the additionalLabels value for this CustomerSpecifiedLabelDetail.
216
     * 
217
     * @return additionalLabels   * Controls the number of additional copies of supplemental labels.
218
     */
219
    public com.fedex.ship.stub.AdditionalLabelsDetail[] getAdditionalLabels() {
220
        return additionalLabels;
221
    }
222
 
223
 
224
    /**
225
     * Sets the additionalLabels value for this CustomerSpecifiedLabelDetail.
226
     * 
227
     * @param additionalLabels   * Controls the number of additional copies of supplemental labels.
228
     */
229
    public void setAdditionalLabels(com.fedex.ship.stub.AdditionalLabelsDetail[] additionalLabels) {
230
        this.additionalLabels = additionalLabels;
231
    }
232
 
233
    public com.fedex.ship.stub.AdditionalLabelsDetail getAdditionalLabels(int i) {
234
        return this.additionalLabels[i];
235
    }
236
 
237
    public void setAdditionalLabels(int i, com.fedex.ship.stub.AdditionalLabelsDetail _value) {
238
        this.additionalLabels[i] = _value;
239
    }
240
 
241
 
242
    /**
243
     * Gets the airWaybillSuppressionCount value for this CustomerSpecifiedLabelDetail.
244
     * 
245
     * @return airWaybillSuppressionCount   * This value reduces the default quantity of destination/consignee
246
     * air waybill labels. A value of zero indicates no change to default.
247
     * A minimum of one copy will always be produced.
248
     */
249
    public org.apache.axis.types.NonNegativeInteger getAirWaybillSuppressionCount() {
250
        return airWaybillSuppressionCount;
251
    }
252
 
253
 
254
    /**
255
     * Sets the airWaybillSuppressionCount value for this CustomerSpecifiedLabelDetail.
256
     * 
257
     * @param airWaybillSuppressionCount   * This value reduces the default quantity of destination/consignee
258
     * air waybill labels. A value of zero indicates no change to default.
259
     * A minimum of one copy will always be produced.
260
     */
261
    public void setAirWaybillSuppressionCount(org.apache.axis.types.NonNegativeInteger airWaybillSuppressionCount) {
262
        this.airWaybillSuppressionCount = airWaybillSuppressionCount;
263
    }
264
 
265
    private java.lang.Object __equalsCalc = null;
266
    public synchronized boolean equals(java.lang.Object obj) {
267
        if (!(obj instanceof CustomerSpecifiedLabelDetail)) return false;
268
        CustomerSpecifiedLabelDetail other = (CustomerSpecifiedLabelDetail) obj;
269
        if (obj == null) return false;
270
        if (this == obj) return true;
271
        if (__equalsCalc != null) {
272
            return (__equalsCalc == obj);
273
        }
274
        __equalsCalc = obj;
275
        boolean _equals;
276
        _equals = true && 
277
            ((this.docTabContent==null && other.getDocTabContent()==null) || 
278
             (this.docTabContent!=null &&
279
              this.docTabContent.equals(other.getDocTabContent()))) &&
280
            ((this.customContent==null && other.getCustomContent()==null) || 
281
             (this.customContent!=null &&
282
              this.customContent.equals(other.getCustomContent()))) &&
283
            ((this.configurableReferenceEntries==null && other.getConfigurableReferenceEntries()==null) || 
284
             (this.configurableReferenceEntries!=null &&
285
              java.util.Arrays.equals(this.configurableReferenceEntries, other.getConfigurableReferenceEntries()))) &&
286
            ((this.maskedData==null && other.getMaskedData()==null) || 
287
             (this.maskedData!=null &&
288
              java.util.Arrays.equals(this.maskedData, other.getMaskedData()))) &&
289
            ((this.secondaryBarcode==null && other.getSecondaryBarcode()==null) || 
290
             (this.secondaryBarcode!=null &&
291
              this.secondaryBarcode.equals(other.getSecondaryBarcode()))) &&
292
            ((this.termsAndConditionsLocalization==null && other.getTermsAndConditionsLocalization()==null) || 
293
             (this.termsAndConditionsLocalization!=null &&
294
              this.termsAndConditionsLocalization.equals(other.getTermsAndConditionsLocalization()))) &&
295
            ((this.additionalLabels==null && other.getAdditionalLabels()==null) || 
296
             (this.additionalLabels!=null &&
297
              java.util.Arrays.equals(this.additionalLabels, other.getAdditionalLabels()))) &&
298
            ((this.airWaybillSuppressionCount==null && other.getAirWaybillSuppressionCount()==null) || 
299
             (this.airWaybillSuppressionCount!=null &&
300
              this.airWaybillSuppressionCount.equals(other.getAirWaybillSuppressionCount())));
301
        __equalsCalc = null;
302
        return _equals;
303
    }
304
 
305
    private boolean __hashCodeCalc = false;
306
    public synchronized int hashCode() {
307
        if (__hashCodeCalc) {
308
            return 0;
309
        }
310
        __hashCodeCalc = true;
311
        int _hashCode = 1;
312
        if (getDocTabContent() != null) {
313
            _hashCode += getDocTabContent().hashCode();
314
        }
315
        if (getCustomContent() != null) {
316
            _hashCode += getCustomContent().hashCode();
317
        }
318
        if (getConfigurableReferenceEntries() != null) {
319
            for (int i=0;
320
                 i<java.lang.reflect.Array.getLength(getConfigurableReferenceEntries());
321
                 i++) {
322
                java.lang.Object obj = java.lang.reflect.Array.get(getConfigurableReferenceEntries(), i);
323
                if (obj != null &&
324
                    !obj.getClass().isArray()) {
325
                    _hashCode += obj.hashCode();
326
                }
327
            }
328
        }
329
        if (getMaskedData() != null) {
330
            for (int i=0;
331
                 i<java.lang.reflect.Array.getLength(getMaskedData());
332
                 i++) {
333
                java.lang.Object obj = java.lang.reflect.Array.get(getMaskedData(), i);
334
                if (obj != null &&
335
                    !obj.getClass().isArray()) {
336
                    _hashCode += obj.hashCode();
337
                }
338
            }
339
        }
340
        if (getSecondaryBarcode() != null) {
341
            _hashCode += getSecondaryBarcode().hashCode();
342
        }
343
        if (getTermsAndConditionsLocalization() != null) {
344
            _hashCode += getTermsAndConditionsLocalization().hashCode();
345
        }
346
        if (getAdditionalLabels() != null) {
347
            for (int i=0;
348
                 i<java.lang.reflect.Array.getLength(getAdditionalLabels());
349
                 i++) {
350
                java.lang.Object obj = java.lang.reflect.Array.get(getAdditionalLabels(), i);
351
                if (obj != null &&
352
                    !obj.getClass().isArray()) {
353
                    _hashCode += obj.hashCode();
354
                }
355
            }
356
        }
357
        if (getAirWaybillSuppressionCount() != null) {
358
            _hashCode += getAirWaybillSuppressionCount().hashCode();
359
        }
360
        __hashCodeCalc = false;
361
        return _hashCode;
362
    }
363
 
364
    // Type metadata
365
    private static org.apache.axis.description.TypeDesc typeDesc =
366
        new org.apache.axis.description.TypeDesc(CustomerSpecifiedLabelDetail.class, true);
367
 
368
    static {
369
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerSpecifiedLabelDetail"));
370
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
371
        elemField.setFieldName("docTabContent");
372
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
373
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DocTabContent"));
374
        elemField.setMinOccurs(0);
375
        elemField.setNillable(false);
376
        typeDesc.addFieldDesc(elemField);
377
        elemField = new org.apache.axis.description.ElementDesc();
378
        elemField.setFieldName("customContent");
379
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomContent"));
380
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomLabelDetail"));
381
        elemField.setMinOccurs(0);
382
        elemField.setNillable(false);
383
        typeDesc.addFieldDesc(elemField);
384
        elemField = new org.apache.axis.description.ElementDesc();
385
        elemField.setFieldName("configurableReferenceEntries");
386
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ConfigurableReferenceEntries"));
387
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ConfigurableLabelReferenceEntry"));
388
        elemField.setMinOccurs(0);
389
        elemField.setNillable(false);
390
        elemField.setMaxOccursUnbounded(true);
391
        typeDesc.addFieldDesc(elemField);
392
        elemField = new org.apache.axis.description.ElementDesc();
393
        elemField.setFieldName("maskedData");
394
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "MaskedData"));
395
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LabelMaskableDataType"));
396
        elemField.setMinOccurs(0);
397
        elemField.setNillable(false);
398
        elemField.setMaxOccursUnbounded(true);
399
        typeDesc.addFieldDesc(elemField);
400
        elemField = new org.apache.axis.description.ElementDesc();
401
        elemField.setFieldName("secondaryBarcode");
402
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SecondaryBarcode"));
403
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SecondaryBarcodeType"));
404
        elemField.setMinOccurs(0);
405
        elemField.setNillable(false);
406
        typeDesc.addFieldDesc(elemField);
407
        elemField = new org.apache.axis.description.ElementDesc();
408
        elemField.setFieldName("termsAndConditionsLocalization");
409
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TermsAndConditionsLocalization"));
410
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Localization"));
411
        elemField.setMinOccurs(0);
412
        elemField.setNillable(false);
413
        typeDesc.addFieldDesc(elemField);
414
        elemField = new org.apache.axis.description.ElementDesc();
415
        elemField.setFieldName("additionalLabels");
416
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AdditionalLabels"));
417
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AdditionalLabelsDetail"));
418
        elemField.setMinOccurs(0);
419
        elemField.setNillable(false);
420
        elemField.setMaxOccursUnbounded(true);
421
        typeDesc.addFieldDesc(elemField);
422
        elemField = new org.apache.axis.description.ElementDesc();
423
        elemField.setFieldName("airWaybillSuppressionCount");
424
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AirWaybillSuppressionCount"));
425
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
426
        elemField.setMinOccurs(0);
427
        elemField.setNillable(false);
428
        typeDesc.addFieldDesc(elemField);
429
    }
430
 
431
    /**
432
     * Return type metadata object
433
     */
434
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
435
        return typeDesc;
436
    }
437
 
438
    /**
439
     * Get Custom Serializer
440
     */
441
    public static org.apache.axis.encoding.Serializer getSerializer(
442
           java.lang.String mechType, 
443
           java.lang.Class _javaType,  
444
           javax.xml.namespace.QName _xmlType) {
445
        return 
446
          new  org.apache.axis.encoding.ser.BeanSerializer(
447
            _javaType, _xmlType, typeDesc);
448
    }
449
 
450
    /**
451
     * Get Custom Deserializer
452
     */
453
    public static org.apache.axis.encoding.Deserializer getDeserializer(
454
           java.lang.String mechType, 
455
           java.lang.Class _javaType,  
456
           javax.xml.namespace.QName _xmlType) {
457
        return 
458
          new  org.apache.axis.encoding.ser.BeanDeserializer(
459
            _javaType, _xmlType, typeDesc);
460
    }
461
 
462
}