Package org.opencms.search.galleries
Enum Class CmsGallerySearchParameters.CmsGallerySearchWordMode
java.lang.Object
java.lang.Enum<CmsGallerySearchParameters.CmsGallerySearchWordMode>
org.opencms.search.galleries.CmsGallerySearchParameters.CmsGallerySearchWordMode
- All Implemented Interfaces:
Serializable,Comparable<CmsGallerySearchParameters.CmsGallerySearchWordMode>,Constable
- Enclosing class:
CmsGallerySearchParameters
public static enum CmsGallerySearchParameters.CmsGallerySearchWordMode
extends Enum<CmsGallerySearchParameters.CmsGallerySearchWordMode>
Modes for the pre-processing of the search words entered by the user.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CmsGallerySearchParameters.CmsGallerySearchWordModeThe default search word mode. -
Method Summary
Modifier and TypeMethodDescriptionReturns the search word mode matching the given configuration value.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
infix
Search for the words as sub-words, matching anywhere within a word. -
plain
Search for the words as entered, without any pre-processing.
-
-
Field Details
-
DEFAULT
The default search word mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
lookup
Returns the search word mode matching the given configuration value.In case the value does not match a search word mode,
DEFAULTis returned.- Parameters:
value- the configuration value to look up- Returns:
- the search word mode matching the given configuration value
-