Package pro.cyberyon.mojet.types
Interface TypeHandler<T>
- Type Parameters:
T- type of field to handle
- All Known Implementing Classes:
AbstractTypeHandler
public interface TypeHandler<T>
Type handler contract to manage java types.
- Author:
- Guillaume CHAUVET
-
Method Summary
-
Method Details
-
accept
Check if we can handle the data type- Parameters:
type- to check- Returns:
trueif handlable
-
read
process an input string to a concrete field value- Parameters:
data- string of dataformat- of data, null otherwise- Returns:
- instance of the type
-
write
transform a field value to an output string- Parameters:
data- the type with dataformat- of data, null otherwise- Returns:
- string content of type
-