Package com.networknt.schema
Enum ValidatorTypeCode
- All Implemented Interfaces:
ErrorMessageType
,Keyword
,Serializable
,Comparable<ValidatorTypeCode>
,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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<String, ValidatorTypeCode> private final String
private final ValidatorFactory
private final String
private final VersionCode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ValidatorTypeCode
(String value, String errorCode, ValidatorFactory validatorFactory, VersionCode versionCode) -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorTypeCode
Your error code.Get the text representation of the error code.static List
<ValidatorTypeCode> getKeywords
(SpecVersion.VersionFlag versionFlag) getValue()
Gets the keyword value.newValidator
(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) Creates a new validator for the keyword.toString()
static ValidatorTypeCode
Returns the enum constant of this type with the specified name.static ValidatorTypeCode[]
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_202012
-
ITEMS
-
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
-
PROPERTYNAMES
-
READ_ONLY
-
RECURSIVE_REF
-
REF
-
REQUIRED
-
TRUE
-
TYPE
-
UNEVALUATED_ITEMS
-
UNEVALUATED_PROPERTIES
-
UNION_TYPE
-
UNIQUE_ITEMS
-
WRITE_ONLY
-
-
Field Details
-
CONSTANTS
-
value
-
errorCode
-
validatorFactory
-
versionCode
-
-
Constructor Details
-
ValidatorTypeCode
private ValidatorTypeCode(String value, String errorCode, ValidatorFactory validatorFactory, VersionCode versionCode)
-
-
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 JsonValidator newValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) Description copied from interface:Keyword
Creates a new validator for the keyword.- Specified by:
newValidator
in interfaceKeyword
- Parameters:
schemaLocation
- the schema locationevaluationPath
- the evaluation pathschemaNode
- the schema nodeparentSchema
- the parent schemavalidationContext
- the validation context- Returns:
- the validation
-
toString
- Overrides:
toString
in classEnum<ValidatorTypeCode>
-
getValue
Description copied from interface:Keyword
Gets the keyword value. -
getErrorCode
Description copied from interface:ErrorMessageType
Your error code. Please ensure global uniqueness. Builtin error codes are sequential numbers.Customer error codes could have a prefix to denote the namespace of your custom keywords and errors.
- Specified by:
getErrorCode
in interfaceErrorMessageType
- Returns:
- error code
-
getVersionCode
-
getErrorCodeValue
Description copied from interface:ErrorMessageType
Get the text representation of the error code.- Specified by:
getErrorCodeValue
in interfaceErrorMessageType
- Returns:
- The error code value.
-