public Object getValueObject(String textRepresentation) { if (getClazz().equals(Double.class)) { return Double.parseDouble(textRepresentation); } else if (getClazz().equals(Integer.class)) { return Integer.parseInt(textRepresentation); } else if (getClazz().equals(Long.class)) { return Long.parseLong(textRepresentation); } else if (getClazz().equals(String.class)) { return textRepresentation; } else return textRepresentation; }