Rev 311 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.tipos;
public enum TipoPersonalizacao
{
ESTAMPA
("E",
"ESTAMPA ESPAĆO CASE",
"+ R$5,00",
5.0),
SIMPLES
("S",
"SIMPLES/NOME NA ESTAMPA EC",
"+ R$15,00",
15.0),
COMPLETA
("C",
"COMPLETA (ARTE COM +70% DA CAPA)",
"+ R$20,00",
20.0);
private String tipo
;
private String descricao
;
private String descricaoValorAcrescido
;
private Double valorAcrescido
;
private TipoPersonalizacao
(String tipo,
String descricao,
String descricaoValorAcrescido,
Double valorAcrescido
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
this.
descricaoValorAcrescido = descricaoValorAcrescido
;
this.
valorAcrescido = valorAcrescido
;
}
public String getDescricao
() {
return descricao
;
}
public String getValor
() {
return tipo
;
}
public String getDescricaoValorAcrescido
() {
return descricaoValorAcrescido
;
}
public Double getValorAcrescido
() {
return valorAcrescido
;
}
public static TipoPersonalizacao parse
(String tipo
) {
for (TipoPersonalizacao item : TipoPersonalizacao.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}