Package com.networknt.schema
Enum ValidatorTypeCode
- java.lang.Object
-
- java.lang.Enum<ValidatorTypeCode>
-
- com.networknt.schema.ValidatorTypeCode
-
- All Implemented Interfaces:
ErrorMessageType,Keyword,Serializable,Comparable<ValidatorTypeCode>
public enum ValidatorTypeCode extends Enum<ValidatorTypeCode> implements Keyword, ErrorMessageType
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidatorTypeCodefromValue(String value)StringgetErrorCode()Your error code.StringgetErrorCodeValue()Get the text representation of the error code.static List<ValidatorTypeCode>getNonFormatKeywords(SpecVersion.VersionFlag versionFlag)StringgetValue()Gets the keyword value.com.networknt.schema.VersionCodegetVersionCode()JsonValidatornewValidator(SchemaLocation schemaLocation, JsonNodePath evaluationPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext)Creates a new validator for the keyword.StringtoString()static ValidatorTypeCodevalueOf(String name)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 Detail
-
ADDITIONAL_PROPERTIES
public static final ValidatorTypeCode ADDITIONAL_PROPERTIES
-
ALL_OF
public static final ValidatorTypeCode ALL_OF
-
ANY_OF
public static final ValidatorTypeCode ANY_OF
-
CONST
public static final ValidatorTypeCode CONST
-
CONTAINS
public static final ValidatorTypeCode CONTAINS
-
CONTENT_ENCODING
public static final ValidatorTypeCode CONTENT_ENCODING
-
CONTENT_MEDIA_TYPE
public static final ValidatorTypeCode CONTENT_MEDIA_TYPE
-
DEPENDENCIES
public static final ValidatorTypeCode DEPENDENCIES
-
DEPENDENT_REQUIRED
public static final ValidatorTypeCode DEPENDENT_REQUIRED
-
DEPENDENT_SCHEMAS
public static final ValidatorTypeCode DEPENDENT_SCHEMAS
-
DISCRIMINATOR
public static final ValidatorTypeCode DISCRIMINATOR
-
DYNAMIC_REF
public static final ValidatorTypeCode DYNAMIC_REF
-
ENUM
public static final ValidatorTypeCode ENUM
-
EXCLUSIVE_MAXIMUM
public static final ValidatorTypeCode EXCLUSIVE_MAXIMUM
-
EXCLUSIVE_MINIMUM
public static final ValidatorTypeCode EXCLUSIVE_MINIMUM
-
FALSE
public static final ValidatorTypeCode FALSE
-
FORMAT
public static final ValidatorTypeCode FORMAT
-
ID
public static final ValidatorTypeCode ID
-
IF_THEN_ELSE
public static final ValidatorTypeCode IF_THEN_ELSE
-
ITEMS_202012
public static final ValidatorTypeCode ITEMS_202012
-
ITEMS
public static final ValidatorTypeCode ITEMS
-
MAX_CONTAINS
public static final ValidatorTypeCode MAX_CONTAINS
-
MAX_ITEMS
public static final ValidatorTypeCode MAX_ITEMS
-
MAX_LENGTH
public static final ValidatorTypeCode MAX_LENGTH
-
MAX_PROPERTIES
public static final ValidatorTypeCode MAX_PROPERTIES
-
MAXIMUM
public static final ValidatorTypeCode MAXIMUM
-
MIN_CONTAINS
public static final ValidatorTypeCode MIN_CONTAINS
-
MIN_ITEMS
public static final ValidatorTypeCode MIN_ITEMS
-
MIN_LENGTH
public static final ValidatorTypeCode MIN_LENGTH
-
MIN_PROPERTIES
public static final ValidatorTypeCode MIN_PROPERTIES
-
MINIMUM
public static final ValidatorTypeCode MINIMUM
-
MULTIPLE_OF
public static final ValidatorTypeCode MULTIPLE_OF
-
NOT_ALLOWED
public static final ValidatorTypeCode NOT_ALLOWED
-
NOT
public static final ValidatorTypeCode NOT
-
ONE_OF
public static final ValidatorTypeCode ONE_OF
-
PATTERN_PROPERTIES
public static final ValidatorTypeCode PATTERN_PROPERTIES
-
PATTERN
public static final ValidatorTypeCode PATTERN
-
PREFIX_ITEMS
public static final ValidatorTypeCode PREFIX_ITEMS
-
PROPERTIES
public static final ValidatorTypeCode PROPERTIES
-
PROPERTYNAMES
public static final ValidatorTypeCode PROPERTYNAMES
-
READ_ONLY
public static final ValidatorTypeCode READ_ONLY
-
RECURSIVE_REF
public static final ValidatorTypeCode RECURSIVE_REF
-
REF
public static final ValidatorTypeCode REF
-
REQUIRED
public static final ValidatorTypeCode REQUIRED
-
TRUE
public static final ValidatorTypeCode TRUE
-
TYPE
public static final ValidatorTypeCode TYPE
-
UNEVALUATED_ITEMS
public static final ValidatorTypeCode UNEVALUATED_ITEMS
-
UNEVALUATED_PROPERTIES
public static final ValidatorTypeCode UNEVALUATED_PROPERTIES
-
UNION_TYPE
public static final ValidatorTypeCode UNION_TYPE
-
UNIQUE_ITEMS
public static final ValidatorTypeCode UNIQUE_ITEMS
-
WRITE_ONLY
public static final ValidatorTypeCode WRITE_ONLY
-
-
Method Detail
-
values
public static ValidatorTypeCode[] 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 (ValidatorTypeCode c : ValidatorTypeCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidatorTypeCode 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
-
getNonFormatKeywords
public static List<ValidatorTypeCode> getNonFormatKeywords(SpecVersion.VersionFlag versionFlag)
-
fromValue
public static ValidatorTypeCode fromValue(String value)
-
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
public String toString()
- Overrides:
toStringin classEnum<ValidatorTypeCode>
-
getValue
public String getValue()
Description copied from interface:KeywordGets the keyword value.
-
getErrorCode
public String 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
public String getErrorCodeValue()
Description copied from interface:ErrorMessageTypeGet the text representation of the error code.- Specified by:
getErrorCodeValuein interfaceErrorMessageType- Returns:
- The error code value.
-
-