org.palo.api.utils
Class ElementNodeUtilities

java.lang.Object
  extended by org.palo.api.utils.ElementNodeUtilities

public class ElementNodeUtilities
extends java.lang.Object

ElementNodeUtilities

Some useful methods for dealing with ElementNodes

Version:
$Id: ElementNodeUtilities.html,v 1.15 2009/07/09 11:01:47 ArndHouben Exp $

Constructor Summary
ElementNodeUtilities()
           
 
Method Summary
static java.lang.String getPath(ElementNode elNode)
          Determines the path for the given ElementNode.
static ElementPath getPath(ElementNode elNode, Hierarchy hierarchy)
           
static Element[] getPathElements(ElementNode elNode)
          Determines the path for the given ElementNode.
static void traverse(ElementNode[] roots, ElementNodeVisitor visitor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementNodeUtilities

public ElementNodeUtilities()
Method Detail

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 Elements

Parameters:
elNode -
Returns:
array of Elements 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)