public class XPathCache extends Object
XPathExpression
objects for the intention of
gaining performance. It retains a single XPathFactory
object and a single XPath
object for the purpose of doing the compilation. As of now it uses a HashMap
to store the
compiled XPathExpression
objects.Constructor and Description |
---|
XPathCache() |
Modifier and Type | Method and Description |
---|---|
static XPathExpression |
getCompiledExpression(String xpathExpressionkey) |
static NamespaceContext |
getNamespaceResolver() |
static XPath |
getXPath() |
static void |
setNamespaceResolver(NamespaceResolver nr) |
public static XPath getXPath()
public static XPathExpression getCompiledExpression(String xpathExpressionkey) throws XPathExpressionException, NullPointerException
public static NamespaceContext getNamespaceResolver()
public static void setNamespaceResolver(NamespaceResolver nr)
This work is licensed under a Creative Commons Attribution 4.0 International License.