org.ikasan.framework.component.transformation.xslt.util
Class TransformationDataLookup

java.lang.Object
  extended by org.ikasan.framework.component.transformation.xslt.util.TransformationDataLookup

public class TransformationDataLookup
extends Object

Exposed to the XSLT stylesheet, provides static access to underlying data access functionality

Author:
Ikasan Development Team

Field Summary
static String DEFAULT_DELIMITER
          Default delimiter for string arguments passed as a single argument
 
Constructor Summary
TransformationDataLookup()
           
 
Method Summary
protected static Object getBean(String beanName)
          Retrieves the bean from a ThreadLocalBeansWrapper
static String lookupData(String beanName, String methodName, String... stringArgs)
          Looks up a value from a named bean using a named bean method, with the string arguments specified
static String lookupData(String beanName, String methodName, String args)
          Looks up a value from a named bean using a named bean method, with the string arguments specified, and delimited with the default delimiter
static String lookupData(String beanName, String methodName, String args, String delimiter)
          Looks up a value from a named bean using a named bean method, with the string arguments specified, and delimited with the specified delimiter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DELIMITER

public static final String DEFAULT_DELIMITER
Default delimiter for string arguments passed as a single argument

See Also:
Constant Field Values
Constructor Detail

TransformationDataLookup

public TransformationDataLookup()
Method Detail

lookupData

public static String lookupData(String beanName,
                                String methodName,
                                String args)
                         throws SecurityException,
                                NoSuchMethodException,
                                IllegalArgumentException,
                                IllegalAccessException,
                                InvocationTargetException
Looks up a value from a named bean using a named bean method, with the string arguments specified, and delimited with the default delimiter

Parameters:
beanName - - name of bean within bean scope
methodName - - name of method to call on bean
args - - possibly delimited set of String arguments
Returns:
String value of the lookup result
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException

lookupData

public static String lookupData(String beanName,
                                String methodName,
                                String args,
                                String delimiter)
                         throws SecurityException,
                                NoSuchMethodException,
                                IllegalArgumentException,
                                IllegalAccessException,
                                InvocationTargetException
Looks up a value from a named bean using a named bean method, with the string arguments specified, and delimited with the specified delimiter

Parameters:
beanName - - name of bean within bean scope
methodName - - name of method to call on bean
args - - possibly delimited set of String arguments
delimiter - - delimiter with which to parse the args for String arguments
Returns:
String value of the lookup result
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException

lookupData

public static String lookupData(String beanName,
                                String methodName,
                                String... stringArgs)
                         throws SecurityException,
                                NoSuchMethodException,
                                IllegalArgumentException,
                                IllegalAccessException,
                                InvocationTargetException
Looks up a value from a named bean using a named bean method, with the string arguments specified

Parameters:
beanName - - name of bean within bean scope
methodName - - name of method to call on bean
stringArgs - - array of String arguments for this bean method
Returns:
String value of the lookup result
Throws:
SecurityException
NoSuchMethodException
IllegalArgumentException
IllegalAccessException
InvocationTargetException

getBean

protected static Object getBean(String beanName)
Retrieves the bean from a ThreadLocalBeansWrapper

Parameters:
beanName -
Returns:
The bean


Copyright © 2007-2012 Ikasan. All Rights Reserved.