public enum ValidatorTypeCode extends Enum<ValidatorTypeCode> implements Keyword, ErrorMessageType
Modifier and Type | Method and Description |
---|---|
static ValidatorTypeCode |
fromValue(String value) |
String |
getErrorCode()
Your error code.
|
String |
getErrorCodeKey() |
MessageFormat |
getMessageFormat()
optional message format
|
static List<ValidatorTypeCode> |
getNonFormatKeywords(SpecVersion.VersionFlag versionFlag) |
String |
getValue() |
long |
getVersionCode() |
JsonValidator |
newValidator(String schemaPath,
com.fasterxml.jackson.databind.JsonNode schemaNode,
JsonSchema parentSchema,
ValidationContext validationContext) |
String |
toString() |
static ValidatorTypeCode |
valueOf(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.
|
public static final ValidatorTypeCode ADDITIONAL_PROPERTIES
public static final ValidatorTypeCode ALL_OF
public static final ValidatorTypeCode ANY_OF
public static final ValidatorTypeCode CROSS_EDITS
public static final ValidatorTypeCode DEPENDENCIES
public static final ValidatorTypeCode EDITS
public static final ValidatorTypeCode ENUM
public static final ValidatorTypeCode FORMAT
public static final ValidatorTypeCode ITEMS
public static final ValidatorTypeCode MAXIMUM
public static final ValidatorTypeCode MAX_ITEMS
public static final ValidatorTypeCode MAX_LENGTH
public static final ValidatorTypeCode MAX_PROPERTIES
public static final ValidatorTypeCode MINIMUM
public static final ValidatorTypeCode MIN_ITEMS
public static final ValidatorTypeCode MIN_LENGTH
public static final ValidatorTypeCode MIN_PROPERTIES
public static final ValidatorTypeCode MULTIPLE_OF
public static final ValidatorTypeCode NOT_ALLOWED
public static final ValidatorTypeCode NOT
public static final ValidatorTypeCode ONE_OF
public static final ValidatorTypeCode PATTERN_PROPERTIES
public static final ValidatorTypeCode PATTERN
public static final ValidatorTypeCode PROPERTIES
public static final ValidatorTypeCode READ_ONLY
public static final ValidatorTypeCode REF
public static final ValidatorTypeCode REQUIRED
public static final ValidatorTypeCode TYPE
public static final ValidatorTypeCode UNION_TYPE
public static final ValidatorTypeCode UNIQUE_ITEMS
public static final ValidatorTypeCode DATETIME
public static final ValidatorTypeCode UUID
public static final ValidatorTypeCode ID
public static final ValidatorTypeCode IF_THEN_ELSE
public static final ValidatorTypeCode EXCLUSIVE_MAXIMUM
public static final ValidatorTypeCode EXCLUSIVE_MINIMUM
public static final ValidatorTypeCode TRUE
public static final ValidatorTypeCode FALSE
public static final ValidatorTypeCode CONST
public static final ValidatorTypeCode CONTAINS
public static ValidatorTypeCode[] values()
for (ValidatorTypeCode c : ValidatorTypeCode.values()) System.out.println(c);
public static ValidatorTypeCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static List<ValidatorTypeCode> getNonFormatKeywords(SpecVersion.VersionFlag versionFlag)
public static ValidatorTypeCode fromValue(String value)
public JsonValidator newValidator(String schemaPath, com.fasterxml.jackson.databind.JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) throws Exception
newValidator
in interface Keyword
Exception
public String toString()
toString
in class Enum<ValidatorTypeCode>
public String getErrorCode()
ErrorMessageType
getErrorCode
in interface ErrorMessageType
public MessageFormat getMessageFormat()
ErrorMessageType
getMessageFormat
in interface ErrorMessageType
public String getErrorCodeKey()
public long getVersionCode()
Copyright © 2020. All rights reserved.