Package com.networknt.schema.keyword
Enum KeywordType
- java.lang.Object
-
- java.lang.Enum<KeywordType>
-
- com.networknt.schema.keyword.KeywordType
-
- All Implemented Interfaces:
Keyword,Serializable,Comparable<KeywordType>
public enum KeywordType extends Enum<KeywordType> implements Keyword
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeywordTypefromValue(String value)static List<KeywordType>getKeywords(SpecificationVersion specificationVersion)SpecificationVersionRangegetSpecificationVersionRange()StringgetValue()Gets the keyword value.KeywordValidatornewValidator(SchemaLocation schemaLocation, com.fasterxml.jackson.databind.JsonNode schemaNode, Schema parentSchema, SchemaContext schemaContext)Creates a new validator for the keyword.StringtoString()static KeywordTypevalueOf(String name)Returns 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 Detail
-
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 Detail
-
values
public static KeywordType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeywordType c : KeywordType.values()) System.out.println(c);
- 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 nameNullPointerException- 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: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
public String toString()
- Overrides:
toStringin classEnum<KeywordType>
-
getValue
public String getValue()
Description copied from interface:KeywordGets the keyword value.
-
getSpecificationVersionRange
public SpecificationVersionRange getSpecificationVersionRange()
-
-