public static final class LocalizableMessage.Builder
extends java.lang.Object
LocalizableMessage
.Constructor and Description |
---|
Builder(java.lang.String id,
java.lang.String defaultMessage,
java.util.List<java.lang.String> args)
Constructor with parameters for the required properties of
LocalizableMessage . |
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
build() |
LocalizableMessage.Builder |
setLocalized(java.lang.String localized)
Localized string value as per request requirements.
|
LocalizableMessage.Builder |
setParams(java.util.Map<java.lang.String,LocalizationParam> params)
Named arguments to be substituted into the message template.
|
public Builder(java.lang.String id, java.lang.String defaultMessage, java.util.List<java.lang.String> args)
LocalizableMessage
.public LocalizableMessage.Builder setParams(java.util.Map<java.lang.String,LocalizationParam> params)
null
means that the message template requires no arguments or positional
arguments are used.params
- New value for the property.public LocalizableMessage.Builder setLocalized(java.lang.String localized)
localized
- New value for the property.public LocalizableMessage build()