public interface SyntaxChecker
There exists one syntax checker per supported schema keyword. For the recall, their role is to ensure the keyword values are well formed, so as to ease the job of the associated keyword validator.
You have the option to directly implement this interface, however you're
probably better off extending AbstractSyntaxChecker instead.
| Modifier and Type | Method and Description |
|---|---|
void |
checkSyntax(Message.Builder msg,
List<Message> messages,
JsonNode schema)
Check the syntax for this keyword
|
void checkSyntax(Message.Builder msg, List<Message> messages, JsonNode schema)
When entering this function, the message template passed as an
argument will have already been filled with the matching validation
domain (here, Domain.SYNTAX) and the keyword.
msg - the validation message templatemessages - message list to fill in the event of a failureschema - schema to analyzeMessageCopyright © 2013. All Rights Reserved.