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