Class AbstractTypeHandler<T>
java.lang.Object
pro.cyberyon.mojet.types.AbstractTypeHandler<T>
- Type Parameters:
T- type of pojo record
- All Implemented Interfaces:
TypeHandler<T>
partial implementation to every concret TypeHandler.
- Author:
- Guillaume CHAUVET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanCheck if we can handle the data typeprotected abstract TRead a non null dataprotected abstract StringWrite a non null dataprotected abstract booleanCheck type of field (or nested type array)final Tprocess an input string to a concrete field valuetransform a field value to an output string
-
Constructor Details
-
AbstractTypeHandler
public AbstractTypeHandler()
-
-
Method Details
-
accept
Description copied from interface:TypeHandlerCheck if we can handle the data type- Specified by:
acceptin interfaceTypeHandler<T>- Parameters:
type- to check- Returns:
trueif handlable
-
read
Description copied from interface:TypeHandlerprocess an input string to a concrete field value- Specified by:
readin interfaceTypeHandler<T>- Parameters:
data- string of dataformat- of data, null otherwise- Returns:
- instance of the type
-
write
Description copied from interface:TypeHandlertransform a field value to an output string- Specified by:
writein interfaceTypeHandler<T>- Parameters:
data- the type with dataformat- of data, null otherwise- Returns:
- string content of type
-
isAccept
Check type of field (or nested type array)- Parameters:
type- non primitive class type to check- Returns:
- positive if accepted
-
doRead
-
doWrite
-