Module dev.metaschema.core
Interface IConstraintVisitor<T,R>
- Type Parameters:
T- the Java type of a state object passed to the visitorR- the Java type of the result returned by the visitor methods
public interface IConstraintVisitor<T,R>
Supports a visitor pattern over constraint instances.
-
Method Summary
Modifier and TypeMethodDescriptionvisitAllowedValues(IAllowedValuesConstraint constraint, T state) Implementation of this method support visitation of anIAllowedValuesConstraint.visitCardinalityConstraint(ICardinalityConstraint constraint, T state) Implementation of this method support visitation of anICardinalityConstraint.visitExpectConstraint(IExpectConstraint constraint, T state) Implementation of this method support visitation of anIExpectConstraint.visitIndexConstraint(IIndexConstraint constraint, T state) Implementation of this method support visitation of anIIndexConstraint.visitIndexHasKeyConstraint(IIndexHasKeyConstraint constraint, T state) Implementation of this method support visitation of anIIndexHasKeyConstraint.visitMatchesConstraint(IMatchesConstraint constraint, T state) Implementation of this method support visitation of anIMatchesConstraint.visitReportConstraint(IReportConstraint constraint, T state) Implementation of this method support visitation of anIReportConstraint.visitUniqueConstraint(IUniqueConstraint constraint, T state) Implementation of this method support visitation of anIUniqueConstraint.
-
Method Details
-
visitAllowedValues
Implementation of this method support visitation of anIAllowedValuesConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitCardinalityConstraint
Implementation of this method support visitation of anICardinalityConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitExpectConstraint
Implementation of this method support visitation of anIExpectConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitMatchesConstraint
Implementation of this method support visitation of anIMatchesConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitIndexConstraint
Implementation of this method support visitation of anIIndexConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitIndexHasKeyConstraint
Implementation of this method support visitation of anIIndexHasKeyConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitUniqueConstraint
Implementation of this method support visitation of anIUniqueConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-
visitReportConstraint
Implementation of this method support visitation of anIReportConstraint.- Parameters:
constraint- the constraint to visitstate- a state object passed to the visitor- Returns:
- the visitation result
-