Package io.keikai.model.impl
Class DefaultGlobalizationSettings
java.lang.Object
io.keikai.model.impl.DefaultGlobalizationSettings
- All Implemented Interfaces:
SGlobalizationSettings,Serializable
public class DefaultGlobalizationSettings
extends Object
implements SGlobalizationSettings, Serializable
Default (English) implementation of
SGlobalizationSettings.
Function names pass through unchanged, and all display strings are in English.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates default globalization settings forLocale.US.DefaultGlobalizationSettings(Locale locale) Creates default globalization settings for the given locale. -
Method Summary
Modifier and TypeMethodDescriptiongetBooleanString(boolean value) Returns the localized string representation of a boolean value.Returns the date format symbols for this locale, controlling month names, day names, AM/PM strings, etc.Returns the decimal format symbols for this locale, controlling decimal separator, grouping separator, etc.Returns the localized string for "Grand Total", used in pivot table grand totals.Returns the locale associated with these settings.getLocalFunctionName(String standardName) Translates a standard (English) function name to the local function name.getStandardFunctionName(String localName) Translates a local function name back to the standard (English) function name.Returns the localized string for "Total", used in pivot table subtotals.
-
Constructor Details
-
DefaultGlobalizationSettings
public DefaultGlobalizationSettings()Creates default globalization settings forLocale.US. -
DefaultGlobalizationSettings
Creates default globalization settings for the given locale. Function names still pass through as English; only format symbols are locale-dependent.- Parameters:
locale- the locale
-
-
Method Details
-
getLocalFunctionName
Description copied from interface:SGlobalizationSettingsTranslates a standard (English) function name to the local function name.- Specified by:
getLocalFunctionNamein interfaceSGlobalizationSettings- Parameters:
standardName- the English function name (e.g., "SUM", "VLOOKUP")- Returns:
- the localized function name, or the standard name if no translation exists
-
getStandardFunctionName
Description copied from interface:SGlobalizationSettingsTranslates a local function name back to the standard (English) function name.- Specified by:
getStandardFunctionNamein interfaceSGlobalizationSettings- Parameters:
localName- the localized function name- Returns:
- the standard English function name, or the local name if no translation exists
-
getLocale
Description copied from interface:SGlobalizationSettingsReturns the locale associated with these settings.- Specified by:
getLocalein interfaceSGlobalizationSettings- Returns:
- the locale
-
getDecimalFormatSymbols
Description copied from interface:SGlobalizationSettingsReturns the decimal format symbols for this locale, controlling decimal separator, grouping separator, etc.- Specified by:
getDecimalFormatSymbolsin interfaceSGlobalizationSettings- Returns:
- the decimal format symbols
-
getDateFormatSymbols
Description copied from interface:SGlobalizationSettingsReturns the date format symbols for this locale, controlling month names, day names, AM/PM strings, etc.- Specified by:
getDateFormatSymbolsin interfaceSGlobalizationSettings- Returns:
- the date format symbols
-
getBooleanString
Description copied from interface:SGlobalizationSettingsReturns the localized string representation of a boolean value.- Specified by:
getBooleanStringin interfaceSGlobalizationSettings- Parameters:
value- the boolean value- Returns:
- "TRUE" or "FALSE" (or localized equivalents)
-
getTotalString
Description copied from interface:SGlobalizationSettingsReturns the localized string for "Total", used in pivot table subtotals.- Specified by:
getTotalStringin interfaceSGlobalizationSettings- Returns:
- the total string
-
getGrandTotalString
Description copied from interface:SGlobalizationSettingsReturns the localized string for "Grand Total", used in pivot table grand totals.- Specified by:
getGrandTotalStringin interfaceSGlobalizationSettings- Returns:
- the grand total string
-