Rev 106 | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 106 | espaco | 1 | package br.com.ec.controller.converters; |
| 2 | |||
| 3 | import br.com.ec.domain.model.IndicadorDRE; |
||
| 195 | espaco | 4 | import br.com.ec.web.converters.ConversorGeneric; |
| 106 | espaco | 5 | |
| 6 | public class ConverterIndicadorDRE extends ConversorGeneric { |
||
| 7 | |||
| 8 | protected static final String key = "jsf.EntityConverter.IndicadorDRE"; |
||
| 9 | |||
| 10 | protected String getID(Object value) { |
||
| 11 | if (value == null) { |
||
| 12 | return ""; |
||
| 13 | } |
||
| 14 | return ((IndicadorDRE) value).getCodigo().toString(); |
||
| 15 | } |
||
| 16 | |||
| 17 | @Override |
||
| 18 | protected String getKey() { |
||
| 19 | return key; |
||
| 20 | } |
||
| 21 | |||
| 22 | } |