org.pentaho.platform.engine.services.runtime
Class MapParameterResolver
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.engine.services.PentahoMessenger
org.pentaho.platform.engine.services.runtime.MapParameterResolver
- All Implemented Interfaces:
- Serializable, ILogger, IParameterResolver
public class MapParameterResolver
- extends PentahoMessenger
- implements IParameterResolver
This is a utility class that implements the IParameterResolver and resolves parameters
based on a lookup map provided.
- Author:
- Will Gorman
- See Also:
MDXBaseComponent
,
HQLBaseComponent
,
XQueryBaseComponent
,
Serialized Form
Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
Methods inherited from class org.pentaho.platform.engine.services.PentahoMessenger |
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn |
MapParameterResolver
public MapParameterResolver(Map map,
String prefix,
IRuntimeContext runtime)
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 IParameterResolver
- Parameters:
template
- the source stringparameter
- the parameter valueparameterMatcher
- the regex parameter matchercopyStart
- the start of the copyresults
- the output result
- Returns:
- the next copystart