Enum Class LogicalOperator
java.lang.Object
java.lang.Enum<LogicalOperator>
org.gcube.informationsystem.resourceregistry.queries.operators.LogicalOperator
- All Implemented Interfaces:
Serializable,Comparable<LogicalOperator>,Constable
Defines logical operators used to connect conditions in JSON queries.
- Author:
- Luca Frosini (ISTI - CNR)
-
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying OrientDB database operator string.Returns the human-readable description of the operator.static LogicalOperatorgetOperator(String key) Resolves aLogicalOperatorby its key.Returns the unique query operator key string.Returns the set of all registered logical operator keys.static LogicalOperatorReturns the enum constant of this class with the specified name.static LogicalOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AND
Logic AND operator. -
OR
Logic OR operator. -
NOT
Logic NOT operator.
-
-
Field Details
-
operatorKey
The unique query operator key string. -
dbOperator
The underlying OrientDB database operator string. -
description
The human-readable description of the operator.
-
-
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
-
getOperatorKey
Returns the unique query operator key string.- Returns:
- the operator key string
-
getDbOperator
Returns the underlying OrientDB database operator string.- Returns:
- the OrientDB database operator string
-
getDescription
Returns the human-readable description of the operator.- Returns:
- the description string
-
getOperators
Returns the set of all registered logical operator keys.- Returns:
- the set of operator keys
-
getOperator
Resolves aLogicalOperatorby its key.- Parameters:
key- the operator key- Returns:
- the resolved
LogicalOperator, or null
-