Package org.ametys.cms.search.query
Enum Class Query.Operator
- All Implemented Interfaces:
Serializable
,Comparable<Query.Operator>
,java.lang.constant.Constable
- Enclosing interface:
- Query
Enumeration of available operators in
Query
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConstant of test's operator for 'equals to' comparisonOperator testing the existence of a property.Constant of test's operator for fuzzy search.Constant of test's operator for 'greater than or equals to' comparisonConstant of test's operator for 'greater than' comparisonConstant of test's operator for 'less than or equals to' comparisonConstant of test's operator for 'like' comparison.Constant of test's operator for 'less than' comparisonConstant of test's operator for 'not equals to' comparisonConstant of test's operator for textual search, on unstemmed terms.Constant of test's operator for textual search, on stemmed terms. -
Method Summary
Modifier and TypeMethodDescriptionstatic Query.Operator
Get an Operator object from its name.getName()
Get the operator name.static Query.Operator
Returns the enum constant of this class with the specified name.static Query.Operator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXISTS
Operator testing the existence of a property. -
SEARCH
Constant of test's operator for textual search, on unstemmed terms. Works only for type String -
SEARCH_STEMMED
Constant of test's operator for textual search, on stemmed terms. Works only for type String -
LIKE
Constant of test's operator for 'like' comparison. Works only for type String -
FUZZY
Constant of test's operator for fuzzy search. Works only for type String -
LT
Constant of test's operator for 'less than' comparison -
LE
Constant of test's operator for 'less than or equals to' comparison -
GT
Constant of test's operator for 'greater than' comparison -
GE
Constant of test's operator for 'greater than or equals to' comparison -
EQ
Constant of test's operator for 'equals to' comparison -
NE
Constant of test's operator for 'not equals to' comparison
-
-
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
-
getName
Get the operator name.- Returns:
- the operator name.
-
fromName
Get an Operator object from its name.- Parameters:
name
- the operator name.- Returns:
- the operator object, or null if not found.
-