public static class PropertyNamingStrategies.KebabCaseStrategy extends PropertyNamingStrategies.NamingBase
PropertyNamingStrategies.SnakeCaseStrategy
,
but instead of underscores
as separators, uses hyphens. Naming convention traditionally used for languages
like Lisp.PropertyNamingStrategy.KebabCaseStrategy, PropertyNamingStrategy.LowerCaseStrategy, PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.LowerDotCaseStrategy, PropertyNamingStrategy.PascalCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase, PropertyNamingStrategy.SnakeCaseStrategy, PropertyNamingStrategy.UpperCamelCaseStrategy
Modifier and Type | Field and Description |
---|---|
static PropertyNamingStrategies.KebabCaseStrategy |
INSTANCE |
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES, KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, LOWER_DOT_CASE, PASCAL_CASE_TO_CAMEL_CASE, SNAKE_CASE, UPPER_CAMEL_CASE
Constructor and Description |
---|
KebabCaseStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
translate(String input) |
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod, translateLowerCaseWithSeparator
public static final PropertyNamingStrategies.KebabCaseStrategy INSTANCE
public String translate(String input)
translate
in class PropertyNamingStrategies.NamingBase
Copyright © 2008–2024 FasterXML. All rights reserved.