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
- Since:
- 1.4
- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description StripPrefixEnumTransformationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getStrategyName()
The name of the strategy.String
transform(String value, String configuration)
Transform the given value by using the givenconfiguration
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mapstruct.ap.spi.EnumTransformationStrategy
init
-
-
-
-
Method Detail
-
getStrategyName
public String getStrategyName()
Description copied from interface:EnumTransformationStrategy
The name of the strategy.- Specified by:
getStrategyName
in interfaceEnumTransformationStrategy
- Returns:
- the name of the strategy, never
null
-
transform
public String transform(String value, String configuration)
Description copied from interface:EnumTransformationStrategy
Transform the given value by using the givenconfiguration
.- Specified by:
transform
in 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
-
-