Interface Constraint
-
- All Known Implementing Classes:
AndConstraint,ChildNodeConstraint,ComparisonConstraint,DescendantNodeConstraint,FullTextConstraint,HierarchyConstraint,LikeConstraint,NotConstraint,OrConstraint,PropertyExistenceConstraint,QueryConstraint,SameNodeConstraint,SelectorBasedConstraint
public interface ConstraintConstraintdefines an interface for a QOM constraint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context)Evaluates this constraint for the given row.
-
-
-
Method Detail
-
evaluate
boolean evaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context) throws IOException
Evaluates this constraint for the given row.- Parameters:
row- the current row of score nodes.selectorNames- the selector names associated withrow.context- the evaluation context.- Returns:
trueif the row satisfies the constraint,falseotherwise.- Throws:
IOException- if an error occurs while evaluating the constraint.
-
-