Package org.alfresco.repo.search
Enum MLAnalysisMode
- All Implemented Interfaces:
Serializable
,Comparable<MLAnalysisMode>
,java.lang.constant.Constable
Enum to specify how multi-lingual properties should be treate for indexing and search. Note that locale new Locale
("", "", "") is used to indicate all locales.
- Author:
- andyh
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll country matchesAll countries and ALLAll language matches.All language matches and ALLJust the all locale, "", === new Locale("", "", "")Exact country matches (do not include all sub varients of the country)Exact country matches (do not include all sub varients of the country) and ALLExact language matches (do not include all sub varients of the language)Exact language matches (do not include all sub varients of the language) and ALLOnly the exact locale and no locale === locale + all languagesExpand to all the locales that are contained by this.Expand the locale to include all the locales that contain it.Expand the locale to include all the locales that contain it.Only the exact locale is used. -
Method Summary
Modifier and TypeMethodDescriptiongetLocales
(MLAnalysisMode mlAnalaysisMode, Locale locale, boolean withWildcards) static MLAnalysisMode
getMLAnalysisMode
(String mode) abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
abstract boolean
static MLAnalysisMode
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.
-
Enum Constant Details
-
LOCALE_ONLY
Only the exact locale is used. -
LOCALE_AND_ALL
Only the exact locale and no locale === locale + all languages -
LOCALE_AND_ALL_CONTAINING_LOCALES
Expand the locale to include all the locales that contain it. So "en_GB" would be "en_GB", "en", but not all languages "". -
LOCALE_AND_ALL_CONTAINING_LOCALES_AND_ALL
Expand the locale to include all the locales that contain it. "en_GB" would be "en_GB", "en", and all "". -
LOCALE_AND_ALL_CONTAINED_LOCALES
Expand to all the locales that are contained by this. "en" would expand to "en", "en_GB", "en_US", .... -
ALL_ONLY
Just the all locale, "", === new Locale("", "", "") -
ALL_LANGUAGES
All language matches. Only worry about language level matches for locale. -
ALL_LANGUAGES_AND_ALL
All language matches 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 -
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 -
ALL_COUNTRIES
All country matches -
ALL_COUNTRIES_AND_ALL
All countries and ALL
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getMLAnalysisMode
-
includesAll
public abstract boolean includesAll() -
includesContained
public abstract boolean includesContained() -
includesContaining
public abstract boolean includesContaining() -
includesExact
public abstract boolean includesExact() -
includesAllLanguageMatches
public abstract boolean includesAllLanguageMatches() -
includesExactLanguageMatch
public abstract boolean includesExactLanguageMatch() -
includesAllCountryMatches
public abstract boolean includesAllCountryMatches() -
includesExactCountryMatch
public abstract boolean includesExactCountryMatch() -
getLocales
public static Set<Locale> getLocales(MLAnalysisMode mlAnalaysisMode, Locale locale, boolean withWildcards)
-