public final class TypeKeywordValidator extends AbstractTypeKeywordValidator
type keyword
This keyword and its counterpart (disallowed) are two of the
most complex keywords.
schemas, typeSetkeyword, nodeFactory| Constructor and Description |
|---|
TypeKeywordValidator(JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
private void |
trySchemas(ValidationContext context,
ValidationReport schemaReport,
JsonNode instance) |
void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
toStringnewMsg, validateInstancepublic TypeKeywordValidator(JsonNode schema)
public void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validateprivate void trySchemas(ValidationContext context, ValidationReport schemaReport, JsonNode instance)
Copyright © 2012. All Rights Reserved.