-
public interface ProblemDispatcherA dispatcher interface for dispatching the problems found while validating a JSON document.Note that this type is not intended to be used directly by end users.
- Author:
- leadpony
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddispatchAllProblems(Collection<Problem> problems)Dispatches all problems in the specified collection.voiddispatchInevitableProblem(EvaluatorContext context, JsonSchema schema)Dispatches an inevitable problem.voiddispatchProblem(Problem problem)Dispatches the problem found.
-
-
-
Method Detail
-
dispatchProblem
void dispatchProblem(Problem problem)
Dispatches the problem found.- Parameters:
problem- the problem to dispatch, cannot benull.
-
dispatchAllProblems
default void dispatchAllProblems(Collection<Problem> problems)
Dispatches all problems in the specified collection.- Parameters:
problems- the collection of the problems to dispatch.- Throws:
NullPointerException- if the specifiedproblemsisnull.
-
dispatchInevitableProblem
void dispatchInevitableProblem(EvaluatorContext context, JsonSchema schema)
Dispatches an inevitable problem.- Parameters:
context- the evaluator context in which the problem was found, cannot benull.schema- the JSON schema evaluated, cannot benull.
-
-