org.pentaho.platform.engine.services.solution
Class FlashChartRequestMapper
java.lang.Object
org.pentaho.platform.engine.core.solution.BaseParameterProvider
org.pentaho.platform.engine.core.solution.SimpleParameterProvider
org.pentaho.platform.engine.services.solution.FlashChartRequestMapper
- All Implemented Interfaces:
- IParameterProvider
public class FlashChartRequestMapper
- extends SimpleParameterProvider
FlashChartRequestMapper
public FlashChartRequestMapper(IParameterProvider request)
getStringParameter
public String getStringParameter(String name,
String defaultValue)
- Description copied from interface:
IParameterProvider
- Retrieve the requested parameter as type java.lang.String
- Specified by:
getStringParameter
in interface IParameterProvider
- Overrides:
getStringParameter
in class BaseParameterProvider
- Parameters:
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
- Returns:
- value of requested parameter, or the defaultValue if not found
getLongParameter
public long getLongParameter(String name,
long defaultValue)
- Description copied from interface:
IParameterProvider
- Retrieve the requested parameter as primitive Java type long.
- Specified by:
getLongParameter
in interface IParameterProvider
- Overrides:
getLongParameter
in class BaseParameterProvider
- Parameters:
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
- Returns:
- value of requested parameter, or the defaultValue if not found
getDateParameter
public Date getDateParameter(String name,
Date defaultValue)
- Description copied from interface:
IParameterProvider
- Retrieve the requested parameter as type java.util.Date.
- Specified by:
getDateParameter
in interface IParameterProvider
- Overrides:
getDateParameter
in class BaseParameterProvider
- Parameters:
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
- Returns:
- value of requested parameter, or the defaultValue if not found
getDecimalParameter
public BigDecimal getDecimalParameter(String name,
BigDecimal defaultValue)
- Description copied from interface:
IParameterProvider
- Retrieve the requested parameter as decimal, returning a
java.lang.Object.
- Specified by:
getDecimalParameter
in interface IParameterProvider
- Overrides:
getDecimalParameter
in class BaseParameterProvider
- Parameters:
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
- Returns:
- value of requested parameter, or the defaultValue if not found
getParameterNames
public Iterator getParameterNames()
- Description copied from interface:
IParameterProvider
- Return list of all avialable parameter names in this
provider
- Specified by:
getParameterNames
in interface IParameterProvider
- Overrides:
getParameterNames
in class SimpleParameterProvider
- Returns:
- Set of parameter names
getParameter
public Object getParameter(String name)
- Description copied from interface:
IParameterProvider
- Gets the named parameter from the provider as it's native type
- Specified by:
getParameter
in interface IParameterProvider
- Overrides:
getParameter
in class SimpleParameterProvider
- Parameters:
name
- The name of the parameter to retrieve
- Returns:
- The native object