Class MapParameterResolver

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.engine.ILogger, org.pentaho.platform.api.engine.IParameterResolver

    public class MapParameterResolver
    extends PentahoMessenger
    implements org.pentaho.platform.api.engine.IParameterResolver
    This is a utility class that implements the IParameterResolver and resolves parameters based on a lookup map provided.
    Will Gorman
    See Also:
    MDXBaseComponent, HQLBaseComponent, XQueryBaseComponent, Serialized Form
    • Constructor Detail

      • MapParameterResolver

        public MapParameterResolver​(Map map,
                                    String prefix,
                                    org.pentaho.platform.api.engine.IRuntimeContext runtime)
    • Method Detail

      • getLogger

        public org.apache.commons.logging.Log getLogger()
        Specified by:
        getLogger in class PentahoBase
      • resolveParameter

        public int resolveParameter​(String template,
                                    String parameter,
                                    Matcher parameterMatcher,
                                    int copyStart,
                                    StringBuffer results)
        This method is called when TemplateUtil.applyTemplate() encounters a parameter.
        Specified by:
        resolveParameter in interface org.pentaho.platform.api.engine.IParameterResolver
        template - the source string
        parameter - the parameter value
        parameterMatcher - the regex parameter matcher
        copyStart - the start of the copy
        results - the output result
        the next copystart