Package com.iizix.text
Interface IEnumLocaleKString
- All Superinterfaces:
IEnumLocaleString
- All Known Implementing Classes:
LocaleString
,References.ReturnCode
Interface used by enum's to retrieve the "id" and the "fallback" strings when formatting values to locale String's and KString's.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiondefault KString
Gets the KString for an enum value.default KString
asKString
(SessionInfo sessionInfo) Gets the KString for an enum value.Gets the fallback KString.Methods inherited from interface com.iizix.text.IEnumLocaleString
asString, asString, asString, getFallback, getID
Method Details
getKStringFallback
KString getKStringFallback()Gets the fallback KString.- Returns:
- The fallback KString.
asKString
Gets the KString for an enum value. The string will be in the client session's language setting, the application session's setting or the default language setting and if none of these were found in the specified order, the
string is returned.getKStringFallback()
- Returns:
- The KString for the enum in most accurate locale.
asKString
Gets the KString for an enum value. The string will be in the client session's language setting, the application session's setting or the default language setting and if none of these were found in the specified order, the
string is returned.getKStringFallback()
- Parameters:
sessionInfo
- The session information, ornull
if not available. ifnull
the system will attempt to look up the current client or application session from the current thread.- Returns:
- The KString for the enum in most accurate locale.