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