@Experimental(value="This SPI can have it\'s signature changed in subsequent releases") public interface EnumTransformationStrategy
Modifier and Type | Method and Description |
---|---|
String |
getStrategyName()
The name of the strategy.
|
default void |
init(MapStructProcessingEnvironment processingEnvironment)
Initializes the enum transformation strategy with the MapStruct processing environment.
|
String |
transform(String value,
String configuration)
Transform the given value by using the given
configuration . |
default void init(MapStructProcessingEnvironment processingEnvironment)
processingEnvironment
- environment for facilitiesString getStrategyName()
null
String transform(String value, String configuration)
configuration
.value
- the value that should be transformedconfiguration
- the configuration that should be used for the transformationCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.