public class ResourceMesssageFormatExpression extends AbstractExpression
Constructor and Description |
---|
ResourceMesssageFormatExpression()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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()
Returns the formatted message.
|
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.
|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public ResourceMesssageFormatExpression()
public String getResourceIdentifier()
ResourceBundleFactory.getResourceBundle(String)
public void setResourceIdentifier(String resourceIdentifier)
getValue()
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 String getNullString()
public void setNullString(String nullString)
nullString
- the replacement text for null-values.public Object getValue()