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

wmixvideo / nfe / #6582

17 Jul 2025 09:30PM UTC coverage: 51.231% (+24.2%) from 26.996%
#6582

push

web-flow
Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e (#1054)

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

14006 of 27339 relevant lines covered (51.23%)

0.51 hits per line

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

81.4
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoEmitente.java
1
package com.fincatto.documentofiscal.nfe310.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.nfe310.classes.NFEndereco;
5
import com.fincatto.documentofiscal.nfe310.classes.NFRegimeTributario;
6
import com.fincatto.documentofiscal.validadores.DFStringValidador;
7
import org.simpleframework.xml.Element;
8

9
public class NFNotaInfoEmitente extends DFBase {
1✔
10
    private static final long serialVersionUID = -2236869565066526162L;
11

12
    @Element(name = "CNPJ", required = false)
13
    private String cnpj;
14

15
    @Element(name = "CPF", required = false)
16
    private String cpf;
17
    
18
    @Element(name = "xNome")
19
    private String razaoSocial;
20

21
    @Element(name = "xFant", required = false)
22
    private String nomeFantasia;
23
    
24
    @Element(name = "enderEmit")
25
    private NFEndereco endereco;
26
    
27
    @Element(name = "IE")
28
    private String inscricaoEstadual;
29

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

33
    @Element(name = "IM", required = false)
34
    private String inscricaoMunicipal;
35

36
    @Element(name = "CNAE", required = false)
37
    private String classificacaoNacionalAtividadesEconomicas;
38
    
39
    @Element(name = "CRT")
40
    private NFRegimeTributario regimeTributario;
41

42
    public void setCnpj(final String cnpj) {
43
        if (this.cpf != null && cnpj != null) {
1✔
44
            throw new IllegalStateException("Nao pode setar CNPJ caso CPF esteja setado");
1✔
45
        }
46
        DFStringValidador.cnpj(cnpj);
1✔
47
        this.cnpj = cnpj;
1✔
48
    }
1✔
49

50
    public void setCpf(final String cpf) {
51
        if (this.cnpj != null && cpf != null) {
1✔
52
            throw new IllegalStateException("Nao pode setar CPF caso CNPJ esteja setado");
1✔
53
        }
54
        DFStringValidador.cpf(cpf);
1✔
55
        this.cpf = cpf;
1✔
56
    }
1✔
57

58
    public void setRazaoSocial(final String razaoSocial) {
59
        DFStringValidador.tamanho60(razaoSocial, "Razao Social Emitente");
1✔
60
        this.razaoSocial = razaoSocial;
1✔
61
    }
1✔
62

63
    public void setNomeFantasia(final String nomeFantasia) {
64
        DFStringValidador.tamanho60(nomeFantasia, "Nome Fantasia Emitente");
1✔
65
        this.nomeFantasia = nomeFantasia;
1✔
66
    }
1✔
67

68
    public void setEndereco(final NFEndereco endereco) {
69
        this.endereco = endereco;
1✔
70
    }
1✔
71

72
    public void setInscricaoEstadual(final String inscricaoEstadual) {
73
        DFStringValidador.inscricaoEstadual(inscricaoEstadual);
1✔
74
        this.inscricaoEstadual = inscricaoEstadual;
1✔
75
    }
1✔
76

77
    public void setInscricaoEstadualSubstituicaoTributaria(final String inscricaoEstadualSubstituicaoTributaria) {
78
        DFStringValidador.inscricaoEstadualSemIsencao(inscricaoEstadualSubstituicaoTributaria);
1✔
79
        this.inscricaoEstadualSubstituicaoTributaria = inscricaoEstadualSubstituicaoTributaria;
1✔
80
    }
1✔
81

82
    public void setInscricaoMunicipal(final String inscricaoMunicipal) {
83
        DFStringValidador.tamanho15(inscricaoMunicipal, "IM Emitente");
1✔
84
        this.inscricaoMunicipal = inscricaoMunicipal;
1✔
85
    }
1✔
86

87
    public void setClassificacaoNacionalAtividadesEconomicas(final String classificacaoNacionalAtividadesEconomicas) {
88
        DFStringValidador.exatamente7N(classificacaoNacionalAtividadesEconomicas, "CNAE Emitente");
1✔
89
        this.classificacaoNacionalAtividadesEconomicas = classificacaoNacionalAtividadesEconomicas;
1✔
90
    }
1✔
91

92
    public void setRegimeTributario(final NFRegimeTributario regimeTributario) {
93
        this.regimeTributario = regimeTributario;
1✔
94
    }
1✔
95

96
    public String getCnpj() {
97
        return this.cnpj;
1✔
98
    }
99

100
    public String getCpf() {
101
        return this.cpf;
1✔
102
    }
103

104
    public String getRazaoSocial() {
105
        return this.razaoSocial;
×
106
    }
107

108
    public String getNomeFantasia() {
109
        return this.nomeFantasia;
×
110
    }
111

112
    public NFEndereco getEndereco() {
113
        return this.endereco;
×
114
    }
115

116
    public String getInscricaoEstadual() {
117
        return this.inscricaoEstadual;
×
118
    }
119

120
    public String getInscricaoEstadualSubstituicaoTributaria() {
121
        return this.inscricaoEstadualSubstituicaoTributaria;
×
122
    }
123

124
    public String getInscricaoMunicipal() {
125
        return this.inscricaoMunicipal;
×
126
    }
127

128
    public String getClassificacaoNacionalAtividadesEconomicas() {
129
        return this.classificacaoNacionalAtividadesEconomicas;
×
130
    }
131

132
    public NFRegimeTributario getRegimeTributario() {
133
        return this.regimeTributario;
×
134
    }
135
}
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