org.pentaho.reporting.engine.classic.core.function.strings
Class ResourceBundleLookupExpression

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by 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
ResourceBundleLookupExpression()
          Default Constructor.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleLookupExpression

public ResourceBundleLookupExpression()
Default Constructor.

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.