Class TransformationDataLookup


  • public class TransformationDataLookup
    extends java.lang.Object
    Exposed 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.String DEFAULT_DELIMITER
      Default delimiter for string arguments passed as a single argument
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.Object getBean​(java.lang.String beanName)
      Retrieves the bean from a ThreadLocalBeansWrapper
      static java.lang.String lookupData​(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 delimiter
      static java.lang.String lookupData​(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 specified
      static java.lang.String lookupData​(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
      • 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 java.lang.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 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.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:
        java.lang.SecurityException
        java.lang.NoSuchMethodException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.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.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:
        java.lang.SecurityException
        java.lang.NoSuchMethodException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.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.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:
        java.lang.SecurityException
        java.lang.NoSuchMethodException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • getBean

        protected static java.lang.Object getBean​(java.lang.String beanName)
        Retrieves the bean from a ThreadLocalBeansWrapper
        Parameters:
        beanName -
        Returns:
        The bean