Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * NaftaCertificateOfOriginDetail.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
 * Data required to produce a Certificate of Origin document. Remaining
13
 * content (business data) to be defined once requirements have been
14
 * completed.
15
 */
16
public class NaftaCertificateOfOriginDetail  implements java.io.Serializable {
17
    private com.fedex.ship.stub.ShippingDocumentFormat format;
18
 
19
    private com.fedex.ship.stub.DateRange blanketPeriod;
20
 
21
    /* Indicates which Party (if any) from the shipment is to be used
22
     * as the source of importer data on the NAFTA COO form. */
23
    private com.fedex.ship.stub.NaftaImporterSpecificationType importerSpecification;
24
 
25
    /* Contact information for "Authorized Signature" area of form. */
26
    private com.fedex.ship.stub.Contact signatureContact;
27
 
28
    private com.fedex.ship.stub.NaftaProducerSpecificationType producerSpecification;
29
 
30
    private com.fedex.ship.stub.NaftaProducer[] producers;
31
 
32
    private com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages;
33
 
34
    public NaftaCertificateOfOriginDetail() {
35
    }
36
 
37
    public NaftaCertificateOfOriginDetail(
38
           com.fedex.ship.stub.ShippingDocumentFormat format,
39
           com.fedex.ship.stub.DateRange blanketPeriod,
40
           com.fedex.ship.stub.NaftaImporterSpecificationType importerSpecification,
41
           com.fedex.ship.stub.Contact signatureContact,
42
           com.fedex.ship.stub.NaftaProducerSpecificationType producerSpecification,
43
           com.fedex.ship.stub.NaftaProducer[] producers,
44
           com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
45
           this.format = format;
46
           this.blanketPeriod = blanketPeriod;
47
           this.importerSpecification = importerSpecification;
48
           this.signatureContact = signatureContact;
49
           this.producerSpecification = producerSpecification;
50
           this.producers = producers;
51
           this.customerImageUsages = customerImageUsages;
52
    }
53
 
54
 
55
    /**
56
     * Gets the format value for this NaftaCertificateOfOriginDetail.
57
     * 
58
     * @return format
59
     */
60
    public com.fedex.ship.stub.ShippingDocumentFormat getFormat() {
61
        return format;
62
    }
63
 
64
 
65
    /**
66
     * Sets the format value for this NaftaCertificateOfOriginDetail.
67
     * 
68
     * @param format
69
     */
70
    public void setFormat(com.fedex.ship.stub.ShippingDocumentFormat format) {
71
        this.format = format;
72
    }
73
 
74
 
75
    /**
76
     * Gets the blanketPeriod value for this NaftaCertificateOfOriginDetail.
77
     * 
78
     * @return blanketPeriod
79
     */
80
    public com.fedex.ship.stub.DateRange getBlanketPeriod() {
81
        return blanketPeriod;
82
    }
83
 
84
 
85
    /**
86
     * Sets the blanketPeriod value for this NaftaCertificateOfOriginDetail.
87
     * 
88
     * @param blanketPeriod
89
     */
90
    public void setBlanketPeriod(com.fedex.ship.stub.DateRange blanketPeriod) {
91
        this.blanketPeriod = blanketPeriod;
92
    }
93
 
94
 
95
    /**
96
     * Gets the importerSpecification value for this NaftaCertificateOfOriginDetail.
97
     * 
98
     * @return importerSpecification   * Indicates which Party (if any) from the shipment is to be used
99
     * as the source of importer data on the NAFTA COO form.
100
     */
101
    public com.fedex.ship.stub.NaftaImporterSpecificationType getImporterSpecification() {
102
        return importerSpecification;
103
    }
104
 
105
 
106
    /**
107
     * Sets the importerSpecification value for this NaftaCertificateOfOriginDetail.
108
     * 
109
     * @param importerSpecification   * Indicates which Party (if any) from the shipment is to be used
110
     * as the source of importer data on the NAFTA COO form.
111
     */
112
    public void setImporterSpecification(com.fedex.ship.stub.NaftaImporterSpecificationType importerSpecification) {
113
        this.importerSpecification = importerSpecification;
114
    }
115
 
116
 
117
    /**
118
     * Gets the signatureContact value for this NaftaCertificateOfOriginDetail.
119
     * 
120
     * @return signatureContact   * Contact information for "Authorized Signature" area of form.
121
     */
122
    public com.fedex.ship.stub.Contact getSignatureContact() {
123
        return signatureContact;
124
    }
125
 
126
 
127
    /**
128
     * Sets the signatureContact value for this NaftaCertificateOfOriginDetail.
129
     * 
130
     * @param signatureContact   * Contact information for "Authorized Signature" area of form.
131
     */
132
    public void setSignatureContact(com.fedex.ship.stub.Contact signatureContact) {
133
        this.signatureContact = signatureContact;
134
    }
135
 
136
 
137
    /**
138
     * Gets the producerSpecification value for this NaftaCertificateOfOriginDetail.
139
     * 
140
     * @return producerSpecification
141
     */
142
    public com.fedex.ship.stub.NaftaProducerSpecificationType getProducerSpecification() {
143
        return producerSpecification;
144
    }
145
 
146
 
147
    /**
148
     * Sets the producerSpecification value for this NaftaCertificateOfOriginDetail.
149
     * 
150
     * @param producerSpecification
151
     */
152
    public void setProducerSpecification(com.fedex.ship.stub.NaftaProducerSpecificationType producerSpecification) {
153
        this.producerSpecification = producerSpecification;
154
    }
155
 
156
 
157
    /**
158
     * Gets the producers value for this NaftaCertificateOfOriginDetail.
159
     * 
160
     * @return producers
161
     */
162
    public com.fedex.ship.stub.NaftaProducer[] getProducers() {
163
        return producers;
164
    }
165
 
166
 
167
    /**
168
     * Sets the producers value for this NaftaCertificateOfOriginDetail.
169
     * 
170
     * @param producers
171
     */
172
    public void setProducers(com.fedex.ship.stub.NaftaProducer[] producers) {
173
        this.producers = producers;
174
    }
175
 
176
    public com.fedex.ship.stub.NaftaProducer getProducers(int i) {
177
        return this.producers[i];
178
    }
179
 
180
    public void setProducers(int i, com.fedex.ship.stub.NaftaProducer _value) {
181
        this.producers[i] = _value;
182
    }
183
 
184
 
185
    /**
186
     * Gets the customerImageUsages value for this NaftaCertificateOfOriginDetail.
187
     * 
188
     * @return customerImageUsages
189
     */
190
    public com.fedex.ship.stub.CustomerImageUsage[] getCustomerImageUsages() {
191
        return customerImageUsages;
192
    }
193
 
194
 
195
    /**
196
     * Sets the customerImageUsages value for this NaftaCertificateOfOriginDetail.
197
     * 
198
     * @param customerImageUsages
199
     */
200
    public void setCustomerImageUsages(com.fedex.ship.stub.CustomerImageUsage[] customerImageUsages) {
201
        this.customerImageUsages = customerImageUsages;
202
    }
203
 
204
    public com.fedex.ship.stub.CustomerImageUsage getCustomerImageUsages(int i) {
205
        return this.customerImageUsages[i];
206
    }
207
 
208
    public void setCustomerImageUsages(int i, com.fedex.ship.stub.CustomerImageUsage _value) {
209
        this.customerImageUsages[i] = _value;
210
    }
211
 
212
    private java.lang.Object __equalsCalc = null;
213
    public synchronized boolean equals(java.lang.Object obj) {
214
        if (!(obj instanceof NaftaCertificateOfOriginDetail)) return false;
215
        NaftaCertificateOfOriginDetail other = (NaftaCertificateOfOriginDetail) obj;
216
        if (obj == null) return false;
217
        if (this == obj) return true;
218
        if (__equalsCalc != null) {
219
            return (__equalsCalc == obj);
220
        }
221
        __equalsCalc = obj;
222
        boolean _equals;
223
        _equals = true && 
224
            ((this.format==null && other.getFormat()==null) || 
225
             (this.format!=null &&
226
              this.format.equals(other.getFormat()))) &&
227
            ((this.blanketPeriod==null && other.getBlanketPeriod()==null) || 
228
             (this.blanketPeriod!=null &&
229
              this.blanketPeriod.equals(other.getBlanketPeriod()))) &&
230
            ((this.importerSpecification==null && other.getImporterSpecification()==null) || 
231
             (this.importerSpecification!=null &&
232
              this.importerSpecification.equals(other.getImporterSpecification()))) &&
233
            ((this.signatureContact==null && other.getSignatureContact()==null) || 
234
             (this.signatureContact!=null &&
235
              this.signatureContact.equals(other.getSignatureContact()))) &&
236
            ((this.producerSpecification==null && other.getProducerSpecification()==null) || 
237
             (this.producerSpecification!=null &&
238
              this.producerSpecification.equals(other.getProducerSpecification()))) &&
239
            ((this.producers==null && other.getProducers()==null) || 
240
             (this.producers!=null &&
241
              java.util.Arrays.equals(this.producers, other.getProducers()))) &&
242
            ((this.customerImageUsages==null && other.getCustomerImageUsages()==null) || 
243
             (this.customerImageUsages!=null &&
244
              java.util.Arrays.equals(this.customerImageUsages, other.getCustomerImageUsages())));
245
        __equalsCalc = null;
246
        return _equals;
247
    }
248
 
249
    private boolean __hashCodeCalc = false;
250
    public synchronized int hashCode() {
251
        if (__hashCodeCalc) {
252
            return 0;
253
        }
254
        __hashCodeCalc = true;
255
        int _hashCode = 1;
256
        if (getFormat() != null) {
257
            _hashCode += getFormat().hashCode();
258
        }
259
        if (getBlanketPeriod() != null) {
260
            _hashCode += getBlanketPeriod().hashCode();
261
        }
262
        if (getImporterSpecification() != null) {
263
            _hashCode += getImporterSpecification().hashCode();
264
        }
265
        if (getSignatureContact() != null) {
266
            _hashCode += getSignatureContact().hashCode();
267
        }
268
        if (getProducerSpecification() != null) {
269
            _hashCode += getProducerSpecification().hashCode();
270
        }
271
        if (getProducers() != null) {
272
            for (int i=0;
273
                 i<java.lang.reflect.Array.getLength(getProducers());
274
                 i++) {
275
                java.lang.Object obj = java.lang.reflect.Array.get(getProducers(), i);
276
                if (obj != null &&
277
                    !obj.getClass().isArray()) {
278
                    _hashCode += obj.hashCode();
279
                }
280
            }
281
        }
282
        if (getCustomerImageUsages() != null) {
283
            for (int i=0;
284
                 i<java.lang.reflect.Array.getLength(getCustomerImageUsages());
285
                 i++) {
286
                java.lang.Object obj = java.lang.reflect.Array.get(getCustomerImageUsages(), i);
287
                if (obj != null &&
288
                    !obj.getClass().isArray()) {
289
                    _hashCode += obj.hashCode();
290
                }
291
            }
292
        }
293
        __hashCodeCalc = false;
294
        return _hashCode;
295
    }
296
 
297
    // Type metadata
298
    private static org.apache.axis.description.TypeDesc typeDesc =
299
        new org.apache.axis.description.TypeDesc(NaftaCertificateOfOriginDetail.class, true);
300
 
301
    static {
302
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaCertificateOfOriginDetail"));
303
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
304
        elemField.setFieldName("format");
305
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Format"));
306
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocumentFormat"));
307
        elemField.setMinOccurs(0);
308
        elemField.setNillable(false);
309
        typeDesc.addFieldDesc(elemField);
310
        elemField = new org.apache.axis.description.ElementDesc();
311
        elemField.setFieldName("blanketPeriod");
312
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BlanketPeriod"));
313
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DateRange"));
314
        elemField.setMinOccurs(0);
315
        elemField.setNillable(false);
316
        typeDesc.addFieldDesc(elemField);
317
        elemField = new org.apache.axis.description.ElementDesc();
318
        elemField.setFieldName("importerSpecification");
319
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ImporterSpecification"));
320
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaImporterSpecificationType"));
321
        elemField.setMinOccurs(0);
322
        elemField.setNillable(false);
323
        typeDesc.addFieldDesc(elemField);
324
        elemField = new org.apache.axis.description.ElementDesc();
325
        elemField.setFieldName("signatureContact");
326
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SignatureContact"));
327
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Contact"));
328
        elemField.setMinOccurs(0);
329
        elemField.setNillable(false);
330
        typeDesc.addFieldDesc(elemField);
331
        elemField = new org.apache.axis.description.ElementDesc();
332
        elemField.setFieldName("producerSpecification");
333
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ProducerSpecification"));
334
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaProducerSpecificationType"));
335
        elemField.setMinOccurs(0);
336
        elemField.setNillable(false);
337
        typeDesc.addFieldDesc(elemField);
338
        elemField = new org.apache.axis.description.ElementDesc();
339
        elemField.setFieldName("producers");
340
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Producers"));
341
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NaftaProducer"));
342
        elemField.setMinOccurs(0);
343
        elemField.setNillable(false);
344
        elemField.setMaxOccursUnbounded(true);
345
        typeDesc.addFieldDesc(elemField);
346
        elemField = new org.apache.axis.description.ElementDesc();
347
        elemField.setFieldName("customerImageUsages");
348
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsages"));
349
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerImageUsage"));
350
        elemField.setMinOccurs(0);
351
        elemField.setNillable(false);
352
        elemField.setMaxOccursUnbounded(true);
353
        typeDesc.addFieldDesc(elemField);
354
    }
355
 
356
    /**
357
     * Return type metadata object
358
     */
359
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
360
        return typeDesc;
361
    }
362
 
363
    /**
364
     * Get Custom Serializer
365
     */
366
    public static org.apache.axis.encoding.Serializer getSerializer(
367
           java.lang.String mechType, 
368
           java.lang.Class _javaType,  
369
           javax.xml.namespace.QName _xmlType) {
370
        return 
371
          new  org.apache.axis.encoding.ser.BeanSerializer(
372
            _javaType, _xmlType, typeDesc);
373
    }
374
 
375
    /**
376
     * Get Custom Deserializer
377
     */
378
    public static org.apache.axis.encoding.Deserializer getDeserializer(
379
           java.lang.String mechType, 
380
           java.lang.Class _javaType,  
381
           javax.xml.namespace.QName _xmlType) {
382
        return 
383
          new  org.apache.axis.encoding.ser.BeanDeserializer(
384
            _javaType, _xmlType, typeDesc);
385
    }
386
 
387
}