Enum Class NamingStrategyImpls
- All Implemented Interfaces:
Serializable, Comparable<NamingStrategyImpls>, Constable
Container for standard naming strategy implementations, specifically
used by property naming strategies (see
PropertyNamingStrategies)
and enum naming strategies (see EnumNamingStrategies).-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionbeanName->bean-namebeanName->beanNamebeanName->beannamebeanName->bean.namebeanName->bean_namebeanName->BeanNamebeanName->BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String(package private) static StringtranslateLowerCaseWithSeparator(String beanName, char separator) Helper method to share implementation between snake and dotted case.static NamingStrategyImplsReturns the enum constant of this class with the specified name.static NamingStrategyImpls[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOWER_CAMEL_CASE
beanName->beanName -
UPPER_CAMEL_CASE
beanName->BeanName -
SNAKE_CASE
beanName->bean_name -
UPPER_SNAKE_CASE
beanName->BEAN_NAME -
LOWER_CASE
beanName->beanname -
KEBAB_CASE
beanName->bean-name -
LOWER_DOT_CASE
beanName->bean.name
-
-
Constructor Details
-
NamingStrategyImpls
private NamingStrategyImpls()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
translate
-
translateLowerCaseWithSeparator
-