Interface ILocaleStringFormatter
- All Known Subinterfaces:
- ILocaleKStringFormatter
- All Known Implementing Classes:
- References.Result
- Author:
- Christopher Mindus
- Field SummaryFields
- Method SummaryModifier and TypeMethodDescription- Object[]- getFormatterParams- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the parameters used to format the String.- getFormatterString- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the String used to format the locale string.- default StringGets a formatted String with the appropriate parameters using the formatting described below.- default String- getMessageLocaleString- (LocaleInfo localeInfo) Gets a formatted String with the appropriate parameters using the formatting described below.- default String- getMessageLocaleString- (ILocaleString localeString) Gets a formatted String with the appropriate parameters using the formatting described below.- default String- getMessageLocaleString- (ILocaleString localeString, LocaleInfo localeInfo) Gets a formatted String with the appropriate parameters using the formatting described below.- default String- getMessageLocaleString- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted String with the appropriate parameters using the formatting described below.- default String- getMessageLocaleString- (Locale locale) Gets a formatted String with the appropriate parameters using the formatting described below.
- Field Details- EMPTYEmpty parameter array.
 
- Method Details- getFormatterStringString getFormatterString- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the String used to format the locale string.- Parameters:
- localeString- The locale string instance, or- nullto look it up from current thread or system.
- provider- The information provider or- nullfor none.
- localeInfo- The Locale information, or- nullto look it up from the current thread if needed.
- Returns:
- The locale string to format with potential parameters.
 
- getFormatterParamsObject[] getFormatterParams- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the parameters used to format the String.- Parameters:
- localeString- The locale string instance, or- nullto look it up from current thread or system.
- provider- The information provider or- nullfor none.
- localeInfo- The Locale information, or- nullto look it up from the current thread if needed.
- Returns:
- An array of parameters used to format the String. The return value can be set to nullin which case an empty array is used for the formatter.
 
- getMessageLocaleStringGets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- The locale is looked up from the current thread if required. - Returns:
- The formatted String.
- See Also:
 
- getMessageLocaleStringGets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- Parameters:
- locale- The Locale, or- nullto look it up for the current thread if needed.
- Returns:
- The formatted String.
- See Also:
 
- getMessageLocaleStringGets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- Parameters:
- localeString- The locale string instance, or- nullfor current session.
- Returns:
- The formatted String.
- See Also:
 
- getMessageLocaleStringGets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- Parameters:
- localeInfo- The Locale information, or- nullto look it up from the current thread if needed.
- Returns:
- The formatted String.
- See Also:
 
- getMessageLocaleStringGets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- Parameters:
- localeString- The locale string instance, or- nullfor current session.
- localeInfo- The Locale information, or- nullto look it up from the current thread if needed.
- Returns:
- The formatted String.
- See Also:
 
- getMessageLocaleStringdefault String getMessageLocaleString- (ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets a formatted String with the appropriate parameters using the formatting described below.- Formats a String using curly brackets - {}as parameter or- {param_index}parameter where- param_indexis an optional one-based index value, AND/OR the Java- String.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 converted- toString()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 same- param_index.- The formatting string replaces - {}with- %sand- {param_index}with- %param_index$s.- Parameters:
- localeString- The locale string instance, or- nullto look it up from current thread or system.
- provider- The information provider or- nullfor none.
- localeInfo- The Locale information, or- nullto look it up from the current thread if needed.
- Returns:
- The formatted String.
- See Also: