public class MessageFieldTemplate extends AbstractTemplate
MessageFormatSupport
,
Serialized FormConstructor and Description |
---|
MessageFieldTemplate()
Creates a new string field template.
|
Modifier and Type | Method and Description |
---|---|
MessageFieldTemplate |
clone()
Clones the template.
|
String |
getFormat()
Returns the format string used in the message format filter.
|
String |
getNullValue()
Returns the value displayed by the field when the data source value is
null . |
Object |
getValue(ExpressionRuntime runtime,
ReportElement element)
Returns the current value for the data source.
|
void |
setFormat(String format)
Redefines the format string for the message format.
|
void |
setNullValue(String nullValue)
Sets the value displayed by the field when the data source value is
null . |
getInstance, getName, setName
public MessageFieldTemplate()
public String getFormat()
public void setFormat(String format)
format
- the new format string.public String getNullValue()
null
.null
.public void setNullValue(String nullValue)
null
.nullValue
- the value that represents null
.public Object getValue(ExpressionRuntime runtime, ReportElement element)
runtime
- the expression runtime that is used to evaluate formulas and expressions when computing the value of this
filter.element
- public MessageFieldTemplate clone() throws CloneNotSupportedException
clone
in interface DataSource
clone
in class AbstractTemplate
CloneNotSupportedException
- this should never happen.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.