public final class OneOfKeywordValidator extends SchemaArrayKeywordValidator
anyOf keyword
An instance is valid against this keyword if and only if it is valid against exactly one schema defined by its value.
subSchemaskeyword| Constructor and Description |
|---|
OneOfKeywordValidator(JsonNode schema)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
protected void |
validate(ValidationContext context,
ValidationReport report,
JsonNode instance)
Method which all keyword validators must implement
|
alwaysTrue, newMsg, validateInstancepublic OneOfKeywordValidator(JsonNode schema)
protected void validate(ValidationContext context, ValidationReport report, JsonNode instance)
KeywordValidatorvalidate in class KeywordValidatorcontext - the contextreport - the validation reportinstance - the instance to validatepublic String toString()
toString in class KeywordValidatorCopyright © 2013. All Rights Reserved.