• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #7320

24 Jun 2025 02:03AM UTC coverage: 51.463% (+1.1%) from 50.377%
#7320

push

web-flow
Merge 80a657e41 into bb9f583b3

14 of 20 new or added lines in 1 file covered. (70.0%)

812 existing lines in 45 files now uncovered.

14018 of 27239 relevant lines covered (51.46%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/evento/epec/NFInfoEventoEpec.java
1
package com.fincatto.documentofiscal.nfe400.classes.evento.epec;
2

3
import com.fincatto.documentofiscal.DFAmbiente;
4
import com.fincatto.documentofiscal.DFBase;
5
import com.fincatto.documentofiscal.DFUnidadeFederativa;
6
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
7
import com.fincatto.documentofiscal.validadores.DFIntegerValidador;
8
import com.fincatto.documentofiscal.validadores.DFStringValidador;
9
import java.math.BigDecimal;
10
import java.time.ZonedDateTime;
11

12
import org.simpleframework.xml.Attribute;
13
import org.simpleframework.xml.Element;
14

15

16
public class NFInfoEventoEpec extends DFBase {
×
17

18
    @Attribute(name = "Id", required = true)
19
    private String identificador;
20

21
    @Element(name = "cOrgao", required = true)
22
    private DFUnidadeFederativa orgao;
23

24
    @Element(name = "tpAmb", required = true)
25
    private DFAmbiente ambiente;
26

27
    @Element(name = "CNPJ", required = false)
28
    private String cnpj;
29

30
    @Element(name = "CPF", required = false)
31
    private String cpf;
32

33
    @Element(name = "chNFe", required = true)
34
    private String chave;
35

36
    @Element(name = "dhEvento", required = true)
37
    private ZonedDateTime dataHoraEvento;
38

39
    @Element(name = "tpEvento", required = true)
40
    private String codigoEvento;
41

42
    @Element(name = "nSeqEvento", required = true)
43
    private Integer numeroSequencialEvento;
44

45
    @Element(name = "verEvento", required = true)
46
    private String versaoEvento;
47

48
    @Element(name = "detEvento", required = true)
49
    private NFInfoEpec epec;
50

51
    public void setOrgao(final DFUnidadeFederativa orgao) {
52
        this.orgao = orgao;
×
53
    }
×
54

55
    public void setVersaoEvento(final BigDecimal versaoEvento) {
56
        this.versaoEvento = DFBigDecimalValidador.tamanho5Com2CasasDecimais(versaoEvento, "Versao do Evento");
×
57
    }
×
58

59
    public String getIdentificador() {
60
        return this.identificador;
×
61
    }
62

63
    public void setIdentificador(final String identificador) {
64
        DFStringValidador.exatamente54(identificador, "Info Evento Conting\u00eancia EPEC ID");
×
65
        this.identificador = identificador;
×
66
    }
×
67

68
    public DFAmbiente getAmbiente() {
69
        return this.ambiente;
×
70
    }
71

72
    public void setAmbiente(final DFAmbiente ambiente) {
73
        this.ambiente = ambiente;
×
74
    }
×
75

76
    public String getCnpj() {
77
        return this.cnpj;
×
78
    }
79

80
    public void setCnpj(final String cnpj) {
81
        if (this.cpf != null) {
×
82
            throw new IllegalStateException("CPF ja foi setado");
×
83
        }
UNCOV
84
        DFStringValidador.cnpj(cnpj);
×
UNCOV
85
        this.cnpj = cnpj;
×
86
    }
×
87

88
    public String getCpf() {
UNCOV
89
        return this.cpf;
×
90
    }
91

92
    public void setCpf(final String cpf) {
UNCOV
93
        if (this.cnpj != null) {
×
UNCOV
94
            throw new IllegalStateException("CNPJ ja foi setado");
×
95
        }
UNCOV
96
        DFStringValidador.cpf(cpf);
×
UNCOV
97
        this.cpf = cpf;
×
UNCOV
98
    }
×
99

100
    public String getChave() {
101
        return this.chave;
×
102
    }
103

104
    public void setChave(final String chave) {
UNCOV
105
        DFStringValidador.exatamente44N(chave, "Info Evento Conting\u00eancia EPEC Chave");
×
UNCOV
106
        this.chave = chave;
×
UNCOV
107
    }
×
108

109
    public ZonedDateTime getDataHoraEvento() {
UNCOV
110
        return this.dataHoraEvento;
×
111
    }
112

113
    public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) {
UNCOV
114
        this.dataHoraEvento = dataHoraEvento;
×
UNCOV
115
    }
×
116

117
    public String getCodigoEvento() {
118
        return this.codigoEvento;
×
119
    }
120

121
    public void setCodigoEvento(final String codigoEvento) {
UNCOV
122
        DFStringValidador.exatamente6N(codigoEvento, "Info Evento Conting\u00eancia EPEC Codigo");
×
UNCOV
123
        this.codigoEvento = codigoEvento;
×
UNCOV
124
    }
×
125

126
    public int getNumeroSequencialEvento() {
127
        return this.numeroSequencialEvento;
×
128
    }
129

130
    public void setNumeroSequencialEvento(final Integer numeroSequencialEvento) {
UNCOV
131
        DFIntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento");
×
UNCOV
132
        this.numeroSequencialEvento = numeroSequencialEvento;
×
UNCOV
133
    }
×
134

135
        public String getVersaoEvento() {
UNCOV
136
        return this.versaoEvento;
×
137
    }
138

139
    public void setVersaoEvento(String versaoEvento) {
UNCOV
140
                this.versaoEvento = versaoEvento;
×
UNCOV
141
        }
×
142

143
        public NFInfoEpec getEpec() {
UNCOV
144
                return epec;
×
145
        }
146

147
        public void setEpec(final NFInfoEpec epec) {
UNCOV
148
                this.epec = epec;
×
UNCOV
149
        }
×
150

151
    public DFUnidadeFederativa getOrgao() {
UNCOV
152
        return this.orgao;
×
153
    }
154
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc