Class OptionNameModifierSupport

java.lang.Object
org.springframework.shell.command.support.OptionNameModifierSupport

public abstract class OptionNameModifierSupport extends Object
Support facilities for CommandRegistration.OptionNameModifier providing common naming types.
  • Field Details

  • Constructor Details

    • OptionNameModifierSupport

      public OptionNameModifierSupport()
  • Method Details

    • toCamelCase

      public static String toCamelCase(String name)
      Convert given name to camelCase.
      Parameters:
      name - the name to modify
      Returns:
      a modified name as camel case
    • toSnakeCase

      public static String toSnakeCase(String name)
      Convert given name to snake_case.
      Parameters:
      name - the name to modify
      Returns:
      a modified name as snake case
    • toKebabCase

      public static String toKebabCase(String name)
      Convert given name to kebab-case.
      Parameters:
      name - the name to modify
      Returns:
      a modified name as kebab case
    • toPascalCase

      public static String toPascalCase(String name)
      Convert given name to PascalCase.
      Parameters:
      name - the name to modify
      Returns:
      a modified name as pascal case