Class OptionalTypeConverter
java.lang.Object
com.blazebit.persistence.view.processor.convert.OptionalTypeConverter
- All Implemented Interfaces:
TypeConverter
public class OptionalTypeConverter extends Object implements TypeConverter
- Since:
- 1.6.0
- Author:
- Christian Beikov
-
Constructor Summary
Constructors Constructor Description OptionalTypeConverter() -
Method Summary
Modifier and Type Method Description voidaddRegistrations(Map<String,Map<String,TypeConverter>> converters)Add the converter registrations for this converter.StringgetUnderlyingType(DeclaredType owningType, TypeMirror declaredTypeMirror, Context context)Extract the underlying type from the declared type.
-
Constructor Details
-
OptionalTypeConverter
public OptionalTypeConverter()
-
-
Method Details
-
addRegistrations
Description copied from interface:TypeConverterAdd the converter registrations for this converter.- Specified by:
addRegistrationsin interfaceTypeConverter- Parameters:
converters- The map to register to
-
getUnderlyingType
public String getUnderlyingType(DeclaredType owningType, TypeMirror declaredTypeMirror, Context context)Description copied from interface:TypeConverterExtract 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.- Specified by:
getUnderlyingTypein interfaceTypeConverter- Parameters:
owningType- The class owning the declared typedeclaredTypeMirror- The declared type as present in the entity view modelcontext- The annotation processor context- Returns:
- The actual underlying type
-