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: 2132 $
Author:
Marc Guillemot, Ahmed Ashour

Method Summary
static Iterator getFollowingAxisIterator(DomNode contextNode)
          Get an iterator over all following nodes, depth-first.
static Iterator getFollowingSiblingAxisIterator(DomNode contextNode)
          Get an iterator over all following nodes, depth-first.
static Iterator getPrecedingAxisIterator(DomNode contextNode)
          Get an iterator over all preceding nodes, depth-first.
static Iterator getPrecedingSiblingAxisIterator(DomNode contextNode)
          Get 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 getFollowingSiblingAxisIterator(DomNode contextNode)
Get 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 getPrecedingSiblingAxisIterator(DomNode contextNode)
Get 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 getFollowingAxisIterator(DomNode contextNode)
Get 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 getPrecedingAxisIterator(DomNode contextNode)
Get 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.