Class TransformationDataLookup
- java.lang.Object
-
- org.ikasan.component.converter.xml.util.TransformationDataLookup
-
public class TransformationDataLookup extends java.lang.ObjectExposed to the XSLT stylesheet, provides static access to underlying data access functionality- Author:
- Ikasan Development Team
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_DELIMITERDefault delimiter for string arguments passed as a single argument
-
Constructor Summary
Constructors Constructor Description TransformationDataLookup()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.lang.ObjectgetBean(java.lang.String beanName)Retrieves the bean from aThreadLocalBeansWrapperstatic java.lang.StringlookupData(java.lang.String beanName, java.lang.String methodName, java.lang.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 delimiterstatic java.lang.StringlookupData(java.lang.String beanName, java.lang.String methodName, java.lang.String... stringArgs)Looks up a value from a named bean using a named bean method, with the string arguments specifiedstatic java.lang.StringlookupData(java.lang.String beanName, java.lang.String methodName, java.lang.String args, java.lang.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
-
-
-
Field Detail
-
DEFAULT_DELIMITER
public static final java.lang.String DEFAULT_DELIMITER
Default delimiter for string arguments passed as a single argument- See Also:
- Constant Field Values
-
-
Method Detail
-
lookupData
public static java.lang.String lookupData(java.lang.String beanName, java.lang.String methodName, java.lang.String args) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetExceptionLooks 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 scopemethodName- - name of method to call on beanargs- - possibly delimited set of String arguments- Returns:
- String value of the lookup result
- Throws:
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
lookupData
public static java.lang.String lookupData(java.lang.String beanName, java.lang.String methodName, java.lang.String args, java.lang.String delimiter) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetExceptionLooks 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 scopemethodName- - name of method to call on beanargs- - possibly delimited set of String argumentsdelimiter- - delimiter with which to parse the args for String arguments- Returns:
- String value of the lookup result
- Throws:
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
lookupData
public static java.lang.String lookupData(java.lang.String beanName, java.lang.String methodName, java.lang.String... stringArgs) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetExceptionLooks up a value from a named bean using a named bean method, with the string arguments specified- Parameters:
beanName- - name of bean within bean scopemethodName- - name of method to call on beanstringArgs- - array of String arguments for this bean method- Returns:
- String value of the lookup result
- Throws:
java.lang.SecurityExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getBean
protected static java.lang.Object getBean(java.lang.String beanName)
Retrieves the bean from aThreadLocalBeansWrapper- Parameters:
beanName-- Returns:
- The bean
-
-