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
 java.lang.Object convert(java.lang.String field, Action action)
          Converts a input field from this action.
 

Method Detail

convert

java.lang.Object convert(java.lang.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 © 2005 Mentawai Team. All Rights Reserved.