Class PositionPredicateEvaluator

    • Constructor Detail

      • PositionPredicateEvaluator

        public PositionPredicateEvaluator​(org.jaxen.expr.Expr expr,
                                          String elementName,
                                          String elementNS)
    • Method Detail

      • evaluate

        public boolean evaluate​(Fragment<?> fragment,
                                ExecutionContext executionContext)
        Description copied from interface: PredicateEvaluator
        Does this XPath expression evaluate for the supplied Element context object.

        The implementation can update the context to a parent element if the expression targets multiple contexts.

        Specified by:
        evaluate in interface PredicateEvaluator
        Parameters:
        fragment - The Element context to be evaluated against.
        executionContext - Smooks ExecutionContext.
        Returns:
        True if the expression evaluates, otherwise false.