All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fge.jsonschema.old.syntax.SyntaxChecker Maven / Gradle / Ivy

package com.github.fge.jsonschema.old.syntax;

import com.fasterxml.jackson.databind.JsonNode;
import com.github.fge.jsonschema.report.Message;

import java.util.List;

/**
 * Interface implemented by all syntax checkers
 *
 * 

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 {@link AbstractSyntaxChecker} instead.

*/ public interface SyntaxChecker { /** * Check the syntax for this keyword * * @param validator the syntax validator to use * @param messages message list to fill in the event of a failure * @param schema schema to analyze */ void checkSyntax(final SyntaxValidator validator, final List messages, final JsonNode schema); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy