Class PropertyNamingStrategies.UpperCamelCaseStrategy
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.PropertyNamingStrategy
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.PropertyNamingStrategies.UpperCamelCaseStrategy
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PropertyNamingStrategies
public static class PropertyNamingStrategies.UpperCamelCaseStrategy
extends PropertyNamingStrategies.NamingBase
A
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.
- 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouperClientExt.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 edu.internet2.middleware.grouperClientExt.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
-
Method Summary
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase
nameForConstructorParameter, nameForField, nameForGetterMethod, nameForSetterMethod, translateLowerCaseWithSeparator
-
Field Details
-
INSTANCE
- Since:
- 2.14
-
-
Constructor Details
-
UpperCamelCaseStrategy
public UpperCamelCaseStrategy()
-
-
Method Details
-
translate
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
-