Blame |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.tipos;
public enum TipoInscricaoEstadual
{
CONTRIBUINTE_ICMS_1
("C",
"CONTRIBUINTE ICMS",
"1"),
CONTRIBUINTE_ISENTO_2
("I",
"CONTRIBUINTE ISENTO",
"2"),
NAO_CONTRIBUINTE_9
("N",
"NÃO CONTRIBUINTE",
"3");
private String tipo
;
private String descricao
;
private String nomenclaturaNotaFiscal
;
private TipoInscricaoEstadual
(String tipo,
String descricao,
String nomenclaturaNotaFiscal
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
this.
nomenclaturaNotaFiscal = nomenclaturaNotaFiscal
;
}
public String getDescricao
() {
return descricao
;
}
public String getValor
() {
return tipo
;
}
public String getNomenclaturaNotaFiscal
() {
return nomenclaturaNotaFiscal
;
}
public static TipoInscricaoEstadual parse
(String tipo
) {
for (TipoInscricaoEstadual item : TipoInscricaoEstadual.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}