Enum Class PropertyComparisonOperator

java.lang.Object
java.lang.Enum<PropertyComparisonOperator>
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyComparisonOperator
All Implemented Interfaces:
Serializable, Comparable<PropertyComparisonOperator>, Constable

public enum PropertyComparisonOperator extends Enum<PropertyComparisonOperator>
PropertyComparisonOperator is used for search requests against a metadata store. It defines how the properties should be compared to find a matching result. The property comparison operator values are:
  • EQUAL: when the property has a value that precisely equals the provided value. This is the default.
  • NOT_EQUAL: when the property has a value that is not equal to the provided value.
  • LESS_THAN: when the property has a value that is strictly less than the provided value.
  • LESS_THAN_OR_EQUAL: when the property has a value that is less than, or equal to, the provided value.
  • GREATER_THAN: when the property has a value that is strictly greater than the provided value.
  • GREATER_THAN_OR_EQUAL: when the property has a value that is greater than, or equal to, the provided value.
  • IN_LIST: when the property has a value that matches at least one element of the provided list of values.
  • IS_NULL: when the property has no value.
  • IS_NOT_NULL: when the property has any non-null value.
  • LIKE: when the property has a value that matches the provided regular expression. This should only be applied to String properties, and should still be used even for exact matches for String properties.
  • Enum Constant Details

  • Method Details

    • values

      public static PropertyComparisonOperator[] 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 PropertyComparisonOperator 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
    • getOrdinal

      public int getOrdinal()
      Return the numeric representation of the property comparison operator.
      Returns:
      int ordinal
    • getName

      public String getName()
      Return the default name of the property comparison operator.
      Returns:
      String name
    • getDescription

      public String getDescription()
      Return the default description of the property comparison operator.
      Returns:
      String description
    • toString

      public String toString()
      toString() JSON-style
      Overrides:
      toString in class Enum<PropertyComparisonOperator>
      Returns:
      string description