Package com.fasterxml.jackson.databind
Interface EnumNamingStrategy
-
- All Known Implementing Classes:
EnumNamingStrategies.CamelCaseStrategy
public interface EnumNamingStrategyDefines how the string representation of an enum is converted into an external property name for mapping during deserialization.- Since:
- 2.15
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringconvertEnumToExternalName(java.lang.String enumName)Translates the givenenumNameinto an external property name according to the implementation of thisEnumNamingStrategy.
-
-
-
Method Detail
-
convertEnumToExternalName
java.lang.String convertEnumToExternalName(java.lang.String enumName)
Translates the givenenumNameinto an external property name according to the implementation of thisEnumNamingStrategy.- Parameters:
enumName- the name of the enum value to translate- Returns:
- the external property name that corresponds to the given
enumNameaccording to the implementation of thisEnumNamingStrategy. - Since:
- 2.15
-
-