Enum NamingStrategyImpls
- java.lang.Object
-
- java.lang.Enum<NamingStrategyImpls>
-
- com.fasterxml.jackson.databind.util.NamingStrategyImpls
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NamingStrategyImpls>
public enum NamingStrategyImpls extends java.lang.Enum<NamingStrategyImpls>
Container for standard naming strategy implementations, specifically used by property naming strategies (seePropertyNamingStrategies) and enum naming strategies (seeEnumNamingStrategies).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEBAB_CASEbeanName->bean-nameLOWER_CAMEL_CASEbeanName->beanNameLOWER_CASEbeanName->beannameLOWER_DOT_CASEbeanName->bean.nameSNAKE_CASEbeanName->bean_nameUPPER_CAMEL_CASEbeanName->BeanNameUPPER_SNAKE_CASEbeanName->BEAN_NAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Stringtranslate(java.lang.String beanName)static NamingStrategyImplsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NamingStrategyImpls[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOWER_CAMEL_CASE
public static final NamingStrategyImpls LOWER_CAMEL_CASE
beanName->beanName
-
UPPER_CAMEL_CASE
public static final NamingStrategyImpls UPPER_CAMEL_CASE
beanName->BeanName
-
SNAKE_CASE
public static final NamingStrategyImpls SNAKE_CASE
beanName->bean_name
-
UPPER_SNAKE_CASE
public static final NamingStrategyImpls UPPER_SNAKE_CASE
beanName->BEAN_NAME
-
LOWER_CASE
public static final NamingStrategyImpls LOWER_CASE
beanName->beanname
-
KEBAB_CASE
public static final NamingStrategyImpls KEBAB_CASE
beanName->bean-name
-
LOWER_DOT_CASE
public static final NamingStrategyImpls LOWER_DOT_CASE
beanName->bean.name
-
-
Method Detail
-
values
public static NamingStrategyImpls[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NamingStrategyImpls c : NamingStrategyImpls.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamingStrategyImpls valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
translate
public abstract java.lang.String translate(java.lang.String beanName)
-
-