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

Method Summary
 Object convert(String field, Action action)
          Converts a input field from this action.
 

Method Detail

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 © 2013. All Rights Reserved.