org.pentaho.platform.uifoundation.chart
Class FlashChartRequestMapper

java.lang.Object
  extended by org.pentaho.platform.engine.core.solution.BaseParameterProvider
      extended by org.pentaho.platform.engine.core.solution.SimpleParameterProvider
          extended by org.pentaho.platform.uifoundation.chart.FlashChartRequestMapper
All Implemented Interfaces:
IParameterProvider

public class FlashChartRequestMapper
extends SimpleParameterProvider


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.engine.IParameterProvider
SCOPE_REQUEST, SCOPE_SESSION
 
Constructor Summary
FlashChartRequestMapper(IParameterProvider request)
           
 
Method Summary
 Date getDateParameter(String name, Date defaultValue)
          Retrieve the requested parameter as type java.util.Date.
 BigDecimal getDecimalParameter(String name, BigDecimal defaultValue)
          Retrieve the requested parameter as decimal, returning a java.lang.Object.
 long getLongParameter(String name, long defaultValue)
          Retrieve the requested parameter as primitive Java type long.
 Object getParameter(String name)
          Gets the named parameter from the provider as it's native type
 Iterator getParameterNames()
          Return list of all avialable parameter names in this provider
 String getStringParameter(String name, String defaultValue)
          Retrieve the requested parameter as type java.lang.String
 
Methods inherited from class org.pentaho.platform.engine.core.solution.SimpleParameterProvider
copyAndConvertAdditionalParameters, copyAndConvertParameters, setParameter, setParameter, setParameter, setParameter, setParameters
 
Methods inherited from class org.pentaho.platform.engine.core.solution.BaseParameterProvider
getArrayParameter, getListParameter, getStringArrayParameter, hasParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.platform.api.engine.IParameterProvider
getArrayParameter, getStringArrayParameter, hasParameter
 

Constructor Detail

FlashChartRequestMapper

public FlashChartRequestMapper(IParameterProvider request)
Method Detail

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 retrieve
defaultValue - 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 retrieve
defaultValue - 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 retrieve
defaultValue - 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 retrieve
defaultValue - 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