Package com.iizix.text
Interface IEnumLocaleString
- All Known Subinterfaces:
- IEnumLocaleKString,- IPropReference.IRefType
- All Known Implementing Classes:
- IPropReference.RefType,- IServer.InvalidAppID,- LocaleString,- Messages,- References.ReturnCode,- SigninResult,- UserLocaleString
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 SummaryModifier and TypeMethodDescription- default String- asString()Gets the plain string for an enum value.- default String- asString- (SessionInfo sessionInfo) Gets the plain string for an enum value.- default String- asString- (ILocaleString localeString) Gets the plain string for an enum value.Gets the fallback String.- getID()Gets the text ID.- name()Returns the name of this enum constant, exactly as declared in its enum declaration.- int- ordinal()Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).- default List- <IEnumLocaleString> Default implementation to return all possible values in the enum.
- Method Details- valuesListDefault implementation to return all possible values in the enum.- Returns:
- An unmodifiable list of the elements in the enum.
 
- nameString name()Returns the name of this enum constant, exactly as declared in its enum declaration.- Returns:
- The name() as called for in an enum class.
 
- ordinalint ordinal()Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).- Returns:
- The ordinal of the enum item.
 
- getIDString getID()Gets the text ID.- Returns:
- The text ID string.
 
- getFallbackString getFallback()Gets the fallback String.- Returns:
- The fallback string.
 
- asStringGets 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, the- getFallback()- Returns:
- The String for the enum in most accurate locale.
 
- asStringGets 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, the- getFallback()- Parameters:
- sessionInfo- The session information, or- nullif not available. if- nullthe 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.
 
- asStringGets 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, the- getFallback()- Parameters:
- localeString- The- localeStringinstance to used for localization, or- nullfor- fallbackreturn value if text ID is not found.
- Returns:
- The String for the enum in most accurate locale.