Class CompiledXPath<T,U extends XPathFactory>
- java.lang.Object
-
- org.jdom2.xpath.util.AbstractXPathCompiled<T>
-
- gov.nist.secauto.decima.xml.jdom2.saxon.xpath.CompiledXPath<T,U>
-
- All Implemented Interfaces:
Cloneable
,XPathVariableResolver
,org.jdom2.xpath.XPathExpression<T>
- Direct Known Subclasses:
SaxonCompiledXPath
public class CompiledXPath<T,U extends XPathFactory> extends org.jdom2.xpath.util.AbstractXPathCompiled<T> implements XPathVariableResolver
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<?>
evaluateRawAll(Object context)
protected Object
evaluateRawFirst(Object context)
protected U
getXPathFactory()
Object
resolveVariable(QName variableName)
-
-
-
Constructor Detail
-
CompiledXPath
public CompiledXPath(U xpathFactory, String query, org.jdom2.filter.Filter<T> filter, Map<String,Object> variables, org.jdom2.Namespace[] namespaces)
Constructs a compiled XPath expression.- Parameters:
xpathFactory
- the XPath factory to use to compile the XPathquery
- the XPath query stringfilter
- a filter to determine the type of elements to be returnedvariables
- a mapping of variables used in the XPathnamespaces
- the namespaces that are used in the XPath
-
-
Method Detail
-
getXPathFactory
protected U getXPathFactory()
-
evaluateRawAll
protected List<?> evaluateRawAll(Object context)
- Specified by:
evaluateRawAll
in classorg.jdom2.xpath.util.AbstractXPathCompiled<T>
-
evaluateRawFirst
protected Object evaluateRawFirst(Object context)
- Specified by:
evaluateRawFirst
in classorg.jdom2.xpath.util.AbstractXPathCompiled<T>
-
resolveVariable
public Object resolveVariable(QName variableName)
- Specified by:
resolveVariable
in interfaceXPathVariableResolver
-
-