public static class PropertyNamingStrategies.UpperCamelCaseStrategy extends PropertyNamingStrategies.NamingBase
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.
| Modifier and Type | Field and Description |
|---|---|
static PropertyNamingStrategies.UpperCamelCaseStrategy |
INSTANCE |
| Constructor and Description |
|---|
UpperCamelCaseStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
translate(String input)
Converts camelCase to PascalCase
For example, "userName" would be converted to
"UserName".
|
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethodpublic static final PropertyNamingStrategies.UpperCamelCaseStrategy INSTANCE
public String translate(String input)
translate in class PropertyNamingStrategies.NamingBaseinput - formatted as camelCase stringCopyright © 2008–2025 FasterXML. All rights reserved.