public enum MLAnalysisMode extends Enum<MLAnalysisMode>
Enum Constant and Description |
---|
ALL_COUNTRIES
All country matches
|
ALL_COUNTRIES_AND_ALL
All countries and ALL
|
ALL_LANGUAGES
All language matches.
|
ALL_LANGUAGES_AND_ALL
All language matches and ALL
|
ALL_ONLY
Just the all locale, "", === new Locale("", "", "")
|
EXACT_COUNRTY
Exact country matches (do not include all sub varients of the country)
|
EXACT_COUNTRY_AND_ALL
Exact country matches (do not include all sub varients of the country) and ALL
|
EXACT_LANGUAGE
Exact language matches (do not include all sub varients of the language)
|
EXACT_LANGUAGE_AND_ALL
Exact language matches (do not include all sub varients of the language) and ALL
|
LOCALE_AND_ALL
Only the exact locale and no locale === locale + all languages
|
LOCALE_AND_ALL_CONTAINED_LOCALES
Expand to all the locales that are contained by this.
|
LOCALE_AND_ALL_CONTAINING_LOCALES
Expand the locale to include all the locales that contain it.
|
LOCALE_AND_ALL_CONTAINING_LOCALES_AND_ALL
Expand the locale to include all the locales that contain it.
|
LOCALE_ONLY
Only the exact locale is used.
|
Modifier and Type | Method and Description |
---|---|
static Set<Locale> |
getLocales(MLAnalysisMode mlAnalaysisMode,
Locale locale,
boolean withWildcards) |
static MLAnalysisMode |
getMLAnalysisMode(String mode) |
abstract boolean |
includesAll() |
abstract boolean |
includesAllCountryMatches() |
abstract boolean |
includesAllLanguageMatches() |
abstract boolean |
includesContained() |
abstract boolean |
includesContaining() |
abstract boolean |
includesExact() |
abstract boolean |
includesExactCountryMatch() |
abstract boolean |
includesExactLanguageMatch() |
static MLAnalysisMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MLAnalysisMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MLAnalysisMode LOCALE_ONLY
public static final MLAnalysisMode LOCALE_AND_ALL
public static final MLAnalysisMode LOCALE_AND_ALL_CONTAINING_LOCALES
public static final MLAnalysisMode LOCALE_AND_ALL_CONTAINING_LOCALES_AND_ALL
public static final MLAnalysisMode LOCALE_AND_ALL_CONTAINED_LOCALES
public static final MLAnalysisMode ALL_ONLY
public static final MLAnalysisMode ALL_LANGUAGES
public static final MLAnalysisMode ALL_LANGUAGES_AND_ALL
public static final MLAnalysisMode EXACT_LANGUAGE
public static final MLAnalysisMode EXACT_LANGUAGE_AND_ALL
public static final MLAnalysisMode EXACT_COUNRTY
public static final MLAnalysisMode EXACT_COUNTRY_AND_ALL
public static final MLAnalysisMode ALL_COUNTRIES
public static final MLAnalysisMode ALL_COUNTRIES_AND_ALL
public static MLAnalysisMode[] values()
for (MLAnalysisMode c : MLAnalysisMode.values()) System.out.println(c);
public static MLAnalysisMode 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 static MLAnalysisMode getMLAnalysisMode(String mode)
public abstract boolean includesAll()
public abstract boolean includesContained()
public abstract boolean includesContaining()
public abstract boolean includesExact()
public abstract boolean includesAllLanguageMatches()
public abstract boolean includesExactLanguageMatch()
public abstract boolean includesAllCountryMatches()
public abstract boolean includesExactCountryMatch()
public static Set<Locale> getLocales(MLAnalysisMode mlAnalaysisMode, Locale locale, boolean withWildcards)
Copyright © 2005–2020 Alfresco Software. All rights reserved.