Interface EnumTransformationStrategy

    • Method Detail

      • init

        default void init​(MapStructProcessingEnvironment processingEnvironment)
        Initializes the enum transformation strategy with the MapStruct processing environment.
        Parameters:
        processingEnvironment - environment for facilities
      • getStrategyName

        String getStrategyName()
        The name of the strategy.
        Returns:
        the name of the strategy, never null
      • transform

        String transform​(String value,
                         String configuration)
        Transform the given value by using the given configuration.
        Parameters:
        value - the value that should be transformed
        configuration - the configuration that should be used for the transformation
        Returns:
        the transformed value after applying the configuration