|
||||||||||
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.ResourceMessageFormatFilter
public class ResourceMessageFormatFilter
A filter that formats values from the datarow using a message format object. The message format string is looked up from a Resource-Bundle.
Constructor Summary | |
---|---|
ResourceMessageFormatFilter()
Default constructor. |
Method Summary | |
---|---|
Object |
clone()
Clones this DataSource . |
String |
getFormatKey()
Returns the key that is used to lookup the format string used in the message format in the resource bundle. |
String |
getNullString()
Returns the replacement text that is used if one of the referenced message parameters is null. |
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 |
setFormatKey(String format)
Defines the key that is used to lookup the format string used in the message format in the resource bundle. |
void |
setNullString(String nullString)
Defines the replacement text that is used if one of the referenced message parameters is null. |
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 ResourceMessageFormatFilter()
Method Detail |
---|
public Object getValue(ExpressionRuntime runtime, Element element)
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 String getResourceIdentifier()
ResourceBundleFactory.getResourceBundle(String)
public void setResourceIdentifier(String resourceIdentifier)
DataSource.getValue(ExpressionRuntime, Element)
will result in null
values.
resourceIdentifier
- the resource bundle namepublic void setFormatKey(String format)
format
- a resourcebundle key for the message format lookup.public String getFormatKey()
public Object clone() throws CloneNotSupportedException
DataSource
.
clone
in interface DataSource
clone
in class Object
CloneNotSupportedException
- this should never happen.public String getNullString()
public void setNullString(String nullString)
nullString
- the replacement text for null-values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |