org.pentaho.reporting.engine.classic.core.parameters
Interface ReportParameterValidator

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultReportParameterValidator

public interface ReportParameterValidator
extends Serializable

The report parameter validator is responsible for validating the values provided by the user. The parameters must be valid before the reporting can start. Validation can happen any time in the parametrization process, but will be always executed by the report processor and make the report-processing fail if the validator fails.

Author:
Thomas Morgner

Method Summary
 ValidationResult validate(ValidationResult result, ReportParameterDefinition parameterDefinition, ParameterContext parameterContext)
          Validates the parameter set.
 

Method Detail

validate

ValidationResult validate(ValidationResult result,
                          ReportParameterDefinition parameterDefinition,
                          ParameterContext parameterContext)
                          throws ReportDataFactoryException,
                                 ReportProcessingException
Validates the parameter set.

Parameters:
result - the validation result, null to create a new one.
parameterDefinition - the parameter definitions.
parameterContext - the parameter context
Returns:
the validation result, never null.
Throws:
ReportDataFactoryException
ReportProcessingException