Package net.sf.jasperreports.engine
Interface DatasetFilter
- All Known Implementing Classes:
CompositeDatasetFilter,FieldFilter
public interface DatasetFilter
A dataset row filter.
Such a filter can be used in addition to the dataset filter expression to match dataset rows based on a programmatic criteria.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(DatasetFillContext context) Initializes the filter.booleanmatches(EvaluationType evaluation) Determines whether the current row matches the filter criteria.
-
Method Details
-
init
Initializes the filter.- Parameters:
context- dataset context information
-
matches
Determines whether the current row matches the filter criteria. Matching rows are included in the report, while non-matching rows are skipped.- Parameters:
evaluation- the evaluation type. Currently onlyEvaluationType.ESTIMATEDis used.- Returns:
trueif the row is to be included in the report.
-