Interface ProblemDispatcher


  • public interface ProblemDispatcher
    A 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 Detail

      • dispatchProblem

        void dispatchProblem​(Problem problem)
        Dispatches the problem found.
        Parameters:
        problem - the problem to dispatch, cannot be null.
      • 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 specified problems is null.
      • dispatchInevitableProblem

        void dispatchInevitableProblem​(EvaluatorContext context,
                                       JsonSchema schema)
        Dispatches an inevitable problem.
        Parameters:
        context - the evaluator context in which the problem was found, cannot be null.
        schema - the JSON schema evaluated, cannot be null.