java.lang.Object
org.mentawai.converter.BasicConverter
- All Implemented Interfaces:
- Converter
- Direct Known Subclasses:
- IntegerConverter
- public abstract class BasicConverter
- extends java.lang.Object
- implements Converter
The simplest form of a converter that takes an object and convert it to another one.
You should override this class to implement your own converters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicConverter
public BasicConverter()
convert
public abstract java.lang.Object convert(java.lang.Object value)
throws ConversionException
- Converts an object to another one.
Implement this method with the convertion logic.
convert
public java.lang.Object convert(java.lang.String field,
org.mentawai.core.Action action)
throws ConversionException
- Description copied from interface:
Converter
- Converts a input field from this action.
- Specified by:
convert in interface Converter