public class DescendantNodeConstraint extends HierarchyConstraint
DescendantNodeConstraint implements a descendant node
 constraint.| Constructor and Description | 
|---|
| DescendantNodeConstraint(DescendantNodeImpl constraint,
                        SelectorImpl selector)Creates a new descendant node constraint from the given QOM constraint. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | evaluate(ScoreNode[] row,
        Name[] selectorNames,
        EvaluationContext context)Evaluates this constraint for the given row. | 
getBaseNodeIdgetSelector, getSelectorIndexpublic DescendantNodeConstraint(DescendantNodeImpl constraint, SelectorImpl selector)
constraint - the QOM descendant node constraint.selector - the selector.public boolean evaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context) throws IOException
row - the current row of score nodes.selectorNames - the selector names associated with row.context - the evaluation context.true if the row satisfies the constraint,
         false otherwise.IOException - if an error occurs while evaluating the constraint.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.