T - field typepublic class SimpleFieldConverter<T> extends Object implements Converter<String,T>
Converter.ConversionException| Constructor and Description |
|---|
SimpleFieldConverter(FieldType<T> fieldType) |
| Modifier and Type | Method and Description |
|---|---|
T |
convertToModel(String value,
Class<? extends T> targetType,
Locale locale) |
String |
convertToPresentation(T value,
Class<? extends String> targetType,
Locale locale) |
Class<T> |
getModelType() |
Class<String> |
getPresentationType() |
public Class<String> getPresentationType()
getPresentationType in interface Converter<String,T>public Class<T> getModelType()
getModelType in interface Converter<String,T>public String convertToPresentation(T value, Class<? extends String> targetType, Locale locale)
convertToPresentation in interface Converter<String,T>Copyright © 2016. All rights reserved.