Package ddf.util
Class XPathCache
java.lang.Object
ddf.util.XPathCache
This object is used to store compiled
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.- Since:
- 1.0.4
- Author:
- Ashraf Barakat
-
Method Summary
Modifier and TypeMethodDescriptionstatic XPathExpressiongetCompiledExpression(String xpathExpressionkey) static NamespaceContextstatic XPathgetXPath()static void
-
Method Details
-
getXPath
-
getCompiledExpression
public static XPathExpression getCompiledExpression(String xpathExpressionkey) throws XPathExpressionException, NullPointerException -
getNamespaceResolver
-
setNamespaceResolver
-