public abstract class AbstractKeywordValidator extends Object implements KeywordValidator
This class provides a template message for error reporting, with all details about the current validation context already filled.
Modifier | Constructor and Description |
---|---|
protected |
AbstractKeywordValidator(String keyword)
Protected constructor
|
Modifier and Type | Method and Description |
---|---|
protected ProcessingMessage |
newMsg(FullData data) |
protected ProcessingMessage |
newMsg(FullData data,
MessageBundle bundle,
String key) |
protected static <T> JsonNode |
toArrayNode(Collection<T> collection) |
abstract String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validate
protected final String keyword
protected AbstractKeywordValidator(String keyword)
keyword
- the keyword's nameprotected final ProcessingMessage newMsg(FullData data)
protected final ProcessingMessage newMsg(FullData data, MessageBundle bundle, String key)
protected static <T> JsonNode toArrayNode(Collection<T> collection)