public static class PropertyNamingStrategy.UpperCamelCaseStrategy extends PropertyNamingStrategy.PropertyNamingStrategyBase
PropertyNamingStrategy
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.
PropertyNamingStrategy.PascalCaseStrategy
)PropertyNamingStrategy.KebabCaseStrategy, PropertyNamingStrategy.LowerCaseStrategy, PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.PascalCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase, PropertyNamingStrategy.SnakeCaseStrategy, PropertyNamingStrategy.UpperCamelCaseStrategy
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES, KEBAB_CASE, LOWER_CAMEL_CASE, LOWER_CASE, PASCAL_CASE_TO_CAMEL_CASE, SNAKE_CASE, UPPER_CAMEL_CASE
Constructor and Description |
---|
UpperCamelCaseStrategy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
translate(java.lang.String input)
Converts camelCase to PascalCase
For example, "userName" would be converted to
"UserName".
|
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod
public java.lang.String translate(java.lang.String input)
translate
in class PropertyNamingStrategy.PropertyNamingStrategyBase
input
- formatted as camelCase string"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"