Class AbstractValidator

  • All Implemented Interfaces:
    ExpressionVisitor
    Direct Known Subclasses:
    AbstractGrammarValidator, AbstractSemanticValidator

    public abstract class AbstractValidator
    extends AnonymousExpressionVisitor
    The abstract definition of a validator, which provides helper methods and visitors.

    Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

    Since:
    2.4
    Version:
    2.5
    Author:
    Pascal Filion
    See Also:
    AbstractGrammarValidator, AbstractSemanticValidator
    • Method Detail

      • dispose

        public void dispose()
        Disposes this visitor.
      • problemsSize

        public final int problemsSize()
        Returns the current number of problems that were registered during validation.
        Returns:
        The current number of problems
        Since:
        2.4
      • setProblems

        public void setProblems​(Collection<JPQLQueryProblem> problems)
        Sets the collection that will be used to store problems this validator will find in the JPQL query.
        Parameters:
        problems - A non-null collection that will be used to store the problems if any was found
        Throws:
        NullPointerException - The Collection cannot be null