public abstract class LocaleConverter extends Object implements Converter
| Constructor and Description |
|---|
LocaleConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNull()
Override this method if you want to convert null (not-present) values.
|
abstract Object |
convert(Object value,
Locale loc)
Convert an object to another one using the use locale.
|
Object |
convert(String field,
Action action)
Converts a input field from this action.
|
public abstract Object convert(Object value, Locale loc) throws ConversionException
value - The object to convert.loc - The user locale to use in the convertion.ConversionException - if the conversion fail for any reason.protected boolean allowNull()
public Object convert(String field, Action action) throws ConversionException
Converterconvert in interface Converterfield - The field to convert.action - The action from where to get the field.ConversionException - if the field value cannot be converted.Copyright © 2015. All Rights Reserved.