Enum KeywordType

java.lang.Object
java.lang.Enum<KeywordType>
com.networknt.schema.keyword.KeywordType
All Implemented Interfaces:
Keyword, Serializable, Comparable<KeywordType>, java.lang.constant.Constable

public enum KeywordType extends Enum<KeywordType> implements Keyword
  • Enum Constant Details

    • ADDITIONAL_PROPERTIES

      public static final KeywordType ADDITIONAL_PROPERTIES
    • ALL_OF

      public static final KeywordType ALL_OF
    • ANY_OF

      public static final KeywordType ANY_OF
    • CONST

      public static final KeywordType CONST
    • CONTAINS

      public static final KeywordType CONTAINS
    • CONTENT_ENCODING

      public static final KeywordType CONTENT_ENCODING
    • CONTENT_MEDIA_TYPE

      public static final KeywordType CONTENT_MEDIA_TYPE
    • DEPENDENCIES

      public static final KeywordType DEPENDENCIES
    • DEPENDENT_REQUIRED

      public static final KeywordType DEPENDENT_REQUIRED
    • DEPENDENT_SCHEMAS

      public static final KeywordType DEPENDENT_SCHEMAS
    • DISCRIMINATOR

      public static final KeywordType DISCRIMINATOR
    • DYNAMIC_REF

      public static final KeywordType DYNAMIC_REF
    • ENUM

      public static final KeywordType ENUM
    • EXCLUSIVE_MAXIMUM

      public static final KeywordType EXCLUSIVE_MAXIMUM
    • EXCLUSIVE_MINIMUM

      public static final KeywordType EXCLUSIVE_MINIMUM
    • FALSE

      public static final KeywordType FALSE
    • FORMAT

      public static final KeywordType FORMAT
    • ID

      public static final KeywordType ID
    • IF_THEN_ELSE

      public static final KeywordType IF_THEN_ELSE
    • ITEMS

      public static final KeywordType ITEMS
    • ITEMS_LEGACY

      public static final KeywordType ITEMS_LEGACY
    • MAX_CONTAINS

      public static final KeywordType MAX_CONTAINS
    • MAX_ITEMS

      public static final KeywordType MAX_ITEMS
    • MAX_LENGTH

      public static final KeywordType MAX_LENGTH
    • MAX_PROPERTIES

      public static final KeywordType MAX_PROPERTIES
    • MAXIMUM

      public static final KeywordType MAXIMUM
    • MIN_CONTAINS

      public static final KeywordType MIN_CONTAINS
    • MIN_ITEMS

      public static final KeywordType MIN_ITEMS
    • MIN_LENGTH

      public static final KeywordType MIN_LENGTH
    • MIN_PROPERTIES

      public static final KeywordType MIN_PROPERTIES
    • MINIMUM

      public static final KeywordType MINIMUM
    • MULTIPLE_OF

      public static final KeywordType MULTIPLE_OF
    • NOT_ALLOWED

      public static final KeywordType NOT_ALLOWED
    • NOT

      public static final KeywordType NOT
    • ONE_OF

      public static final KeywordType ONE_OF
    • PATTERN_PROPERTIES

      public static final KeywordType PATTERN_PROPERTIES
    • PATTERN

      public static final KeywordType PATTERN
    • PREFIX_ITEMS

      public static final KeywordType PREFIX_ITEMS
    • PROPERTIES

      public static final KeywordType PROPERTIES
    • PROPERTY_DEPENDENCIES

      public static final KeywordType PROPERTY_DEPENDENCIES
    • PROPERTY_NAMES

      public static final KeywordType PROPERTY_NAMES
    • READ_ONLY

      public static final KeywordType READ_ONLY
    • RECURSIVE_REF

      public static final KeywordType RECURSIVE_REF
    • REF

      public static final KeywordType REF
    • REQUIRED

      public static final KeywordType REQUIRED
    • TRUE

      public static final KeywordType TRUE
    • TYPE

      public static final KeywordType TYPE
    • UNEVALUATED_ITEMS

      public static final KeywordType UNEVALUATED_ITEMS
    • UNEVALUATED_PROPERTIES

      public static final KeywordType UNEVALUATED_PROPERTIES
    • UNION_TYPE

      public static final KeywordType UNION_TYPE
    • UNIQUE_ITEMS

      public static final KeywordType UNIQUE_ITEMS
    • WRITE_ONLY

      public static final KeywordType WRITE_ONLY
  • Method Details

    • values

      public static KeywordType[] 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 KeywordType 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
    • getKeywords

      public static List<KeywordType> getKeywords(SpecificationVersion specificationVersion)
    • fromValue

      public static KeywordType fromValue(String value)
    • newValidator

      public KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)
      Description copied from interface: Keyword
      Creates a new validator for the keyword.
      Specified by:
      newValidator in interface Keyword
      Parameters:
      schemaLocation - the schema location
      schemaNode - the schema node
      parentSchema - the parent schema
      schemaContext - the schema context
      Returns:
      the validation
    • toString

      public String toString()
      Overrides:
      toString in class Enum<KeywordType>
    • getValue

      public String getValue()
      Description copied from interface: Keyword
      Gets the keyword value.
      Specified by:
      getValue in interface Keyword
      Returns:
      the keyword value
    • getSpecificationVersionRange

      public SpecificationVersionRange getSpecificationVersionRange()