Class DefaultPredicateEvaluator
- java.lang.Object
-
- org.smooks.engine.resource.config.xpath.predicate.DefaultPredicateEvaluator
-
- All Implemented Interfaces:
Predicate
,PredicateEvaluator
public class DefaultPredicateEvaluator extends Object implements PredicateEvaluator
-
-
Constructor Summary
Constructors Constructor Description DefaultPredicateEvaluator(org.jaxen.expr.Expr expr)
-
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.
-
-
-
Method Detail
-
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.
-
-