Class KebabCaseStrategy

java.lang.Object
io.micronaut.serde.config.naming.KebabCaseStrategy
All Implemented Interfaces:
PropertyNamingStrategy

public final class KebabCaseStrategy extends Object implements PropertyNamingStrategy
kebab case strategy.
  • 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 interface PropertyNamingStrategy
      Parameters:
      element - The annotated element to translate
      Returns:
      The translated name