![JAR search and dependency download from the Maven repository](/logo.png)
com.fincatto.documentofiscal.nfe310.classes.nota.NFNotaInfoTransportador 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.nfe310.classes.nota;
import org.simpleframework.xml.Element;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.DFUnidadeFederativa;
import com.fincatto.documentofiscal.validadores.DFStringValidador;
public class NFNotaInfoTransportador extends DFBase {
private static final long serialVersionUID = -6810459713123616929L;
@Element(name = "CNPJ", required = false)
private String cnpj;
@Element(name = "CPF", required = false)
private String cpf;
@Element(name = "xNome", required = false)
private String razaoSocial;
@Element(name = "IE", required = false)
private String inscricaoEstadual;
@Element(name = "xEnder", required = false)
private String enderecoComplemento;
@Element(name = "xMun", required = false)
private String nomeMunicipio;
@Element(name = "UF", required = false)
private String uf;
public void setEnderecoComplemento(final String enderecoComplemento) {
this.enderecoComplemento = enderecoComplemento;
}
public void setCnpj(final String cnpj) {
if (this.cpf != null) {
throw new IllegalStateException("Nao pode ter CPF e CNPJ ao mesmo tempo");
}
DFStringValidador.cnpj(cnpj);
this.cnpj = cnpj;
}
public void setCpf(final String cpf) {
if (this.cnpj != null) {
throw new IllegalStateException("Nao pode ter CPF e CNPJ ao mesmo tempo");
}
DFStringValidador.cpf(cpf);
this.cpf = cpf;
}
public void setRazaoSocial(final String razaoSocial) {
DFStringValidador.tamanho60(razaoSocial, "Razao Social Transportador");
this.razaoSocial = razaoSocial;
}
public void setInscricaoEstadual(final String inscricaoEstadual) {
DFStringValidador.inscricaoEstadual(inscricaoEstadual);
this.inscricaoEstadual = inscricaoEstadual;
}
public void setNomeMunicipio(final String nomeMunicipio) {
DFStringValidador.tamanho60(nomeMunicipio, "Nome Municipio Transportador");
this.nomeMunicipio = nomeMunicipio;
}
public void setUf(final DFUnidadeFederativa uf) {
this.uf = uf.getCodigo();
}
public String getCnpj() {
return this.cnpj;
}
public String getCpf() {
return this.cpf;
}
public String getRazaoSocial() {
return this.razaoSocial;
}
public String getInscricaoEstadual() {
return this.inscricaoEstadual;
}
public String getEnderecoComplemento() {
return this.enderecoComplemento;
}
public String getNomeMunicipio() {
return this.nomeMunicipio;
}
public String getUf() {
return this.uf;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy