Package org.mapstruct.ap.spi
Class StripPrefixEnumTransformationStrategy
java.lang.Object
org.mapstruct.ap.spi.StripPrefixEnumTransformationStrategy
- All Implemented Interfaces:
EnumTransformationStrategy
public class StripPrefixEnumTransformationStrategy
extends Object
implements EnumTransformationStrategy
An
EnumTransformationStrategy that strips a prefix from the enum value.- Since:
- 1.4
- Author:
- Filip Hrisafov
-
Constructor Details
-
StripPrefixEnumTransformationStrategy
public StripPrefixEnumTransformationStrategy()
-
-
Method Details
-
getStrategyName
Description copied from interface:EnumTransformationStrategyThe name of the strategy.- Specified by:
getStrategyNamein interfaceEnumTransformationStrategy- Returns:
- the name of the strategy, never
null
-
transform
Description copied from interface:EnumTransformationStrategyTransform the given value by using the givenconfiguration.- Specified by:
transformin interfaceEnumTransformationStrategy- Parameters:
value- the value that should be transformedconfiguration- the configuration that should be used for the transformation- Returns:
- the transformed value after applying the configuration
-