Package net.sf.jasperreports.engine.fill
Class JRParameterDefaultValuesEvaluator
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.JRParameterDefaultValuesEvaluator
-
public final class JRParameterDefaultValuesEvaluator extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>
evaluateParameterDefaultValues(JasperReport report, Map<String,Object> initialParameters)
Evaluates the default values for the parameters of a report.static Map<String,Object>
evaluateParameterDefaultValues(JasperReportsContext jasperReportsContext, JasperReport report, Map<String,Object> initialParameters)
Evaluates the default values for the parameters of a report.static Map<String,Object>
evaluateParameterDefaultValues(RepositoryContext repositoryContext, JasperReport report, Map<String,Object> initialParameters)
Evaluates the default values for the parameters of a report.
-
-
-
Method Detail
-
evaluateParameterDefaultValues
public static Map<String,Object> evaluateParameterDefaultValues(JasperReport report, Map<String,Object> initialParameters) throws JRException
Evaluates 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 JRException
Evaluates 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 JRException
Evaluates 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
-
-