|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.filter.ResourceFileFilter
public class ResourceFileFilter
Lookup a key from a datasource using a ResourceBundle.
Filters a given datasource and uses the datasource value as key for a ResourceBundle.
| Constructor Summary | |
|---|---|
ResourceFileFilter()
Creates a new ResourceFileFilter. |
|
| Method Summary | |
|---|---|
Object |
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,
Element 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceFileFilter()
| Method Detail |
|---|
public String getResourceIdentifier()
ResourceBundleFactory.getResourceBundle(String)public void setResourceIdentifier(String resourceIdentifier)
DataSource.getValue(ExpressionRuntime, Element) will result in null values.
resourceIdentifier - the resource bundle name
public Object getValue(ExpressionRuntime runtime,
Element element)
ResourceBundle.getObject() method. If the lookup fails, null is returned.
getValue in interface DataSourceruntime - the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element -
public Object clone()
throws CloneNotSupportedException
DataSource.
clone in interface DataSourceclone in interface DataTargetclone in class ObjectCloneNotSupportedException - this should never happen.public DataSource getDataSource()
getDataSource in interface DataTargetpublic void setDataSource(DataSource ds)
setDataSource in interface DataTargetds - The data source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||