public final class EnumValidator extends AbstractKeywordValidator
enum
JsonNumEquals
keyword
Constructor and Description |
---|
EnumValidator(JsonNode digest) |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
void |
validate(Processor<FullData,FullData> processor,
ProcessingReport report,
MessageBundle bundle,
FullData data)
Validate the instance
|
newMsg, newMsg, toArrayNode
public EnumValidator(JsonNode digest)
public void validate(Processor<FullData,FullData> processor, ProcessingReport report, MessageBundle bundle, FullData data) throws ProcessingException
KeywordValidator
processor
- the main validation processorreport
- the report to usebundle
- the message bundle to usedata
- the validation dataInvalidInstanceException
- instance is invalid, and the report has
been configured to throw an exception instead of logging errorsProcessingException
public String toString()
toString
in class AbstractKeywordValidator