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 |
---|---|
java.util.List<Node> |
evaluate(Node node,
RuleContext data)
Evaluate the XPath query against the given Node.
|
static net.sf.saxon.value.AtomicValue |
getAtomicRepresentation(java.lang.Object value)
Gets the Saxon representation of the parameter, if its type corresponds
to an XPath 2.0 atomic datatype.
|
boolean |
isSupportedVersion(java.lang.String version)
Subclasses should implement to indicate whether an XPath version is
supported.
|
getRuleChainVisits, setProperties, setVersion, setXPath
public boolean isSupportedVersion(java.lang.String version)
isSupportedVersion
in class AbstractXPathRuleQuery
version
- The XPath version.true
if the XPath version is supported,
false
otherwise.public java.util.List<Node> evaluate(Node node, RuleContext data)
evaluate
in interface XPathRuleQuery
evaluate
in class AbstractXPathRuleQuery
node
- The Node.data
- The RuleContext.public static net.sf.saxon.value.AtomicValue getAtomicRepresentation(java.lang.Object value)
value
- The value to convertCopyright © 2002–2017 PMD. All rights reserved.