Class OptionNameModifierSupport
java.lang.Object
org.springframework.shell.command.support.OptionNameModifierSupport
Support facilities for
CommandRegistration.OptionNameModifier
providing common naming
types.-
Field Summary
Modifier and TypeFieldDescriptionstatic final CommandRegistration.OptionNameModifier
static final CommandRegistration.OptionNameModifier
static final CommandRegistration.OptionNameModifier
static final CommandRegistration.OptionNameModifier
static final CommandRegistration.OptionNameModifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toCamelCase
(String name) Convert given name tocamelCase
.static String
toKebabCase
(String name) Convert given name tokebab-case
.static String
toPascalCase
(String name) Convert given name toPascalCase
.static String
toSnakeCase
(String name) Convert given name tosnake_case
.
-
Field Details
-
NOOP
-
CAMELCASE
-
SNAKECASE
-
KEBABCASE
-
PASCALCASE
-
-
Constructor Details
-
OptionNameModifierSupport
public OptionNameModifierSupport()
-
-
Method Details
-
toCamelCase
Convert given name tocamelCase
.- Parameters:
name
- the name to modify- Returns:
- a modified name as camel case
-
toSnakeCase
Convert given name tosnake_case
.- Parameters:
name
- the name to modify- Returns:
- a modified name as snake case
-
toKebabCase
Convert given name tokebab-case
.- Parameters:
name
- the name to modify- Returns:
- a modified name as kebab case
-
toPascalCase
Convert given name toPascalCase
.- Parameters:
name
- the name to modify- Returns:
- a modified name as pascal case
-