Rev 489 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.nfe;
public enum TipoNotaFiscalDestino
{
DESTINO_DENTRO_DO_ESTADO_1
("1",
"DENTRO DO ESTADO"),
DESTINO_FORA_DO_ESTADO_2
("2",
"FORA DO ESTADO"),
DESTINO_FORA_DO_PAIS_3
("3",
"FORA DO PAÍS");
private String tipo
;
private String descricao
;
private TipoNotaFiscalDestino
(String tipo,
String descricao
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
}
public String getDescricao
() {
return descricao
;
}
public String getValor
() {
return tipo
;
}
public static TipoNotaFiscalDestino parse
(String tipo
) {
for (TipoNotaFiscalDestino item : TipoNotaFiscalDestino.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}