JTools

org.jtools.dao.invocation
Class InvocationUtils

java.lang.Object
  extended by org.jtools.dao.invocation.InvocationUtils

public class InvocationUtils
extends Object

TODO type-description

Author:
Rainer Noack

Nested Class Summary
static interface InvocationUtils.InstantiationHolder
           
 
Constructor Summary
InvocationUtils()
           
 
Method Summary
static Object addElement(Object element, InvocationStyle style, String elementname, Object value)
           
static Object createElement(Object element, InvocationStyle style, String elementname)
           
static Collection<InvocationUtils.InstantiationHolder> getConstructors(int invocationLevel, ConstructorHelper comp, Object parent, Class elementClass, String elementName, String value)
           
static
<T extends Enum>
T
getEnum(Class<T> c, String value)
           
static Object getName(Class arg, String name)
           
static boolean setAttribute(Object element, InvocationStyle style, String attributename, String value)
           
static Object setElement(boolean invoke, Object element, InvocationStyle style, String elementname, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationUtils

public InvocationUtils()
Method Detail

getName

public static Object getName(Class arg,
                             String name)

getEnum

public static <T extends Enum> T getEnum(Class<T> c,
                                         String value)

getConstructors

public static Collection<InvocationUtils.InstantiationHolder> getConstructors(int invocationLevel,
                                                                              ConstructorHelper comp,
                                                                              Object parent,
                                                                              Class elementClass,
                                                                              String elementName,
                                                                              String value)

setAttribute

public static boolean setAttribute(Object element,
                                   InvocationStyle style,
                                   String attributename,
                                   String value)
                            throws Exception
Throws:
Exception

createElement

public static Object createElement(Object element,
                                   InvocationStyle style,
                                   String elementname)
                            throws Exception
Throws:
Exception

addElement

public static Object addElement(Object element,
                                InvocationStyle style,
                                String elementname,
                                Object value)
                         throws Exception
Throws:
Exception

setElement

public static Object setElement(boolean invoke,
                                Object element,
                                InvocationStyle style,
                                String elementname,
                                Object value)
                         throws Exception
Throws:
Exception

JTools

© 2000-2006, JTools.org.