Search in sources :

Example 6 with SimpleParameterSetter

use of org.pentaho.platform.engine.services.solution.SimpleParameterSetter in project pentaho-platform by pentaho.

the class ActionSequenceParameterUiContentGenerator method getPathParameters.

@SuppressWarnings("unchecked")
public IParameterProvider getPathParameters() {
    // $NON-NLS-1$
    IParameterProvider pathParams = this.parameterProviders.get("path");
    SimpleParameterSetter parameters = new SimpleParameterSetter();
    Iterator pathParamIterator = pathParams.getParameterNames();
    while (pathParamIterator.hasNext()) {
        String param = (String) pathParamIterator.next();
        parameters.setParameter(param, pathParams.getParameter(param));
    }
    this.pathParameters = parameters;
    return parameters;
}
Also used : IParameterProvider(org.pentaho.platform.api.engine.IParameterProvider) SimpleParameterSetter(org.pentaho.platform.engine.services.solution.SimpleParameterSetter) Iterator(java.util.Iterator)

Aggregations

Iterator (java.util.Iterator)6 IParameterProvider (org.pentaho.platform.api.engine.IParameterProvider)6 SimpleParameterSetter (org.pentaho.platform.engine.services.solution.SimpleParameterSetter)6 SimpleParameterProvider (org.pentaho.platform.engine.core.solution.SimpleParameterProvider)3