public class ResourceFileFilter extends Object implements DataFilter
Constructor and Description |
---|
ResourceFileFilter()
Creates a new ResourceFileFilter.
|
Modifier and Type | Method and Description |
---|---|
ResourceFileFilter |
clone()
Clones this
DataSource . |
DataSource |
getDataSource()
Returns the assigned DataSource for this Target.
|
String |
getResourceIdentifier()
Returns the name of the used resource bundle.
|
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
void |
setDataSource(DataSource ds)
Assigns a DataSource for this Target.
|
void |
setResourceIdentifier(String resourceIdentifier)
Defines the name of the used resource bundle.
|
public String getResourceIdentifier()
ResourceBundleFactory.getResourceBundle(String)
public void setResourceIdentifier(String resourceIdentifier)
DataSource.getValue(ExpressionRuntime, org.pentaho.reporting.engine.classic.core.ReportElement)
will result
in null
values.resourceIdentifier
- the resource bundle namepublic Object getValue(ExpressionRuntime runtime, ReportElement element)
ResourceBundle.getObject()
method. If the lookup fails, null is returned.getValue
in interface DataSource
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public ResourceFileFilter clone() throws CloneNotSupportedException
DataSource
.clone
in interface DataSource
clone
in interface DataTarget
clone
in class Object
CloneNotSupportedException
- this should never happen.public DataSource getDataSource()
getDataSource
in interface DataTarget
public void setDataSource(DataSource ds)
setDataSource
in interface DataTarget
ds
- The data source.