public class SaxonXPathRuleQuery extends AbstractXPathRuleQuery
properties, ruleChainVisits, version, xpath
XPATH_1_0, XPATH_1_0_COMPATIBILITY, XPATH_2_0
Constructor and Description |
---|
SaxonXPathRuleQuery() |
Modifier and Type | Method and Description |
---|---|
List<Node> |
evaluate(Node node,
RuleContext data)
Evaluate the XPath query against the given Node.
|
boolean |
isSupportedVersion(String version)
Subclasses should implement to indicate whether an XPath version is
supported.
|
getRuleChainVisits, setProperties, setVersion, setXPath
public boolean isSupportedVersion(String version)
isSupportedVersion
in class AbstractXPathRuleQuery
version
- The XPath version.true
if the XPath version is supported,
false
otherwise.public List<Node> evaluate(Node node, RuleContext data)
evaluate
in interface XPathRuleQuery
evaluate
in class AbstractXPathRuleQuery
node
- The Node.data
- The RuleContext.Copyright © 2002-2017 PMD. All Rights Reserved.