org.palo.api.utils
Class ElementUtilities

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

public class ElementUtilities
extends java.lang.Object

ElementUtilities

Some useful methods for dealing with Elements

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

Constructor Summary
ElementUtilities()
           
 
Method Summary
static java.lang.String getPaths(Element element)
          Returns all paths of given Element instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementUtilities

public ElementUtilities()
Method Detail

getPaths

public static final java.lang.String getPaths(Element element)
Returns all paths of given Element instance. Since an element can be used several times the returned path string can contain several paths too. A path consist of comma separated element ids and each path is colon separated, e.g. 1,2:3,2 meaning the element with id 2 has to parents, namely one with id 1 and a second one with id 3.

Parameters:
element - Element instance to determine the paths of
Returns:
colon separated paths of comma separated element ids