Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
695 blopes 1
 
2
package br.com.swconsultoria.nfe.schema_4.consSitNFe;
3
 
4
import java.util.ArrayList;
5
import java.util.HashMap;
6
import java.util.List;
7
import java.util.Map;
8
import javax.xml.bind.annotation.XmlAccessType;
9
import javax.xml.bind.annotation.XmlAccessorType;
10
import javax.xml.bind.annotation.XmlAnyAttribute;
11
import javax.xml.bind.annotation.XmlAnyElement;
12
import javax.xml.bind.annotation.XmlAttribute;
13
import javax.xml.bind.annotation.XmlElement;
14
import javax.xml.bind.annotation.XmlID;
15
import javax.xml.bind.annotation.XmlType;
16
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
17
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
18
import javax.xml.namespace.QName;
19
import org.w3c.dom.Element;
20
 
21
 
22
/**
23
 * Tipo Evento
24
 *
25
 * <p>Classe Java de TEvento complex type.
26
 *
27
 * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
28
 *
29
 * <pre>
30
 * &lt;complexType name="TEvento"&gt;
31
 *   &lt;complexContent&gt;
32
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
33
 *       &lt;sequence&gt;
34
 *         &lt;element name="infEvento"&gt;
35
 *           &lt;complexType&gt;
36
 *             &lt;complexContent&gt;
37
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
38
 *                 &lt;sequence&gt;
39
 *                   &lt;element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/&gt;
40
 *                   &lt;element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/&gt;
41
 *                   &lt;choice&gt;
42
 *                     &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/&gt;
43
 *                     &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/&gt;
44
 *                   &lt;/choice&gt;
45
 *                   &lt;element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/&gt;
46
 *                   &lt;element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/&gt;
47
 *                   &lt;element name="tpEvento"&gt;
48
 *                     &lt;simpleType&gt;
49
 *                       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
50
 *                         &lt;whiteSpace value="preserve"/&gt;
51
 *                         &lt;pattern value="[0-9]{6}"/&gt;
52
 *                       &lt;/restriction&gt;
53
 *                     &lt;/simpleType&gt;
54
 *                   &lt;/element&gt;
55
 *                   &lt;element name="nSeqEvento"&gt;
56
 *                     &lt;simpleType&gt;
57
 *                       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
58
 *                         &lt;whiteSpace value="preserve"/&gt;
59
 *                         &lt;pattern value="[1-9][0-9]{0,1}"/&gt;
60
 *                       &lt;/restriction&gt;
61
 *                     &lt;/simpleType&gt;
62
 *                   &lt;/element&gt;
63
 *                   &lt;element name="verEvento"&gt;
64
 *                     &lt;simpleType&gt;
65
 *                       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
66
 *                         &lt;whiteSpace value="preserve"/&gt;
67
 *                       &lt;/restriction&gt;
68
 *                     &lt;/simpleType&gt;
69
 *                   &lt;/element&gt;
70
 *                   &lt;element name="detEvento"&gt;
71
 *                     &lt;complexType&gt;
72
 *                       &lt;complexContent&gt;
73
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
74
 *                           &lt;sequence&gt;
75
 *                             &lt;any processContents='skip' maxOccurs="unbounded"/&gt;
76
 *                           &lt;/sequence&gt;
77
 *                           &lt;anyAttribute processContents='skip'/&gt;
78
 *                         &lt;/restriction&gt;
79
 *                       &lt;/complexContent&gt;
80
 *                     &lt;/complexType&gt;
81
 *                   &lt;/element&gt;
82
 *                 &lt;/sequence&gt;
83
 *                 &lt;attribute name="Id" use="required"&gt;
84
 *                   &lt;simpleType&gt;
85
 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}ID"&gt;
86
 *                       &lt;pattern value="ID[0-9]{52}"/&gt;
87
 *                     &lt;/restriction&gt;
88
 *                   &lt;/simpleType&gt;
89
 *                 &lt;/attribute&gt;
90
 *               &lt;/restriction&gt;
91
 *             &lt;/complexContent&gt;
92
 *           &lt;/complexType&gt;
93
 *         &lt;/element&gt;
94
 *         &lt;element ref="{http://www.w3.org/2000/09/xmldsig#}Signature"/&gt;
95
 *       &lt;/sequence&gt;
96
 *       &lt;attribute name="versao" use="required" type="{http://www.portalfiscal.inf.br/nfe}TVerEvento" /&gt;
97
 *     &lt;/restriction&gt;
98
 *   &lt;/complexContent&gt;
99
 * &lt;/complexType&gt;
100
 * </pre>
101
 *
102
 *
103
 */
