Interface ILocaleKStringFormatter
- All Superinterfaces:
ILocaleStringFormatter
- All Known Implementing Classes:
References.Result
- Author:
- Christopher Mindus
Field Summary
Fields inherited from interface com.iizix.text.ILocaleStringFormatter
EMPTYMethod Summary
Modifier and TypeMethodDescriptiondefault KStringgetFormatterKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the KString used to format the locale string.default KStringGets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(LocaleInfo localeInfo) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(IKStringInfoProvider provider) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(IKStringInfoProvider provider, ILocaleString localeString) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(IKStringInfoProvider provider, Locale locale) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(ILocaleString localeString) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocaleKString(Locale locale) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.default KStringGets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(LocaleInfo localeInfo) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringGets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(IKStringInfoProvider provider, ILocaleString localeString) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(IKStringInfoProvider provider, Locale locale) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(ILocaleString localeString) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.default KStringgetMessageLocalePlainKString(Locale locale) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Methods inherited from interface com.iizix.text.ILocaleStringFormatter
getFormatterParams, getFormatterString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString
Method Details
getFormatterKString
default KString getFormatterKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the KString used to format the locale string.- Parameters:
localeString- The locale string instance, ornullto look it up from current thread or system.provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The locale string to format with potential parameters.
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats the HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The locale and potential
IKStringInfoProvider provideris looked up from the current thread if required.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats the HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The locale is looked up from the current thread if required.
- Parameters:
provider- The information provider ornullto look it up for the current session.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
locale- The Locale, ornullto look it up for the current thread if needed.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
provider- The information provider ornullto look it up for the current session.locale- The Locale, ornullto look it up for the current thread if needed.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvideris looked up from the current session.- Parameters:
localeString- The locale string instance, ornullfor current session.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
provider- The information provider ornullto look it up for the current session.localeString- The locale string instance, ornullfor current session.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvideris looked up from the current session.- Parameters:
localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvideris looked up from the current session.- Parameters:
provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted KString.
- See Also:
getMessageLocaleKString
default KString getMessageLocaleKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted HTML or PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to HTML or PLAIN KString's, depending on this KString instance type.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvideris looked up from the current session.- Parameters:
localeString- The locale string instance, ornullto look it up from current thread or system.provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats the HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The locale and potential
IKStringInfoProvider provideris looked up from the current thread if required.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats the HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link Utilities#toString()}enable e.g. deep-to-String of e.g. Exceptions, Arrays, etc. Parameters references e.g. using%swill not receive this "toString" conversion (unless they target the sameparam_index.Parameters referenced by
{[param_index]}that are KString types areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The locale is looked up from the current thread if required.
- Parameters:
provider- The information provider ornullto look it up for the current session.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
locale- The Locale, ornullto look it up for the current thread if needed.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
provider- The information provider ornullto look it up for the current session.locale- The Locale, ornullto look it up for the current thread if needed.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvider providerparameter is looked up from the current session.- Parameters:
localeString- The locale string instance, ornullfor current session.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
default KString getMessageLocalePlainKString(IKStringInfoProvider provider, ILocaleString localeString) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a HTML or PLAIN KString using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.- Parameters:
provider- The information provider ornullto look it up for the current session.localeString- The locale string instance, ornullfor current session.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The formatting string replaces
{}with%sand{param_index}with%param_index$s.The
IKStringInfoProvideris looked up from the current session.- Parameters:
localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The
IKStringInfoProvider providerparameter is looked up from the current session.- Parameters:
provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted PLAIN KString.
- See Also:
getMessageLocalePlainKString
default KString getMessageLocalePlainKString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted PLAIN KString with the appropriate parameters using the formatting described below.Formats a String using curly brackets
{}as parameter or{param_index}parameter whereparam_indexis an optional one-based index value, AND/OR the JavaString.format(Locale, String, Object...)method using parameters in the form of%[flags][width]conversionor%[argument_index$][flags][width]conversion.Parameters referenced by
{[param_index]}are convertedtoString()using{@link toString()}, except when the parameters areKString's in which case they are converted to PLAIN KString's.The
IKStringInfoProvider providerparameter is looked up from the current session.- Parameters:
localeString- The locale string instance, ornullto look it up from current thread or system.provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The formatted PLAIN KString.
- See Also: