Class LocalizationUtil
java.lang.Object
com.evolveum.midpoint.schema.util.LocalizationUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalizableMessageType
createForFallbackMessage
(String fallbackMessage) static LocalizableMessageType
createForKey
(String key) static LocalizableMessageType
static LocalizableMessageType
createLocalizableMessageType
(LocalizableMessage message, Function<LocalizableMessage, String> resolveKeys) static Locale
Returns locale object for provided string usingLocaleUtils.toLocale(String)
.static Locale
Returns locale object for provided string usingLocaleUtils.toLocale(String)
.static LocalizableMessage
toLocalizableMessage
(@NotNull LocalizableMessageType message) static LocalizableMessage
toLocalizableMessage
(@NotNull SingleLocalizableMessageType message)
-
Field Details
-
LOGGER
-
-
Constructor Details
-
LocalizationUtil
public LocalizationUtil()
-
-
Method Details
-
createLocalizableMessageType
-
createLocalizableMessageType
public static LocalizableMessageType createLocalizableMessageType(LocalizableMessage message, Function<LocalizableMessage, String> resolveKeys) -
createForFallbackMessage
-
createForKey
-
toLocalizableMessage
public static LocalizableMessage toLocalizableMessage(@NotNull @NotNull LocalizableMessageType message) -
toLocalizableMessage
public static LocalizableMessage toLocalizableMessage(@NotNull @NotNull SingleLocalizableMessageType message) -
toLocale
Returns locale object for provided string usingLocaleUtils.toLocale(String)
. If the input string is null, or the conversion fails, null is returned. -
toLocale
Returns locale object for provided string usingLocaleUtils.toLocale(String)
. If the input string is null, or the conversion fails, provided defaultLocale is returned.
-