public enum EI18nSource extends Enum<EI18nSource> implements INamedUiElement
| Enum Constant and Description | 
|---|
CUSTOM_OR_DEFAULT
Use the language-specific string if one exists, otherwise fall back to the default string. 
 | 
DISABLE
Never use a string for a particular language, always use the empty string. 
 | 
USE_DEFAULT
Do not use a language-specific string, always use the default. 
 | 
ATTR_DISPLAY_NAME| Modifier and Type | Method and Description | 
|---|---|
String | 
getDisplayName(Locale locale)  | 
boolean | 
isAvailable()  | 
abstract String | 
resolve(String defaultValue,
       String i18nValue)
Given a default string and a language-specific string, return the string that should actually be used, according to
 this setting. 
 | 
static EI18nSource | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static EI18nSource[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final EI18nSource USE_DEFAULT
public static final EI18nSource CUSTOM_OR_DEFAULT
public static final EI18nSource DISABLE
public static EI18nSource[] values()
for (EI18nSource c : EI18nSource.values()) System.out.println(c);
public static EI18nSource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getDisplayName(Locale locale)
getDisplayName in interface INamedUiElementpublic boolean isAvailable()
false for DISABLE.public abstract String resolve(String defaultValue, String i18nValue)
defaultValue - The default string.i18nValue - The language-specific string.null, only the empty string.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.