Interface IConstraintVisitor<T,R>

Type Parameters:
T - the Java type of a state object passed to the visitor
R - the Java type of the result returned by the visitor methods

public interface IConstraintVisitor<T,R>
Supports a visitor pattern over constraint instances.
  • Method Details

    • visitAllowedValues

      R visitAllowedValues(@NonNull IAllowedValuesConstraint constraint, T state)
      Implementation of this method support visitation of an IAllowedValuesConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitCardinalityConstraint

      R visitCardinalityConstraint(@NonNull ICardinalityConstraint constraint, T state)
      Implementation of this method support visitation of an ICardinalityConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitExpectConstraint

      R visitExpectConstraint(@NonNull IExpectConstraint constraint, T state)
      Implementation of this method support visitation of an IExpectConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitMatchesConstraint

      R visitMatchesConstraint(@NonNull IMatchesConstraint constraint, T state)
      Implementation of this method support visitation of an IMatchesConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitIndexConstraint

      R visitIndexConstraint(@NonNull IIndexConstraint constraint, T state)
      Implementation of this method support visitation of an IIndexConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitIndexHasKeyConstraint

      R visitIndexHasKeyConstraint(@NonNull IIndexHasKeyConstraint constraint, T state)
      Implementation of this method support visitation of an IIndexHasKeyConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitUniqueConstraint

      R visitUniqueConstraint(@NonNull IUniqueConstraint constraint, T state)
      Implementation of this method support visitation of an IUniqueConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result
    • visitReportConstraint

      R visitReportConstraint(@NonNull IReportConstraint constraint, T state)
      Implementation of this method support visitation of an IReportConstraint.
      Parameters:
      constraint - the constraint to visit
      state - a state object passed to the visitor
      Returns:
      the visitation result