org.palo.api.utils
Class ElementNodeUtilities
java.lang.Object
org.palo.api.utils.ElementNodeUtilities
public class ElementNodeUtilities
- extends java.lang.Object
ElementNodeUtilities
Some useful methods for dealing with ElementNode
s
- Version:
- $Id: ElementNodeUtilities.html,v 1.15 2009/07/09 11:01:47 ArndHouben Exp $
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementNodeUtilities
public ElementNodeUtilities()
getPath
public static final java.lang.String getPath(ElementNode elNode)
- Determines the path for the given
ElementNode
. The
path consists of a comma separated list of element identifiers
- Parameters:
elNode
-
- Returns:
getPathElements
public static final Element[] getPathElements(ElementNode elNode)
- Determines the path for the given
ElementNode
. The
path is expressed as an array of Element
s
- Parameters:
elNode
-
- Returns:
- array of
Element
s which build the path to
given ElementNode
getPath
public static final ElementPath getPath(ElementNode elNode,
Hierarchy hierarchy)
traverse
public static final void traverse(ElementNode[] roots,
ElementNodeVisitor visitor)