Package com.helger.xml.xpath
Class XPathExpressionHelper
java.lang.Object
com.helger.xml.xpath.XPathExpressionHelper
Utility class to evaluate XPath expressions more easily
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionstatic Objectstatic ObjectevalXPath(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc, QName aReturnType) static BooleanevalXPathToBoolean(String sXPath, Document aDoc) static BooleanevalXPathToBoolean(XPath aXPath, String sXPath, Document aDoc) static BooleanevalXPathToBoolean(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc) static NodeevalXPathToNode(String sXPath, Document aDoc) static NodeevalXPathToNode(XPath aXPath, String sXPath, Document aDoc) static NodeevalXPathToNode(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc) static NodeListevalXPathToNodeList(String sXPath, Document aDoc) static NodeListevalXPathToNodeList(XPath aXPath, String sXPath, Document aDoc) static NodeListevalXPathToNodeList(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc) static DoubleevalXPathToNumber(String sXPath, Document aDoc) static DoubleevalXPathToNumber(XPath aXPath, String sXPath, Document aDoc) static DoubleevalXPathToNumber(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc) static StringevalXPathToString(String sXPath, Document aDoc) static StringevalXPathToString(XPath aXPath, String sXPath, Document aDoc) static StringevalXPathToString(XPathVariableResolver aVariableResolver, XPathFunctionResolver aFunctionResolver, NamespaceContext aNamespaceContext, String sXPath, Document aDoc)
-
Method Details
-
evalXPath
@Nullable public static Object evalXPath(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc, @Nonnull QName aReturnType) -
evalXPath
-
evalXPathToNumber
@Nullable public static Double evalXPathToNumber(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc) -
evalXPathToNumber
-
evalXPathToNumber
-
evalXPathToString
@Nullable public static String evalXPathToString(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc) -
evalXPathToString
-
evalXPathToString
-
evalXPathToBoolean
@Nullable public static Boolean evalXPathToBoolean(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc) -
evalXPathToBoolean
-
evalXPathToBoolean
-
evalXPathToNodeList
@Nullable public static NodeList evalXPathToNodeList(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc) -
evalXPathToNodeList
-
evalXPathToNodeList
-
evalXPathToNode
@Nullable public static Node evalXPathToNode(@Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver, @Nullable NamespaceContext aNamespaceContext, @Nonnull String sXPath, @Nonnull Document aDoc) -
evalXPathToNode
-
evalXPathToNode
-