Class ResourceBundleLookupExpression
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.core.function.strings.ResourceBundleLookupExpression
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Expression
public class ResourceBundleLookupExpression extends AbstractExpression
Performs a resource-bundle lookup using the value read from the defined field as key in the resource-bundle. This expression behaves like the Resource-field.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceBundleLookupExpression()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getField()
Returns the name of the datarow-column from where to read the resourcebundle key value.String
getResourceIdentifier()
Returns the name of the resource-bundle.Object
getValue()
Returns the current value for the data source.void
setField(String field)
Defines the name of the datarow-column from where to read the resourcebundle key value.void
setResourceIdentifier(String resourceIdentifier)
Defines name of the resource-bundle.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
-
-
-
-
Method Detail
-
getField
public String getField()
Returns the name of the datarow-column from where to read the resourcebundle key value.- Returns:
- the field.
-
setField
public void setField(String field)
Defines the name of the datarow-column from where to read the resourcebundle key value.- Parameters:
field
- the field.
-
getResourceIdentifier
public String getResourceIdentifier()
Returns the name of the resource-bundle. If none is defined here, the default resource-bundle is used instead.- Returns:
- the resource-bundle identifier.
-
setResourceIdentifier
public void setResourceIdentifier(String resourceIdentifier)
Defines name of the resource-bundle. If none is defined here, the default resource-bundle is used instead.- Parameters:
resourceIdentifier
- the resource-bundle identifier.
-
getValue
public Object getValue()
Returns the current value for the data source.- Returns:
- the value.
-
-