public abstract class AbstractTextProvider extends AbstractSimpleTextProvider implements ITextProvider
ITextProvider that has default
implementations for the formatting things.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTextWithArgs(Locale aContentLocale,
Object... aArgs)
Get the text specific for the passed locale.
|
String |
getTextWithLocaleFallbackAndArgs(Locale aContentLocale,
Object... aArgs)
Get the text specific for the passed locale.
|
getText, getTextWithLocaleFallback, internalGetLocaleToUseWithFallback, internalGetTextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetText, getTextWithLocaleFallback@Nullable public final String getTextWithArgs(@Nonnull Locale aContentLocale, @Nullable Object... aArgs)
ITextProviderFormat.format(Object) method.getTextWithArgs in interface ITextProvideraContentLocale - The locale to use. May not be null.aArgs - The arguments to be added into the string. May be null
but this makes no sense.null if no text for the given locale was found.@Nullable public final String getTextWithLocaleFallbackAndArgs(@Nonnull Locale aContentLocale, @Nullable Object... aArgs)
ITextProviderFormat.format(Object) method.getTextWithLocaleFallbackAndArgs in interface ITextProvideraContentLocale - The locale to use. May not be null.aArgs - The arguments to be added into the string. May be null
but this makes no sense.null if no text for the given locale was found.LocaleUtils.getCalculatedLocaleListForResolving(Locale)Copyright © 2006–2014 phloc systems. All rights reserved.