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 -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidatorTypeCodeYour error code.Get the text representation of the error code.static List<ValidatorTypeCode> getKeywords(SpecVersion.VersionFlag versionFlag) getValue()Gets the keyword value.com.networknt.schema.VersionCodenewValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) Creates a new validator for the keyword.toString()static ValidatorTypeCodeReturns 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
-
-
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:KeywordCreates a new validator for the keyword.- Specified by:
newValidatorin interfaceKeyword- Parameters:
schemaLocation- the schema locationevaluationPath- the evaluation pathschemaNode- the schema nodeparentSchema- the parent schemavalidationContext- the validation context- Returns:
- the validation
-
toString
- Overrides:
toStringin classEnum<ValidatorTypeCode>
-
getValue
Description copied from interface:KeywordGets the keyword value. -
getErrorCode
Description copied from interface:ErrorMessageTypeYour 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:
getErrorCodein interfaceErrorMessageType- Returns:
- error code
-
getVersionCode
public com.networknt.schema.VersionCode getVersionCode() -
getErrorCodeValue
Description copied from interface:ErrorMessageTypeGet the text representation of the error code.- Specified by:
getErrorCodeValuein interfaceErrorMessageType- Returns:
- The error code value.
-