Package com.fasterxml.jackson.databind
Class PropertyNamingStrategies.UpperCamelCaseStrategy
- java.lang.Object
-
- com.fasterxml.jackson.databind.PropertyNamingStrategy
-
- com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase
-
- com.fasterxml.jackson.databind.PropertyNamingStrategies.UpperCamelCaseStrategy
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PropertyNamingStrategies
public static class PropertyNamingStrategies.UpperCamelCaseStrategy extends PropertyNamingStrategies.NamingBase
APropertyNamingStrategy
that translates typical camelCase Java property names to PascalCase JSON element names (i.e., with a capital first letter). In particular, the following translations are applied by this PropertyNamingStrategy.- The first lower-case letter in the Java property name is translated into its equivalent upper-case representation.
- "userName" is translated to "UserName"
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
PropertyNamingStrategy.KebabCaseStrategy, PropertyNamingStrategy.LowerCaseStrategy, PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.LowerDotCaseStrategy, PropertyNamingStrategy.PascalCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase, PropertyNamingStrategy.SnakeCaseStrategy, PropertyNamingStrategy.UpperCamelCaseStrategy
-
-
Field Summary
-
Fields inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategy
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES, KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, LOWER_DOT_CASE, PASCAL_CASE_TO_CAMEL_CASE, SNAKE_CASE, UPPER_CAMEL_CASE
-
-
Constructor Summary
Constructors Constructor Description UpperCamelCaseStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
translate(java.lang.String input)
Converts camelCase to PascalCase For example, "userName" would be converted to "UserName".-
Methods inherited from class com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod
-
-
-
-
Method Detail
-
translate
public java.lang.String translate(java.lang.String input)
Converts camelCase to PascalCase For example, "userName" would be converted to "UserName".- Specified by:
translate
in classPropertyNamingStrategies.NamingBase
- Parameters:
input
- formatted as camelCase string- Returns:
- input converted to PascalCase format
-
-