java.lang.Object
java.lang.Enum<LogicalOperator>
org.gcube.informationsystem.resourceregistry.queries.operators.LogicalOperator
All Implemented Interfaces:
Serializable, Comparable<LogicalOperator>, Constable

public enum LogicalOperator extends Enum<LogicalOperator>
Defines logical operators used to connect conditions in JSON queries.
Author:
Luca Frosini (ISTI - CNR)
  • Enum Constant Details

  • Field Details

    • operatorKey

      protected final String operatorKey
      The unique query operator key string.
    • dbOperator

      protected final String dbOperator
      The underlying OrientDB database operator string.
    • description

      protected final String description
      The human-readable description of the operator.
  • Method Details

    • values

      public static LogicalOperator[] 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

      public static LogicalOperator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getOperatorKey

      public String getOperatorKey()
      Returns the unique query operator key string.
      Returns:
      the operator key string
    • getDbOperator

      public String getDbOperator()
      Returns the underlying OrientDB database operator string.
      Returns:
      the OrientDB database operator string
    • getDescription

      public String getDescription()
      Returns the human-readable description of the operator.
      Returns:
      the description string
    • getOperators

      public static Set<String> getOperators()
      Returns the set of all registered logical operator keys.
      Returns:
      the set of operator keys
    • getOperator

      public static LogicalOperator getOperator(String key)
      Resolves a LogicalOperator by its key.
      Parameters:
      key - the operator key
      Returns:
      the resolved LogicalOperator, or null