- 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:
enumName- the name of the enum value to translateconfig- the mapper configurationcls- the Enum class- Returns:
- the external property name that corresponds to the given
enumNameaccording to the implementation of thisEnumNamingStrategy.
-