public abstract class AbstractTypeKeywordValidator extends KeywordValidator
type and disallow keywords
The structure of these two keywords are the same, the only difference is the validation process.
| Modifier and Type | Field and Description |
|---|---|
private static String |
ANY
Shortcut for all JSON instance types
|
protected Set<JsonNode> |
schemas
Schemas found in the keyword definition
|
protected EnumSet<NodeType> |
typeSet
Simple types found in the keyword definition
|
keyword| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeKeywordValidator(String keyword,
JsonNode schema) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addSimpleType(String type)
Add a simple type to
typeSet |
String |
toString() |
validate, validateInstanceprivate static final String ANY
private void addSimpleType(String type)
typeSet
There are two special cases:
ANY, all values are filled in;number, it also covers integer.type - the type as a stringpublic String toString()
toString in class KeywordValidatorCopyright © 2012. All Rights Reserved.