Interface EnumNamingStrategy
- All Known Implementing Classes:
EnumNamingStrategies.DelegatingEnumNamingStrategy, EnumNamingStrategies.KebabCaseStrategy, EnumNamingStrategies.LowerCamelCaseStrategy, EnumNamingStrategies.LowerCaseStrategy, EnumNamingStrategies.LowerDotCaseStrategy, EnumNamingStrategies.SnakeCaseStrategy, EnumNamingStrategies.UpperCamelCaseStrategy, EnumNamingStrategies.UpperSnakeCaseStrategy
public interface EnumNamingStrategy
Defines how the string representation of an enum is converted into an external property name for mapping
during deserialization.
-
Method Summary
Modifier and TypeMethodDescriptionconvertEnumToExternalName(MapperConfig<?> config, AnnotatedClass cls, String enumName) Translates the givenenumNameinto an external property name according to the implementation of thisEnumNamingStrategy.
-
Method Details
-
convertEnumToExternalName
Translates the givenenumNameinto an external property name according to the implementation of thisEnumNamingStrategy.- Parameters:
config- the mapper configurationcls- the Enum classenumName- the name of the enum value to translate- Returns:
- the external property name that corresponds to the given
enumNameaccording to the implementation of thisEnumNamingStrategy.
-