public static class PropertyNamingStrategy.PascalCaseStrategy 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.LowerCaseWithUnderscoresStrategy, PropertyNamingStrategy.PascalCaseStrategy, PropertyNamingStrategy.PropertyNamingStrategyBase
CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES, PASCAL_CASE_TO_CAMEL_CASE
Constructor and Description |
---|
PropertyNamingStrategy.PascalCaseStrategy() |
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, nameForSetterMethod
public PropertyNamingStrategy.PascalCaseStrategy()
public String translate(String input)
translate
in class PropertyNamingStrategy.PropertyNamingStrategyBase
input
- formatted as camelCase stringCopyright © 2012-2013 FasterXML. All Rights Reserved.