Enum Class PropertyComparisonOperator
java.lang.Object
java.lang.Enum<PropertyComparisonOperator>
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyComparisonOperator
- All Implemented Interfaces:
Serializable
,Comparable<PropertyComparisonOperator>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEqual to.Greater than.Greater than or equal to.Has a value of at least one in the provided list of values.Has no value.Has a value that matches the provided regular expression (strings only).Less than.Less than or equal to.Not equal to.Has any non-null value. -
Method Summary
Modifier and TypeMethodDescriptionReturn the default description of the property comparison operator.getName()
Return the default name of the property comparison operator.int
Return the numeric representation of the property comparison operator.toString()
toString() JSON-stylestatic PropertyComparisonOperator
Returns the enum constant of this class with the specified name.static PropertyComparisonOperator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
Equal to. -
NEQ
Not equal to. -
LT
Less than. -
LTE
Less than or equal to. -
GT
Greater than. -
GTE
Greater than or equal to. -
IN
Has a value of at least one in the provided list of values. -
IS_NULL
Has no value. -
NOT_NULL
Has any non-null value. -
LIKE
Has a value that matches the provided regular expression (strings only).
-
-
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
-
getOrdinal
public int getOrdinal()Return the numeric representation of the property comparison operator.- Returns:
- int ordinal
-
getName
Return the default name of the property comparison operator.- Returns:
- String name
-
getDescription
Return the default description of the property comparison operator.- Returns:
- String description
-
toString
toString() JSON-style- Overrides:
toString
in classEnum<PropertyComparisonOperator>
- Returns:
- string description
-