B
- Concrete builder typepublic static interface Localizable.Builder<B extends Localizable.Builder<B>>
Localizable
buildingModifier and Type | Method and Description |
---|---|
B |
message(Localizable localizable)
Set the message localization attributes cloning them from given
Localizable . |
B |
message(String defaultMessage)
Set the default message to use if a
Localizable.getMessageCode() is not available or a localized message which
corresponds to the message code cannot be found or no localization handler is available for message
translation. |
B |
messageArguments(Object... arguments)
Set the arguments to use for message localization.
|
B |
messageCode(String messageCode)
Set the message code to use to obtain a localized message
|
B messageCode(String messageCode)
messageCode
- Message code to setB message(String defaultMessage)
Localizable.getMessageCode()
is not available or a localized message which
corresponds to the message code cannot be found or no localization handler is available for message
translation.defaultMessage
- Default message to setB messageArguments(Object... arguments)
Arguments resolution process is dependend from concrete localization handler. For example, a predefined argument placeholder character may be used to define arguments substitution positions within the localized message.
arguments
- Message localization argumentsB message(Localizable localizable)
Localizable
.
NOTE: current message localization attributes (message, message code and attributes) will be overriden by the
given localizable
attributes values.
localizable
- The Localizable
instance form which to clone the message localization attributes
(not null)Copyright © 2018 The Holon Platform. All rights reserved.