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 Details

    • addRegistrations

      void addRegistrations​(Map<String,​Map<String,​TypeConverter>> converters)
      Add the converter registrations for this converter.
      Parameters:
      converters - The map to register to
    • getUnderlyingType

      String getUnderlyingType​(DeclaredType owningClass, TypeMirror declaredType, Context context)
      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 type
      declaredType - The declared type as present in the entity view model
      context - The annotation processor context
      Returns:
      The actual underlying type