Package com.iizix.text
Interface IEnumLocaleString
- All Known Subinterfaces:
IEnumLocaleKString,IPropReference.IRefType
- All Known Implementing Classes:
IPropReference.RefType,IServer.InvalidAppID,LocaleString,References.ReturnCode
public interface IEnumLocaleString
Interface used by enum's to retrieve the "id" and the "fallback" strings when formatting values to locale String's.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiondefault StringasString()Gets the plain string for an enum value.default StringasString(SessionInfo sessionInfo) Gets the plain string for an enum value.default StringasString(ILocaleString localeString) Gets the plain string for an enum value.Gets the fallback String.getID()Gets the text ID.
Method Details
getID
String getID()Gets the text ID.- Returns:
- The text ID string.
getFallback
String getFallback()Gets the fallback String.- Returns:
- The fallback string.
asString
Gets the plain string 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.getFallback()- Returns:
- The String for the enum in most accurate locale.
asString
Gets the plain string 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.getFallback()- 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 String for the enum in most accurate locale.
asString
Gets the plain string 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.getFallback()- Parameters:
localeString- ThelocaleStringinstance to used for localization, ornullforfallbackreturn value if text ID is not found.- Returns:
- The String for the enum in most accurate locale.