|
||||||||||
| 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.templates.AbstractTemplate
org.pentaho.reporting.engine.classic.core.filter.templates.ResourceMessageTemplate
public class ResourceMessageTemplate
A field template that formats values from the datarow using a message format object. The message format string is looked up from a Resource-Bundle.
| Constructor Summary | |
|---|---|
ResourceMessageTemplate()
Creates a new template. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clones the template. |
String |
getFormatKey()
Returns the key that is used to lookup the format string used in the message format in the resource bundle. |
String |
getNullValue()
Returns the string that represents a null value. |
String |
getResourceIdentifier()
Returns the resource class name. |
Object |
getValue(ExpressionRuntime runtime,
Element element)
Returns the current value for the data source. |
void |
setFormatKey(String formatKey)
Defines the key that is used to lookup the format string used in the message format in the resource bundle. |
void |
setNullValue(String nullValue)
Sets the string that represents a null value. |
void |
setResourceIdentifier(String resourceClassName)
Sets the resource class name. |
| Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.templates.AbstractTemplate |
|---|
getInstance, getName, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceMessageTemplate()
| Method Detail |
|---|
public String getFormatKey()
public void setFormatKey(String formatKey)
formatKey - a resourcebundle key for the message format lookup.public String getResourceIdentifier()
public void setResourceIdentifier(String resourceClassName)
throws MissingResourceException
resourceClassName - the resource class name.
MissingResourceException - if the resource is missing.public String getNullValue()
null value.
null value.public void setNullValue(String nullValue)
null value.
nullValue - the string that represents a null value.
public Object getValue(ExpressionRuntime runtime,
Element element)
runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of
this filter.element -
public Object clone()
throws CloneNotSupportedException
clone in interface DataSourceclone in class AbstractTemplateCloneNotSupportedException - this should never happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||