Blame |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.tipos;
public enum TipoSituacaoPedidoResumido
{
NOVO
("NO",
"NOVO",
"gray"),
PEDIDO_EM_TRANSFERENCIA
("PT",
"PEDIDO EM TRANSFERÊNCIA",
"blue"),
AGUARDANDO_FINALIZACAO_CLIENTE
("AF",
"AGUARDANDO FINALIZAÇÃO PELO CLIENTE",
"#3399CC");
private String tipo
;
private String descricao
;
private String cor
;
private TipoSituacaoPedidoResumido
(String tipo,
String descricao,
String cor
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
this.
cor = cor
;
}
public String getDescricao
() {
return descricao
;
}
public String getValor
() {
return tipo
;
}
public String getCor
() {
return cor
;
}
public static TipoSituacaoPedidoResumido parse
(String tipo
) {
for (TipoSituacaoPedidoResumido item : TipoSituacaoPedidoResumido.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}