@ThreadSafe @Singleton public final class DefaultTextResolver extends EnumTextResolverWithPropertiesOverrideAndFallback
DEFAULT_USE_RESOURCE_BUNDLE_CACHE, PREFIX_FALLBACK, PREFIX_OVERRIDEDEFAULT_CHECK_FOR_FALLBACK, DEFAULT_CHECK_FOR_OVERRIDE| Modifier and Type | Method and Description |
|---|---|
static DefaultTextResolver |
getInstance() |
static String |
getTextStatic(Enum<?> aEnum,
IHasText aTP,
Locale aContentLocale)
Get text
|
static String |
getTextWithArgsStatic(Enum<?> aEnum,
IHasTextWithArgs aTP,
Locale aContentLocale)
Deprecated.
Don't call this; Use the version without "WithArgs" because
there are no args
|
static String |
getTextWithArgsStatic(Enum<?> aEnum,
IHasTextWithArgs aTP,
Locale aContentLocale,
Object... aArgs)
Get text
|
static boolean |
isInstantiated() |
clearCache, getAllUsedFallbackBundleNames, getAllUsedOverrideBundleNames, internalGetFallbackString, internalGetOverrideString, isUseResourceBundleCache, setUseResourceBundleCachegetText, isCheckForFallback, isCheckForOverride, setCheckForFallback, setCheckForOverrideclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTextWithArgs, getTextWithArgspublic static boolean isInstantiated()
@Nonnull public static DefaultTextResolver getInstance()
null.@Nullable public static String getTextStatic(@Nonnull Enum<?> aEnum, @Nonnull IHasText aTP, @Nonnull Locale aContentLocale)
aEnum - Enumeration entry. May not be null.aTP - Text provider. May not be null.aContentLocale - Locale to use. May not be null.null if the text is not available in the specific
locale@Nullable @Deprecated @DevelopersNote(value="Use getTextStatic instead when no argument is needed!") public static String getTextWithArgsStatic(@Nonnull Enum<?> aEnum, @Nonnull IHasTextWithArgs aTP, @Nonnull Locale aContentLocale)
aEnum - Enumeration entry. May not be null.aTP - Text provider. May not be null.aContentLocale - Locale to use. May not be null.null if the text is not available in the specific
locale@Nullable public static String getTextWithArgsStatic(@Nonnull Enum<?> aEnum, @Nonnull IHasTextWithArgs aTP, @Nonnull Locale aContentLocale, @Nullable Object... aArgs)
aEnum - Enumeration entry. May not be null.aTP - Text provider. May not be null.aContentLocale - Locale to use. May not be null.aArgs - The arguments to be added for the placeholders. May neither be
null nor empty.null if the text is not available in the specific
localeCopyright © 2014–2022 Philip Helger. All rights reserved.