Enum TypeCategory

java.lang.Object
java.lang.Enum<TypeCategory>
org.apache.juneau.jsonschema.TypeCategory
All Implemented Interfaces:
Serializable, Comparable<TypeCategory>, java.lang.constant.Constable

public enum TypeCategory extends Enum<TypeCategory>
Represents possible values for JSONSCHEMA_addExamplesTo and JSONSCHEMA_addDescriptionsTo.
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static TypeCategory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TypeCategory valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • parse

      public static Set<TypeCategory> parse(String s)
      Parses a comma-delimited list of values into a set of TypeCategory values.
      Parameters:
      s - The comma-delimited string.
      Returns:
      A comma-delimited list of values into a set of TypeCategory values.
    • parseArray

      public static TypeCategory[] parseArray(String s)
      Parses a comma-delimited list of values into an array of TypeCategory values.
      Parameters:
      s - The comma-delimited string.
      Returns:
      A comma-delimited list of values into an array of TypeCategory values.