Class PropertyNamingStrategies.UpperCamelCaseStrategy

  • All Implemented Interfaces:
    Enclosing class:

    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:
    Serialized Form
    • Constructor Detail

      • UpperCamelCaseStrategy

        public UpperCamelCaseStrategy()
    • Method Detail

      • 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
        input - formatted as camelCase string
        input converted to PascalCase format