Interface TypeConverter
- All Known Implementing Classes:
OptionalTypeConverter
public interface TypeConverter
A contract for a converter to convert between an entity view model type and an underlying type.
- Since:
- 1.6.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and Type Method Description voidaddRegistrations(Map<String,Map<String,TypeConverter>> converters)Add the converter registrations for this converter.StringgetUnderlyingType(DeclaredType owningClass, TypeMirror declaredType, Context context)Extract the underlying type from the declared type.
-
Method Details
-
addRegistrations
Add the converter registrations for this converter.- Parameters:
converters- The map to register to
-
getUnderlyingType
Extract the underlying type from the declared type. The owning class is the concrete entity view class which contains a field or method of the declared type.- Parameters:
owningClass- The class owning the declared typedeclaredType- The declared type as present in the entity view modelcontext- The annotation processor context- Returns:
- The actual underlying type
-