Class 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.
This rules result in the following example translation from Java property names to JSON element names.
  • "userName" is translated to "UserName"
See Also:
  • Field Details

  • Constructor Details

    • UpperCamelCaseStrategy

      public UpperCamelCaseStrategy()
  • Method Details

    • translate

      public String translate(String input)
      Converts camelCase to PascalCase For example, "userName" would be converted to "UserName".
      Specified by:
      translate in class PropertyNamingStrategies.NamingBase
      Parameters:
      input - formatted as camelCase string
      Returns:
      input converted to PascalCase format