com.gargoylesoftware.htmlunit.html
Class Util

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.Util

public final class Util
extends Object

Provides some utilities for working on the Html document.

Version:
$Revision: 5397 $
Author:
Marc Guillemot, Ahmed Ashour

Method Summary
static Iterator<DomNode> getFollowingAxisIterator(DomNode contextNode)
          Gets an iterator over all following nodes, depth-first.
static Iterator<DomNode> getFollowingSiblingAxisIterator(DomNode contextNode)
          Gets an iterator over all following nodes, depth-first.
static Iterator<DomNode> getPrecedingAxisIterator(DomNode contextNode)
          Gets an iterator over all preceding nodes, depth-first.
static Iterator<DomNode> getPrecedingSiblingAxisIterator(DomNode contextNode)
          Gets an iterator over all preceding siblings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFollowingSiblingAxisIterator

public static Iterator<DomNode> getFollowingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.

Parameters:
contextNode - the context node for the following axis
Returns:
a possibly-empty iterator (not null)

getPrecedingSiblingAxisIterator

public static Iterator<DomNode> getPrecedingSiblingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding siblings.

Parameters:
contextNode - the context node for the preceding sibling axis
Returns:
a possibly-empty iterator (not null)

getFollowingAxisIterator

public static Iterator<DomNode> getFollowingAxisIterator(DomNode contextNode)
Gets an iterator over all following nodes, depth-first.

Parameters:
contextNode - the context node for the following axis
Returns:
a possibly-empty iterator (not null)

getPrecedingAxisIterator

public static Iterator<DomNode> getPrecedingAxisIterator(DomNode contextNode)
Gets an iterator over all preceding nodes, depth-first.

Parameters:
contextNode - the context node for the preceding axis
Returns:
a possibly-empty iterator (not null)


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