Class PositionPredicateEvaluator
- java.lang.Object
-
- org.smooks.engine.resource.config.xpath.predicate.PositionPredicateEvaluator
-
- All Implemented Interfaces:
Predicate
,PredicateEvaluator
public class PositionPredicateEvaluator extends Object implements PredicateEvaluator
-
-
Constructor Summary
Constructors Constructor Description PositionPredicateEvaluator(org.jaxen.expr.Expr expr, String elementName, String elementNS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Fragment<?> fragment, ExecutionContext executionContext)
Does this XPath expression evaluate for the suppliedElement
context object.void
setCounter(ElementPositionCounter positionCounter)
-
-
-
Method Detail
-
setCounter
public void setCounter(ElementPositionCounter positionCounter)
-
evaluate
public boolean evaluate(Fragment<?> fragment, ExecutionContext executionContext)
Description copied from interface:PredicateEvaluator
Does this XPath expression evaluate for the suppliedElement
context object. The implementation can update the context to a parent element if the expression targets multiple contexts.- Specified by:
evaluate
in interfacePredicateEvaluator
- Parameters:
fragment
- TheElement
context to be evaluated against.executionContext
- SmooksExecutionContext
.- Returns:
- True if the expression evaluates, otherwise false.
-
-