com.gargoylesoftware.htmlunit.html.xpath
Class XPathUtils

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.xpath.XPathUtils

public final class XPathUtils
extends Object

Collection of XPath utility methods.

Version:
$Revision: 5301 $
Author:
Ahmed Ashour

Method Summary
static List<Object> getByXPath(DomNode node, String xpathExpr)
          Evaluates an XPath expression from the specified node, returning the resultant nodes.
static boolean isProcessingXPath()
          Returns whether the thread is currently evaluating XPath expression or no.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getByXPath

public static List<Object> getByXPath(DomNode node,
                                      String xpathExpr)
Evaluates an XPath expression from the specified node, returning the resultant nodes.

Parameters:
node - the node to start searching from
xpathExpr - the XPath expression
Returns:
the list of objects found

isProcessingXPath

public static boolean isProcessingXPath()
Returns whether the thread is currently evaluating XPath expression or no.

Returns:
whether the thread is currently evaluating XPath expression or no


Copyright © 2002-2011 Gargoyle Software Inc.. All Rights Reserved.