ch.tatool.core.element
Class ElementUtils

java.lang.Object
  extended by ch.tatool.core.element.ElementUtils

public class ElementUtils
extends Object


Constructor Summary
ElementUtils()
           
 
Method Summary
static Object findHandlerInStackByType(ExecutionContext context, Class<?> type)
          Finds a handler or element in the current stack by a specific type This method searches from the top of the stack down to the root element.
static void initialize(Element element)
          Calls initialize on all objects contained in the element that implement Initializable.
static void initialize(Element parent, Object object)
          Initialize an object with the given parent Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementUtils

public ElementUtils()
Method Detail

initialize

public static void initialize(Element element)
Calls initialize on all objects contained in the element that implement Initializable.


initialize

public static void initialize(Element parent,
                              Object object)
Initialize an object with the given parent Element. This method does nothing if object does not implement Initializable

Parameters:
parent -
object -

findHandlerInStackByType

public static Object findHandlerInStackByType(ExecutionContext context,
                                              Class<?> type)
Finds a handler or element in the current stack by a specific type This method searches from the top of the stack down to the root element.



Copyright © 2012. All Rights Reserved.