public class SimpleSyntaxChecker extends Object implements SyntaxChecker
| Modifier and Type | Field and Description |
|---|---|
protected String |
keyword |
private EnumSet<NodeType> |
validTypes |
| Constructor and Description |
|---|
SimpleSyntaxChecker(String keyword,
NodeType type,
NodeType... types) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSyntax(ValidationMessage.Builder msg,
List<ValidationMessage> messages,
JsonNode schema)
Check the syntax for this keyword
|
(package private) void |
checkValue(ValidationMessage.Builder msg,
List<ValidationMessage> messages,
JsonNode schema) |
protected final String keyword
public final void checkSyntax(ValidationMessage.Builder msg, List<ValidationMessage> messages, JsonNode schema)
SyntaxCheckerWhen entering this function, the message template passed as an
argument will have already been filled with the matching validation
domain (here, ValidationDomain.SYNTAX) and the keyword.
checkSyntax in interface SyntaxCheckermsg - the validation message templatemessages - message list to fill in the event of a failureschema - schema to analyzeValidationMessagevoid checkValue(ValidationMessage.Builder msg, List<ValidationMessage> messages, JsonNode schema)
Copyright © 2012. All Rights Reserved.