Package net.sf.jasperreports.engine.fill
Class FillFunctionContext
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.FillFunctionContext
-
- All Implemented Interfaces:
FunctionContext
public class FillFunctionContext extends java.lang.Object implements FunctionContext
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description FillFunctionContext(java.util.Map<java.lang.String,JRFillParameter> parametersMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getParameterValue(java.lang.String parameterName)
Returns the value of a parameter.java.lang.Object
getParameterValue(java.lang.String parameterName, boolean ignoreMissing)
Returns the value of a parameter.protected java.util.Map<java.lang.String,java.lang.Object>
getParameterValuesMap()
Returns the map of parameter values.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_PARAMETER_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FillFunctionContext
public FillFunctionContext(java.util.Map<java.lang.String,JRFillParameter> parametersMap)
-
-
Method Detail
-
getParameterValue
public java.lang.Object getParameterValue(java.lang.String parameterName)
Returns the value of a parameter.- Specified by:
getParameterValue
in interfaceFunctionContext
- Parameters:
parameterName
- the parameter name- Returns:
- the parameter value
-
getParameterValue
public java.lang.Object getParameterValue(java.lang.String parameterName, boolean ignoreMissing)
Returns the value of a parameter.- Specified by:
getParameterValue
in interfaceFunctionContext
- Parameters:
parameterName
- the parameter nameignoreMissing
- if set,null
will be returned for inexisting parameters- Returns:
- the parameter value
-
getParameterValuesMap
protected java.util.Map<java.lang.String,java.lang.Object> getParameterValuesMap()
Returns the map of parameter values.- Returns:
- the map of parameter values
-
-