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

wmixvideo / nfe / #6266

21 Mar 2025 11:46AM UTC coverage: 52.671% (+25.7%) from 26.996%
#6266

push

luciano.antunes
Nota Fiscal Fácil

0 of 21 new or added lines in 2 files covered. (0.0%)

2924 existing lines in 401 files now uncovered.

14002 of 26584 relevant lines covered (52.67%)

0.53 hits per line

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

82.05
/src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoItemImpostoIPI.java
1
package com.fincatto.documentofiscal.nfe310.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.validadores.DFBigIntegerValidador;
5
import com.fincatto.documentofiscal.validadores.DFStringValidador;
6
import org.simpleframework.xml.Element;
7

8
import java.math.BigInteger;
9

10
public class NFNotaInfoItemImpostoIPI extends DFBase {
11
    private static final long serialVersionUID = 3354365738012803301L;
12

13
    @Element(name = "clEnq", required = false)
14
    private String classeEnquadramento;
15

16
    @Element(name = "CNPJProd", required = false)
17
    private String cnpjProdutor;
18

19
    @Element(name = "cSelo", required = false)
20
    private String codigoSelo;
21

22
    @Element(name = "qSelo", required = false)
23
    private BigInteger quantidadeSelo;
24
    
25
    @Element(name = "cEnq")
26
    private String codigoEnquadramento;
27

28
    @Element(name = "IPITrib", required = false)
29
    private NFNotaInfoItemImpostoIPITributado tributado;
30

31
    @Element(name = "IPINT", required = false)
32
    private NFNotaInfoItemImpostoIPINaoTributado naoTributado;
33

34
    public NFNotaInfoItemImpostoIPI() {
1✔
35
        this.classeEnquadramento = null;
1✔
36
        this.cnpjProdutor = null;
1✔
37
        this.codigoSelo = null;
1✔
38
        this.quantidadeSelo = null;
1✔
39
        this.codigoEnquadramento = null;
1✔
40
        this.tributado = null;
1✔
41
        this.naoTributado = null;
1✔
42
    }
1✔
43

44
    public void setClasseEnquadramento(final String classeEnquadramento) {
45
        DFStringValidador.exatamente5(classeEnquadramento, "Classe Enquadramento IPI Item");
1✔
46
        this.classeEnquadramento = classeEnquadramento;
1✔
47
    }
1✔
48

49
    public void setCnpjProdutor(final String cnpjProdutor) {
50
        DFStringValidador.cnpj(cnpjProdutor);
1✔
51
        this.cnpjProdutor = cnpjProdutor;
1✔
52
    }
1✔
53

54
    public void setCodigoSelo(final String codigoSelo) {
55
        DFStringValidador.tamanho60(codigoSelo, "Codigo Selo IPI Item");
1✔
56
        this.codigoSelo = codigoSelo;
1✔
57
    }
1✔
58

59
    public void setQuantidadeSelo(final BigInteger quantidadeSelo) {
60
        DFBigIntegerValidador.tamanho12(quantidadeSelo, "Quantidade Selo IPI Item");
1✔
61
        this.quantidadeSelo = quantidadeSelo;
1✔
62
    }
1✔
63

64
    public void setCodigoEnquadramento(final String codigoEnquadramento) {
65
        DFStringValidador.exatamente3(codigoEnquadramento, "Codigo Enquadramento IPI Item");
1✔
66
        this.codigoEnquadramento = codigoEnquadramento;
1✔
67
    }
1✔
68

69
    public void setTributado(final NFNotaInfoItemImpostoIPITributado tributado) {
70
        if (this.naoTributado != null) {
1✔
71
            throw new IllegalStateException("IPI tributado e nao tributado sao mutuamente exclusivos");
1✔
72
        }
73
        this.tributado = tributado;
1✔
74
    }
1✔
75

76
    public void setNaoTributado(final NFNotaInfoItemImpostoIPINaoTributado naoTributado) {
77
        if (this.tributado != null) {
1✔
78
            throw new IllegalStateException("IPI tributado e nao tributado sao mutuamente exclusivos");
1✔
79
        }
80
        this.naoTributado = naoTributado;
1✔
81
    }
1✔
82

83
    public String getClasseEnquadramento() {
UNCOV
84
        return this.classeEnquadramento;
×
85
    }
86

87
    public String getCnpjProdutor() {
UNCOV
88
        return this.cnpjProdutor;
×
89
    }
90

91
    public String getCodigoSelo() {
UNCOV
92
        return this.codigoSelo;
×
93
    }
94

95
    public BigInteger getQuantidadeSelo() {
UNCOV
96
        return this.quantidadeSelo;
×
97
    }
98

99
    public String getCodigoEnquadramento() {
UNCOV
100
        return this.codigoEnquadramento;
×
101
    }
102

103
    public NFNotaInfoItemImpostoIPITributado getTributado() {
UNCOV
104
        return this.tributado;
×
105
    }
106

107
    public NFNotaInfoItemImpostoIPINaoTributado getNaoTributado() {
UNCOV
108
        return this.naoTributado;
×
109
    }
110
}
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