public static class EnumNamingStrategies.LowerDotCaseStrategy extends EnumNamingStrategies.DelegatingEnumNamingStrategy
An implementation of EnumNamingStrategy
that converts enum names in the typical upper
snake case format to lower dot case format.
This implementation first normalizes to lower camel case using (see EnumNamingStrategies.LowerCamelCaseStrategy
for details)
and then uses PropertyNamingStrategies.LowerDotCaseStrategy
to finish converting the name.
WARNING: Naming conversion conflicts caused by underscore usage should be handled by client.
e.g. Both PEANUT_BUTTER
, PEANUT__BUTTER
are converted into "peanut.butter".
And "peanut.butter" will be deserialized into enum with smaller Enum.ordinal()
value.
This results in the following example conversions:
Modifier and Type | Field and Description |
---|---|
static EnumNamingStrategies.LowerDotCaseStrategy |
INSTANCE
An instance of
EnumNamingStrategies.LowerDotCaseStrategy for reuse. |
Modifier | Constructor and Description |
---|---|
protected |
LowerDotCaseStrategy() |
convertEnumToExternalName, toBeanName
public static final EnumNamingStrategies.LowerDotCaseStrategy INSTANCE
EnumNamingStrategies.LowerDotCaseStrategy
for reuse.Copyright © 2008–2025 FasterXML. All rights reserved.