Package com.fasterxml.jackson.databind
Class PropertyNamingStrategies
- java.lang.Object
-
- com.fasterxml.jackson.databind.PropertyNamingStrategies
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class PropertyNamingStrategies extends java.lang.Object implements java.io.Serializable
Container for standardPropertyNamingStrategy
implementations and singleton instances.Added in Jackson 2.12 to resolve issue databind#2715.
- Since:
- 2.12
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyNamingStrategies.KebabCaseStrategy
Naming strategy similar toPropertyNamingStrategies.SnakeCaseStrategy
, but instead of underscores as separators, uses hyphens.static class
PropertyNamingStrategies.LowerCamelCaseStrategy
"No-operation" strategy that is equivalent to not specifying any strategy: will simply return suggested standard bean naming as-is.static class
PropertyNamingStrategies.LowerCaseStrategy
Simple strategy where external name simply only uses lower-case characters, and no separators.static class
PropertyNamingStrategies.LowerDotCaseStrategy
Naming strategy similar toPropertyNamingStrategies.KebabCaseStrategy
, but instead of hyphens as separators, uses dots.static class
PropertyNamingStrategies.NamingBase
Intermediate base class for simple implementationsstatic class
PropertyNamingStrategies.SnakeCaseStrategy
APropertyNamingStrategy
that translates typical camel case Java property names to lower case JSON element names, separated by underscores.static class
PropertyNamingStrategies.UpperCamelCaseStrategy
APropertyNamingStrategy
that translates typical camelCase Java property names to PascalCase JSON element names (i.e., with a capital first letter).static class
PropertyNamingStrategies.UpperSnakeCaseStrategy
APropertyNamingStrategy
that translates an input to the equivalent upper case snake case.
-
Field Summary
Fields Modifier and Type Field Description static PropertyNamingStrategy
KEBAB_CASE
Naming convention used in languages like Lisp, where words are in lower-case letters, separated by hyphens.static PropertyNamingStrategy
LOWER_CAMEL_CASE
Naming convention used in Java, where words other than first are capitalized and no separator is used between words.static PropertyNamingStrategy
LOWER_CASE
Naming convention in which all words of the logical name are in lower case, and no separator is used between words.static PropertyNamingStrategy
LOWER_DOT_CASE
Naming convention widely used as configuration properties name, where words are in lower-case letters, separated by dots.static PropertyNamingStrategy
SNAKE_CASE
Naming convention used in languages like C, where words are in lower-case letters, separated by underscores.static PropertyNamingStrategy
UPPER_CAMEL_CASE
Naming convention used in languages like Pascal, where all words are capitalized and no separator is used between words.static PropertyNamingStrategy
UPPER_SNAKE_CASE
Naming convention in which the words are in upper-case letters, separated by underscores.
-
Constructor Summary
Constructors Constructor Description PropertyNamingStrategies()
-
-
-
Field Detail
-
LOWER_CAMEL_CASE
public static final PropertyNamingStrategy LOWER_CAMEL_CASE
Naming convention used in Java, where words other than first are capitalized and no separator is used between words. Since this is the native Java naming convention, naming strategy will not do any transformation between names in data (JSON) and POJOS.Example external property names would be "numberValue", "namingStrategy", "theDefiniteProof".
-
UPPER_CAMEL_CASE
public static final PropertyNamingStrategy UPPER_CAMEL_CASE
Naming convention used in languages like Pascal, where all words are capitalized and no separator is used between words. SeePropertyNamingStrategies.UpperCamelCaseStrategy
for details.Example external property names would be "NumberValue", "NamingStrategy", "TheDefiniteProof".
-
SNAKE_CASE
public static final PropertyNamingStrategy SNAKE_CASE
Naming convention used in languages like C, where words are in lower-case letters, separated by underscores. SeePropertyNamingStrategies.SnakeCaseStrategy
for details.Example external property names would be "number_value", "naming_strategy", "the_definite_proof".
-
UPPER_SNAKE_CASE
public static final PropertyNamingStrategy UPPER_SNAKE_CASE
Naming convention in which the words are in upper-case letters, separated by underscores. SeePropertyNamingStrategies.UpperSnakeCaseStrategy
for details.- Since:
- 2.13
-
LOWER_CASE
public static final PropertyNamingStrategy LOWER_CASE
Naming convention in which all words of the logical name are in lower case, and no separator is used between words. SeePropertyNamingStrategies.LowerCaseStrategy
for details.Example external property names would be "numbervalue", "namingstrategy", "thedefiniteproof".
-
KEBAB_CASE
public static final PropertyNamingStrategy KEBAB_CASE
Naming convention used in languages like Lisp, where words are in lower-case letters, separated by hyphens. SeePropertyNamingStrategies.KebabCaseStrategy
for details.Example external property names would be "number-value", "naming-strategy", "the-definite-proof".
-
LOWER_DOT_CASE
public static final PropertyNamingStrategy LOWER_DOT_CASE
Naming convention widely used as configuration properties name, where words are in lower-case letters, separated by dots. SeePropertyNamingStrategies.LowerDotCaseStrategy
for details.Example external property names would be "number.value", "naming.strategy", "the.definite.proof".
-
-