Package com.networknt.schema.keyword
Enum KeywordType
- All Implemented Interfaces:
Keyword,Serializable,Comparable<KeywordType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic KeywordTypestatic List<KeywordType> getKeywords(SpecificationVersion specificationVersion) getValue()Gets the keyword value.newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) Creates a new validator for the keyword.toString()static KeywordTypeReturns the enum constant of this type with the specified name.static KeywordType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ADDITIONAL_PROPERTIES
-
ALL_OF
-
ANY_OF
-
CONST
-
CONTAINS
-
CONTENT_ENCODING
-
CONTENT_MEDIA_TYPE
-
DEPENDENCIES
-
DEPENDENT_REQUIRED
-
DEPENDENT_SCHEMAS
-
DISCRIMINATOR
-
DYNAMIC_REF
-
ENUM
-
EXCLUSIVE_MAXIMUM
-
EXCLUSIVE_MINIMUM
-
FALSE
-
FORMAT
-
ID
-
IF_THEN_ELSE
-
ITEMS
-
ITEMS_LEGACY
-
MAX_CONTAINS
-
MAX_ITEMS
-
MAX_LENGTH
-
MAX_PROPERTIES
-
MAXIMUM
-
MIN_CONTAINS
-
MIN_ITEMS
-
MIN_LENGTH
-
MIN_PROPERTIES
-
MINIMUM
-
MULTIPLE_OF
-
NOT_ALLOWED
-
NOT
-
ONE_OF
-
PATTERN_PROPERTIES
-
PATTERN
-
PREFIX_ITEMS
-
PROPERTIES
-
PROPERTY_DEPENDENCIES
-
PROPERTY_NAMES
-
READ_ONLY
-
RECURSIVE_REF
-
REF
-
REQUIRED
-
TRUE
-
TYPE
-
UNEVALUATED_ITEMS
-
UNEVALUATED_PROPERTIES
-
UNION_TYPE
-
UNIQUE_ITEMS
-
WRITE_ONLY
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getKeywords
-
fromValue
-
newValidator
public KeywordValidator newValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext) Description copied from interface:KeywordCreates a new validator for the keyword.- Specified by:
newValidatorin interfaceKeyword- Parameters:
schemaLocation- the schema locationschemaNode- the schema nodeparentSchema- the parent schemaschemaContext- the schema context- Returns:
- the validation
-
toString
- Overrides:
toStringin classEnum<KeywordType>
-
getValue
Description copied from interface:KeywordGets the keyword value. -
getSpecificationVersionRange
-