com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaProcessada Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nfe Show documentation
Show all versions of nfe Show documentation
Biblioteca de comunicacao de nota fiscal eletronica brasileira
package com.fincatto.documentofiscal.nfe400.classes.nota;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.nfe400.classes.NFProtocolo;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;
import java.math.BigDecimal;
@Root(name = "nfeProc")
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
public class NFNotaProcessada extends DFBase {
private static final long serialVersionUID = 6979476565566044621L;
@Attribute(name = "versao")
private String versao;
@Attribute(name = "schemaLocation", required = false)
private String schemaLocation;
@Element(name = "NFe")
private NFNota nota;
@Element(name = "protNFe")
private NFProtocolo protocolo;
public NFNota getNota() {
return this.nota;
}
public String getVersao() {
return this.versao;
}
public NFProtocolo getProtocolo() {
return this.protocolo;
}
public void setNota(final NFNota nota) {
this.nota = nota;
}
public void setProtocolo(final NFProtocolo protocolo) {
this.protocolo = protocolo;
}
public void setVersao(final BigDecimal versao) {
this.versao = DFBigDecimalValidador.tamanho4Com2CasasDecimais(versao, "Versao Nota Processada");
}
public String getSchemaLocation() {
return this.schemaLocation;
}
public void setSchemaLocation(final String schemaLocation) {
this.schemaLocation = schemaLocation;
}
}