org.mentawai.converter
Interface Converter
- All Known Implementing Classes:
- BasicConverter, BooleanConverter, DateConverter, DoubleConverter, IntegerConverter, LocaleConverter, NullConverter, SQLToUtilDataConverter, SQLToUtilDateConverter, UtilToSQLDateConverter
public interface Converter
This is a simple interface for field convertion.
Check one of its implementations that comes with Mentawai before implementing this class.
- Author:
- Sergio Oliveira
convert
Object convert(String field,
Action action)
throws ConversionException
- Converts a input field from this action.
- Parameters:
field - The field to convert.action - The action from where to get the field.
- Returns:
- The field value converted.
- Throws:
ConversionException - if the field value cannot be converted.
Copyright © 2012. All Rights Reserved.