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 KStringGets the KString for an enum value.default KStringasKString(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, name, ordinal, valuesList
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, thestring 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, thestring is returned.getKStringFallback()- Parameters:
sessionInfo- The session information, ornullif not available. ifnullthe 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.