Class PropertyNamingStrategies.UpperCamelCaseStrategy

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • UpperCamelCaseStrategy

        public UpperCamelCaseStrategy()
    • Method Detail

      • translate

        public java.lang.String translate​(java.lang.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