Class AbstractXPathRuleQuery

    • Field Detail

      • xpath

        protected String xpath
        Deprecated.
        The XPath query string.
      • version

        protected String version
        Deprecated.
        The XPath version;
      • ruleChainVisits

        protected final List<String> ruleChainVisits
        Deprecated.
        Subclasses can manage RuleChain visits via this list.
    • Constructor Detail

      • AbstractXPathRuleQuery

        public AbstractXPathRuleQuery()
        Deprecated.
    • Method Detail

      • setXPath

        public void setXPath​(String xpath)
        Deprecated.
        Description copied from interface: XPathRuleQuery
        Set the XPath query string to be used.
        Specified by:
        setXPath in interface XPathRuleQuery
        Parameters:
        xpath - The XPath query string.
      • isSupportedVersion

        protected abstract boolean isSupportedVersion​(String version)
        Deprecated.
        Subclasses should implement to indicate whether an XPath version is supported.
        Parameters:
        version - The XPath version.
        Returns:
        true if the XPath version is supported, false otherwise.
      • getRuleChainVisits

        public List<String> getRuleChainVisits()
        Deprecated.
        Description copied from interface: XPathRuleQuery
        Indicates which AST Nodes (if any) should be used with the RuleChain. Use of the RuleChain will allow the query execute on a targeted sub-tree of the AST, instead of the entire AST from the root. This can result in great performance benefits.
        Specified by:
        getRuleChainVisits in interface XPathRuleQuery
      • evaluate

        public abstract List<Node> evaluate​(Node node,
                                            RuleContext data)
        Deprecated.
        Description copied from interface: XPathRuleQuery
        Evaluate the XPath query against the given Node.
        Specified by:
        evaluate in interface XPathRuleQuery
        Parameters:
        node - The Node.
        data - The RuleContext.
        Returns:
        The matching Nodes.