104
@XmlAccessorType(XmlAccessType.FIELD)
105
@XmlType(name = "TEvento", namespace = "http://www.portalfiscal.inf.br/nfe", propOrder = {
106
    "infEvento",
107
    "signature"
108
})
109
public class TEvento {
110
 
111
    @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
112
    protected TEvento.InfEvento infEvento;
113
    @XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
114
    protected SignatureType signature;
115
    @XmlAttribute(name = "versao", required = true)
116
    protected String versao;
117
 
118
    /**
119
     * Obtém o valor da propriedade infEvento.
120
     *
121
     * @return
122
     *     possible object is
123
     *     {@link TEvento.InfEvento }
124
     *    
125
     */
126
    public TEvento.InfEvento getInfEvento() {
127
        return infEvento;
128
    }
129
 
130
    /**
131
     * Define o valor da propriedade infEvento.
132
     *
133
     * @param value
134
     *     allowed object is
135
     *     {@link TEvento.InfEvento }
136
     *    
137
     */
138
    public void setInfEvento(TEvento.InfEvento value) {
139
        this.infEvento = value;
140
    }
141
 
142
    /**
143
     * Obtém o valor da propriedade signature.
144
     *
145
     * @return
146
     *     possible object is
147
     *     {@link SignatureType }
148
     *    
149
     */
150
    public SignatureType getSignature() {
151
        return signature;
152
    }
153
 
154
    /**
155
     * Define o valor da propriedade signature.
156
     *
157
     * @param value
158
     *     allowed object is
159
     *     {@link SignatureType }
160
     *    
161
     */
162
    public void setSignature(SignatureType value) {
163
        this.signature = value;
164
    }
165
 
166
    /**
167
     * Obtém o valor da propriedade versao.
168
     *
169
     * @return
170
     *     possible object is
171
     *     {@link String }
172
     *    
173
     */
174
    public String getVersao() {
175
        return versao;
176
    }
177
 
178
    /**
179
     * Define o valor da propriedade versao.
180
     *
181
     * @param value
182
     *     allowed object is
183
     *     {@link String }
184
     *    
185
     */
186
    public void setVersao(String value) {
187
        this.versao = value;
188
    }
189
 
190
 
191
    /**
192
     * <p>Classe Java de anonymous complex type.
193
     *
194
     * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
195
     *
196
     * <pre>
197
     * &lt;complexType&gt;
198
     *   &lt;complexContent&gt;
199
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
200
     *       &lt;sequence&gt;
201
     *         &lt;element name="cOrgao" type="{http://www.portalfiscal.inf.br/nfe}TCOrgaoIBGE"/&gt;
202
     *         &lt;element name="tpAmb" type="{http://www.portalfiscal.inf.br/nfe}TAmb"/&gt;
203
     *         &lt;choice&gt;
204
     *           &lt;element name="CNPJ" type="{http://www.portalfiscal.inf.br/nfe}TCnpjOpc"/&gt;
205
     *           &lt;element name="CPF" type="{http://www.portalfiscal.inf.br/nfe}TCpf"/&gt;
206
     *         &lt;/choice&gt;
207
     *         &lt;element name="chNFe" type="{http://www.portalfiscal.inf.br/nfe}TChNFe"/&gt;
208
     *         &lt;element name="dhEvento" type="{http://www.portalfiscal.inf.br/nfe}TDateTimeUTC"/&gt;
209
     *         &lt;element name="tpEvento"&gt;
210
     *           &lt;simpleType&gt;
211
     *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
212
     *               &lt;whiteSpace value="preserve"/&gt;
213
     *               &lt;pattern value="[0-9]{6}"/&gt;
214
     *             &lt;/restriction&gt;
215
     *           &lt;/simpleType&gt;
216
     *         &lt;/element&gt;
217
     *         &lt;element name="nSeqEvento"&gt;
218
     *           &lt;simpleType&gt;
219
     *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
220
     *               &lt;whiteSpace value="preserve"/&gt;
221
     *               &lt;pattern value="[1-9][0-9]{0,1}"/&gt;
222
     *             &lt;/restriction&gt;
223
     *           &lt;/simpleType&gt;
224
     *         &lt;/element&gt;
225
     *         &lt;element name="verEvento"&gt;
226
     *           &lt;simpleType&gt;
227
     *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
228
     *               &lt;whiteSpace value="preserve"/&gt;
229
     *             &lt;/restriction&gt;
230
     *           &lt;/simpleType&gt;
231
     *         &lt;/element&gt;
232
     *         &lt;element name="detEvento"&gt;
233
     *           &lt;complexType&gt;
234
     *             &lt;complexContent&gt;
235
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
236
     *                 &lt;sequence&gt;
237
     *                   &lt;any processContents='skip' maxOccurs="unbounded"/&gt;
238
     *                 &lt;/sequence&gt;
239
     *                 &lt;anyAttribute processContents='skip'/&gt;
240
     *               &lt;/restriction&gt;
241
     *             &lt;/complexContent&gt;
242
     *           &lt;/complexType&gt;
243
     *         &lt;/element&gt;
244
     *       &lt;/sequence&gt;
245
     *       &lt;attribute name="Id" use="required"&gt;
246
     *         &lt;simpleType&gt;
247
     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}ID"&gt;
248
     *             &lt;pattern value="ID[0-9]{52}"/&gt;
249
     *           &lt;/restriction&gt;
250
     *         &lt;/simpleType&gt;
251
     *       &lt;/attribute&gt;
252
     *     &lt;/restriction&gt;
253
     *   &lt;/complexContent&gt;
254
     * &lt;/complexType&gt;
255
     * </pre>
256
     *
257
     *
258
     */
259
    @XmlAccessorType(XmlAccessType.FIELD)
260
    @XmlType(name = "", propOrder = {
261
        "cOrgao",
262
        "tpAmb",
263
        "cnpj",
264
        "cpf",
265
        "chNFe",
266
        "dhEvento",
267
        "tpEvento",
268
        "nSeqEvento",
269
        "verEvento",
270
        "detEvento"
271
    })
272
    public static class InfEvento {
273
 
274
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
275
        protected String cOrgao;
276
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
277
        protected String tpAmb;
278
        @XmlElement(name = "CNPJ", namespace = "http://www.portalfiscal.inf.br/nfe")
279
        protected String cnpj;
280
        @XmlElement(name = "CPF", namespace = "http://www.portalfiscal.inf.br/nfe")
281
        protected String cpf;
282
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
283
        protected String chNFe;
284
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
285
        protected String dhEvento;
286
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
287
        protected String tpEvento;
288
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
289
        protected String nSeqEvento;
290
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
291
        protected String verEvento;
292
        @XmlElement(namespace = "http://www.portalfiscal.inf.br/nfe", required = true)
293
        protected TEvento.InfEvento.DetEvento detEvento;
294
        @XmlAttribute(name = "Id", required = true)
295
        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
296
        @XmlID
297
        protected String id;
298
 
299
        /**
300
         * Obtém o valor da propriedade cOrgao.
301
         *
302
         * @return
303
         *     possible object is
304
         *     {@link String }
305
         *    
306
         */
307
        public String getCOrgao() {
308
            return cOrgao;
309
        }
310
 
311
        /**
312
         * Define o valor da propriedade cOrgao.
313
         *
314
         * @param value
315
         *     allowed object is
316
         *     {@link String }
317
         *    
318
         */
319
        public void setCOrgao(String value) {
320
            this.cOrgao = value;
321
        }
322
 
323
        /**
324
         * Obtém o valor da propriedade tpAmb.
325
         *
326
         * @return
327
         *     possible object is
328
         *     {@link String }
329
         *    
330
         */
331
        public String getTpAmb() {
332
            return tpAmb;
333
        }
334
 
335
        /**
336
         * Define o valor da propriedade tpAmb.
337
         *
338
         * @param value
339
         *     allowed object is
340
         *     {@link String }
341
         *    
342
         */
343
        public void setTpAmb(String value) {
344
            this.tpAmb = value;
345
        }
346
 
347
        /**
348
         * Obtém o valor da propriedade cnpj.
349
         *
350
         * @return
351
         *     possible object is
352
         *     {@link String }
353
         *    
354
         */
355
        public String getCNPJ() {
356
            return cnpj;
357
        }
358
 
359
        /**
360
         * Define o valor da propriedade cnpj.
361
         *
362
         * @param value
363
         *     allowed object is
364
         *     {@link String }
365
         *    
366
         */
367
        public void setCNPJ(String value) {
368
            this.cnpj = value;
369
        }
370
 
371
        /**
372
         * Obtém o valor da propriedade cpf.
373
         *
374
         * @return
375
         *     possible object is
376
         *     {@link String }
377
         *    
378
         */
379
        public String getCPF() {
380
            return cpf;
381
        }
382
 
383
        /**
384
         * Define o valor da propriedade cpf.
385
         *
386
         * @param value
387
         *     allowed object is
388
         *     {@link String }
389
         *    
390
         */
391
        public void setCPF(String value) {
392
            this.cpf = value;
393
        }
394
 
395
        /**
396
         * Obtém o valor da propriedade chNFe.
397
         *
398
         * @return
399
         *     possible object is
400
         *     {@link String }
401
         *    
402
         */
403
        public String getChNFe() {
404
            return chNFe;
405
        }
406
 
407
        /**
408
         * Define o valor da propriedade chNFe.
409
         *
410
         * @param value
411
         *     allowed object is
412
         *     {@link String }
413
         *    
414
         */
415
        public void setChNFe(String value) {
416
            this.chNFe = value;
417
        }
418
 
419
        /**
420
         * Obtém o valor da propriedade dhEvento.
421
         *
422
         * @return
423
         *     possible object is
424
         *     {@link String }
425
         *    
426
         */
427
        public String getDhEvento() {
428
            return dhEvento;
429
        }
430
 
431
        /**
432
         * Define o valor da propriedade dhEvento.
433
         *
434
         * @param value
435
         *     allowed object is
436
         *     {@link String }
437
         *    
438
         */
439
        public void setDhEvento(String value) {
440
            this.dhEvento = value;
441
        }
442
 
443
        /**
444
         * Obtém o valor da propriedade tpEvento.
445
         *
446
         * @return
447
         *     possible object is
448
         *     {@link String }
449
         *    
450
         */
451
        public String getTpEvento() {
452
            return tpEvento;
453
        }
454
 
455
        /**
456
         * Define o valor da propriedade tpEvento.
457
         *
458
         * @param value
459
         *     allowed object is
460
         *     {@link String }
461
         *    
462
         */
463
        public void setTpEvento(String value) {
464
            this.tpEvento = value;
465
        }
466
 
467
        /**
468
         * Obtém o valor da propriedade nSeqEvento.
469
         *
470
         * @return
471
         *     possible object is
472
         *     {@link String }
473
         *    
474
         */
475
        public String getNSeqEvento() {
476
            return nSeqEvento;
477
        }
478
 
479
        /**
480
         * Define o valor da propriedade nSeqEvento.
481
         *
482
         * @param value
483
         *     allowed object is
484
         *     {@link String }
485
         *    
486
         */
487
        public void setNSeqEvento(String value) {
488
            this.nSeqEvento = value;
489
        }
490
 
491
        /**
492
         * Obtém o valor da propriedade verEvento.
493
         *
494
         * @return
495
         *     possible object is
496
         *     {@link String }
497
         *    
498
         */
499
        public String getVerEvento() {
500
            return verEvento;
501
        }
502
 
503
        /**
504
         * Define o valor da propriedade verEvento.
505
         *
506
         * @param value
507
         *     allowed object is
508
         *     {@link String }
509
         *    
510
         */
511
        public void setVerEvento(String value) {
512
            this.verEvento = value;
513
        }
514
 
515
        /**
516
         * Obtém o valor da propriedade detEvento.
517
         *
518
         * @return
519
         *     possible object is
520
         *     {@link TEvento.InfEvento.DetEvento }
521
         *    
522
         */
523
        public TEvento.InfEvento.DetEvento getDetEvento() {
524
            return detEvento;
525
        }
526
 
527
        /**
528
         * Define o valor da propriedade detEvento.
529
         *
530
         * @param value
531
         *     allowed object is
532
         *     {@link TEvento.InfEvento.DetEvento }
533
         *    
534
         */
535
        public void setDetEvento(TEvento.InfEvento.DetEvento value) {
536
            this.detEvento = value;
537
        }
538
 
539
        /**
540
         * Obtém o valor da propriedade id.
541
         *
542
         * @return
543
         *     possible object is
544
         *     {@link String }
545
         *    
546
         */
547
        public String getId() {
548
            return id;
549
        }
550
 
551
        /**
552
         * Define o valor da propriedade id.
553
         *
554
         * @param value
555
         *     allowed object is
556
         *     {@link String }
557
         *    
558
         */
559
        public void setId(String value) {
560
            this.id = value;
561
        }
562
 
563
 
564
        /**
565
         * <p>Classe Java de anonymous complex type.
566
         *
567
         * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
568
         *
569
         * <pre>
570
         * &lt;complexType&gt;
571
         *   &lt;complexContent&gt;
572
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
573
         *       &lt;sequence&gt;
574
         *         &lt;any processContents='skip' maxOccurs="unbounded"/&gt;
575
         *       &lt;/sequence&gt;
576
         *       &lt;anyAttribute processContents='skip'/&gt;
577
         *     &lt;/restriction&gt;
578
         *   &lt;/complexContent&gt;
579
         * &lt;/complexType&gt;
580
         * </pre>
581
         *
582
         *
583
         */
584
        @XmlAccessorType(XmlAccessType.FIELD)
585
        @XmlType(name = "", propOrder = {
586
            "any"
587
        })
588
        public static class DetEvento {
589
 
590
            @XmlAnyElement
591
            protected List<Element> any;
592
            @XmlAnyAttribute
593
            private Map<QName, String> otherAttributes = new HashMap<QName, String>();
594
 
595
            /**
596
             * Gets the value of the any property.
597
             *
598
             * <p>
599
             * This accessor method returns a reference to the live list,
600
             * not a snapshot. Therefore any modification you make to the
601
             * returned list will be present inside the JAXB object.
602
             * This is why there is not a <CODE>set</CODE> method for the any property.
603
             *
604
             * <p>
605
             * For example, to add a new item, do as follows:
606
             * <pre>
607
             *    getAny().add(newItem);
608
             * </pre>
609
             *
610
             *
611
             * <p>
612
             * Objects of the following type(s) are allowed in the list
613
             * {@link Element }
614
             *
615
             *
616
             */
617
            public List<Element> getAny() {
618
                if (any == null) {
619
                    any = new ArrayList<Element>();
620
                }
621
                return this.any;
622
            }
623
 
624
            /**
625
             * Gets a map that contains attributes that aren't bound to any typed property on this class.
626
             *
627
             * <p>
628
             * the map is keyed by the name of the attribute and
629
             * the value is the string value of the attribute.
630
             *
631
             * the map returned by this method is live, and you can add new attribute
632
             * by updating the map directly. Because of this design, there's no setter.
633
             *
634
             *
635
             * @return
636
             *     always non-null
637
             */
638
            public Map<QName, String> getOtherAttributes() {
639
                return otherAttributes;
640
            }
641
 
642
        }
643
 
644
    }
645
 
646
}