@Immutable public final class DefaultTextResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache() |
static Set<String> |
getAllUsedFallbackBundleNames() |
static Set<String> |
getAllUsedOverrideBundleNames() |
static String |
getText(Enum<?> aEnum,
ITextProvider aTP,
Locale aContentLocale)
Get the text of the given element in the given locale.
|
static String |
getTextWithArgs(Enum<?> aEnum,
ITextProvider aTP,
Locale aContentLocale,
Object[] aArgs)
Get the text of the given element in the given locale using the passed
arguments.
|
static boolean |
isUseResourceBundleCache() |
static void |
setUseResourceBundleCache(boolean bUseResourceBundleCache) |
public static boolean isUseResourceBundleCache()
public static void setUseResourceBundleCache(boolean bUseResourceBundleCache)
@Nullable public static String getText(@Nonnull Enum<?> aEnum, @Nonnull ITextProvider aTP, @Nonnull Locale aContentLocale)
aEnum - The enum element required for ID resolutionaTP - The text provider holding the static textsaContentLocale - The locale to be used for resolvingnull if the text could not be resolved.@Nullable public static String getTextWithArgs(@Nonnull Enum<?> aEnum, @Nonnull ITextProvider aTP, @Nonnull Locale aContentLocale, @Nullable Object[] aArgs)
aEnum - The enum element required for ID resolutionaTP - The text provider holding the static textsaContentLocale - The locale to be used for resolvingaArgs - The arguments to be inserted into the string, may be
nullnull if the
passed text could not be resolved.@Nonnull @ReturnsMutableCopy public static Set<String> getAllUsedOverrideBundleNames()
@Nonnull @ReturnsMutableCopy public static Set<String> getAllUsedFallbackBundleNames()
public static void clearCache()
Copyright © 2006–2015 phloc systems. All rights reserved.