Package io.micronaut.serde.config.naming
Class KebabCaseStrategy
java.lang.Object
io.micronaut.serde.config.naming.KebabCaseStrategy
- All Implemented Interfaces:
PropertyNamingStrategy
kebab case strategy.
-
Field Summary
Fields inherited from interface io.micronaut.serde.config.naming.PropertyNamingStrategy
IDENTITY, KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, LOWER_DOT_CASE, SNAKE_CASE, UPPER_CAMEL_CASE, UPPER_CAMEL_CASE_WITH_SPACES
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
KebabCaseStrategy
public KebabCaseStrategy()
-
-
Method Details
-
translate
@NonNull public @NonNull String translate(@NonNull @NonNull io.micronaut.core.annotation.AnnotatedElement element) Description copied from interface:PropertyNamingStrategy
Translate the given name into the desired format.- Specified by:
translate
in interfacePropertyNamingStrategy
- Parameters:
element
- The annotated element to translate- Returns:
- The translated name
-