Class EmptyDataSource
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.EmptyDataSource
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DataSource
public final class EmptyDataSource extends Object implements DataSource
A data source that always returns null.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmptyDataSource()
Default-Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmptyDataSource
clone()
Clones the data source.Object
getValue(ExpressionRuntime runtime, ReportElement element)
Returns the value for the data source (always null in this case).
-
-
-
Method Detail
-
getValue
public Object getValue(ExpressionRuntime runtime, ReportElement element)
Returns the value for the data source (always null in this case).- Specified by:
getValue
in interfaceDataSource
- Parameters:
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.element
-- Returns:
- always null.
-
clone
public EmptyDataSource clone()
Clones the data source.- Specified by:
clone
in interfaceDataSource
- Overrides:
clone
in classObject
- Returns:
- a clone.
-
-