net.sf.jasperreports.engine.fill
Class JRParameterDefaultValuesEvaluator

java.lang.Object
  extended by 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.

Version:
$Id: JRParameterDefaultValuesEvaluator.java 5292 2012-04-23 15:30:44Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)

Nested Class Summary
protected static class JRParameterDefaultValuesEvaluator.ObjectFactory
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 report
initialParameters - 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 report
initialParameters - initial parameter value map
Returns:
a map containing parameter values indexed by parameter names
Throws:
JRException


Copyright © 2012. All Rights Reserved.