Class EnumNamingStrategies

java.lang.Object
tools.jackson.databind.EnumNamingStrategies

public class EnumNamingStrategies extends Object
A container class for implementations of the EnumNamingStrategy interface.
  • Field Details

    • LOWER_CAMEL_CASE

      public static final EnumNamingStrategy LOWER_CAMEL_CASE
      Words other than first are capitalized and no separator is used between words. See EnumNamingStrategies.LowerCamelCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "enumName".

    • UPPER_CAMEL_CASE

      public static final EnumNamingStrategy UPPER_CAMEL_CASE
      Naming convention used in languages like Pascal, where all words are capitalized and no separator is used between words. See EnumNamingStrategies.UpperCamelCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "EnumName".

    • SNAKE_CASE

      public static final EnumNamingStrategy SNAKE_CASE
      Naming convention used in languages like C, where words are in lower-case letters, separated by underscores. See EnumNamingStrategies.SnakeCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "enum_name".

    • UPPER_SNAKE_CASE

      public static final EnumNamingStrategy UPPER_SNAKE_CASE
      Naming convention in which the words are in upper-case letters, separated by underscores. See EnumNamingStrategies.UpperSnakeCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "ENUM_NAME", but "__ENUM_NAME_" would also be converted to "ENUM_NAME".

    • LOWER_CASE

      public static final EnumNamingStrategy LOWER_CASE
      Naming convention in which all words of the logical name are in lower case, and no separator is used between words. See EnumNamingStrategies.LowerCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "enumname".

    • KEBAB_CASE

      public static final EnumNamingStrategy KEBAB_CASE
      Naming convention used in languages like Lisp, where words are in lower-case letters, separated by hyphens. See EnumNamingStrategies.KebabCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "enum-name".

    • LOWER_DOT_CASE

      public static final EnumNamingStrategy LOWER_DOT_CASE
      Naming convention widely used as configuration properties name, where words are in lower-case letters, separated by dots. See EnumNamingStrategies.LowerDotCaseStrategy for details.

      Example "ENUM_NAME" would be converted to "enum.name".