public abstract class PropertyNamingStrategies extends Object implements Serializable
PropertyNamingStrategy
implementations
and singleton instances.
Added in Jackson 2.12 to resolve issue databind#2715.
Modifier and Type | Class and Description |
---|---|
static class |
PropertyNamingStrategies.KebabCaseStrategy
Naming strategy similar to
PropertyNamingStrategies.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 to
PropertyNamingStrategies.KebabCaseStrategy ,
but instead of hyphens
as separators, uses dots. |
static class |
PropertyNamingStrategies.NamingBase
Intermediate base class for simple implementations
|
static class |
PropertyNamingStrategies.SnakeCaseStrategy
A
PropertyNamingStrategy that translates typical camel case Java
property names to lower case JSON element names, separated by
underscores. |
static class |
PropertyNamingStrategies.UpperCamelCaseStrategy
A
PropertyNamingStrategy that translates typical camelCase Java
property names to PascalCase JSON element names (i.e., with a capital
first letter). |
static class |
PropertyNamingStrategies.UpperSnakeCaseStrategy
A
PropertyNamingStrategy that translates an input to the equivalent upper case snake
case. |
Modifier and Type | Field and 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 and Description |
---|
PropertyNamingStrategies() |
public static final PropertyNamingStrategy LOWER_CAMEL_CASE
Example external property names would be "numberValue", "namingStrategy", "theDefiniteProof".
public static final PropertyNamingStrategy UPPER_CAMEL_CASE
PropertyNamingStrategies.UpperCamelCaseStrategy
for details.
Example external property names would be "NumberValue", "NamingStrategy", "TheDefiniteProof".
public static final PropertyNamingStrategy SNAKE_CASE
PropertyNamingStrategies.SnakeCaseStrategy
for details.
Example external property names would be "number_value", "naming_strategy", "the_definite_proof".
public static final PropertyNamingStrategy UPPER_SNAKE_CASE
PropertyNamingStrategies.UpperSnakeCaseStrategy
for details.public static final PropertyNamingStrategy LOWER_CASE
PropertyNamingStrategies.LowerCaseStrategy
for details.
Example external property names would be "numbervalue", "namingstrategy", "thedefiniteproof".
public static final PropertyNamingStrategy KEBAB_CASE
PropertyNamingStrategies.KebabCaseStrategy
for details.
Example external property names would be "number-value", "naming-strategy", "the-definite-proof".
public static final PropertyNamingStrategy LOWER_DOT_CASE
PropertyNamingStrategies.LowerDotCaseStrategy
for details.
Example external property names would be "number.value", "naming.strategy", "the.definite.proof".
Copyright © 2008–2022 FasterXML. All rights reserved.