public interface Localizable
LocalizationContext| Modifier and Type | Interface and Description |
|---|---|
static interface |
Localizable.Builder<B extends Localizable.Builder<B>>
Base interface for
Localizable building |
static interface |
Localizable.LocalizableBuilder
Localizable builder |
static class |
Localizable.LocalizationException
Exception thrown for localization related errors.
|
| Modifier and Type | Method and Description |
|---|---|
static Localizable.LocalizableBuilder |
builder()
Get a builder to create a
Localizable instance |
String |
getMessage()
Get the default message to use if a
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. |
default Object[] |
getMessageArguments()
Optional arguments to use for message localization.
|
String |
getMessageCode()
Get the message code to use to obtain a localized message
|
String getMessageCode()
String getMessage()
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.default Object[] getMessageArguments()
By default this method returns null. Override it to provide message localization 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.
null if nonestatic Localizable.LocalizableBuilder builder()
Localizable instanceCopyright © 2017 The Holon Platform. All rights reserved.