Package net.sf.jasperreports.engine.fill
Class JRParameterDefaultValuesEvaluator
java.lang.Object
net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator
Utility class to be used to evaluate parameter default value expressions for a report
without actually filling it.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionevaluateParameterDefaultValues
(JasperReport report, Map<String, Object> initialParameters) Evaluates the default values for the parameters of a report.evaluateParameterDefaultValues
(JasperReportsContext jasperReportsContext, JasperReport report, Map<String, Object> initialParameters) Evaluates the default values for the parameters of a report.evaluateParameterDefaultValues
(RepositoryContext repositoryContext, JasperReport report, Map<String, Object> initialParameters) Evaluates the default values for the parameters of a report.
-
Method Details
-
evaluateParameterDefaultValues
public static Map<String,Object> evaluateParameterDefaultValues(JasperReport report, Map<String, Object> initialParameters) throws JRExceptionEvaluates the default values for the parameters of a report.- Parameters:
report
- the reportinitialParameters
- initial parameter value map- Returns:
- a map containing parameter values indexed by parameter names
- Throws:
JRException
-
evaluateParameterDefaultValues
public static Map<String,Object> evaluateParameterDefaultValues(JasperReportsContext jasperReportsContext, JasperReport report, Map<String, Object> initialParameters) throws JRExceptionEvaluates the default values for the parameters of a report.- Parameters:
report
- the reportinitialParameters
- initial parameter value map- Returns:
- a map containing parameter values indexed by parameter names
- Throws:
JRException
-
evaluateParameterDefaultValues
public static Map<String,Object> evaluateParameterDefaultValues(RepositoryContext repositoryContext, JasperReport report, Map<String, Object> initialParameters) throws JRExceptionEvaluates the default values for the parameters of a report.- Parameters:
repositoryContext
- the repository contextreport
- the reportinitialParameters
- initial parameter value map- Returns:
- a map containing parameter values indexed by parameter names
- Throws:
JRException
-