public abstract class BasicConverter extends Object implements Converter
| Constructor and Description |
|---|
BasicConverter() |
| 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)
Converts an object to another one.
|
Object |
convert(String field,
Action action)
Converts a input field from this action.
|
public abstract Object convert(Object value) throws ConversionException
value - The object to convert.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.