com.gargoylesoftware.htmlunit.html
Class Util

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

public final class Util
extends java.lang.Object

Provides some utilities for working on the Html document.

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

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

Method Detail

getFollowingAxisIterator

public static java.util.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).

getFollowingSiblingAxisIterator

public static java.util.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).

getPrecedingAxisIterator

public static java.util.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).

getPrecedingSiblingAxisIterator

public static java.util.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).


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.