org.pentaho.reporting.engine.classic.core.states
Class StateUtilities

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.states.StateUtilities

public class StateUtilities
extends Object

Creation-Date: Dec 14, 2006, 7:59:39 PM

Author:
Thomas Morgner

Nested Class Summary
static class StateUtilities.DescendingComparator
          A comparator for levels in descending order.
 
Method Summary
static void computeLevels(DefaultFlowController report, LayoutProcess lp, HashSet<Integer> levels)
           
static ReportParameterValues computeParameterValueSet(MasterReport report)
          Computes the parameter value set for a given report.
static ReportParameterValues computeParameterValueSet(MasterReport report, ReportParameterValues parameterValues)
           
static ReportParameterValues computeParameterValueSet(SubReport report)
           
static int findGroupByName(ReportDefinition definition, String groupName)
          Deprecated. will be removed in the next release
static ValidationResult validate(MasterReport report, ValidationResult result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeLevels

public static void computeLevels(DefaultFlowController report,
                                 LayoutProcess lp,
                                 HashSet<Integer> levels)

validate

public static ValidationResult validate(MasterReport report,
                                        ValidationResult result)
                                 throws ReportProcessingException
Throws:
ReportProcessingException

computeParameterValueSet

public static ReportParameterValues computeParameterValueSet(MasterReport report)
                                                      throws ReportProcessingException
Computes the parameter value set for a given report. Note that this method ignores the validation result, so if the specified parameter values are wrong you may end up with a bunch of default values.

Parameters:
report -
Returns:
Throws:
ReportProcessingException

computeParameterValueSet

public static ReportParameterValues computeParameterValueSet(MasterReport report,
                                                             ReportParameterValues parameterValues)
                                                      throws ReportProcessingException
Throws:
ReportProcessingException

computeParameterValueSet

public static ReportParameterValues computeParameterValueSet(SubReport report)

findGroupByName

public static int findGroupByName(ReportDefinition definition,
                                  String groupName)
Deprecated. will be removed in the next release