Enum PropertyComparisonOperator
- java.lang.Object
-
- java.lang.Enum<PropertyComparisonOperator>
-
- org.odpi.openmetadata.frameworks.governanceaction.search.PropertyComparisonOperator
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyComparisonOperator>
public enum PropertyComparisonOperator extends Enum<PropertyComparisonOperator> implements Serializable
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return the default description of the property comparison operator.StringgetName()Return the default name of the property comparison operator.intgetOrdinal()Return the numeric representation of the property comparison operator.StringtoString()toString() JSON-stylestatic PropertyComparisonOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyComparisonOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final PropertyComparisonOperator EQ
-
NEQ
public static final PropertyComparisonOperator NEQ
-
LT
public static final PropertyComparisonOperator LT
-
LTE
public static final PropertyComparisonOperator LTE
-
GT
public static final PropertyComparisonOperator GT
-
GTE
public static final PropertyComparisonOperator GTE
-
IN
public static final PropertyComparisonOperator IN
-
IS_NULL
public static final PropertyComparisonOperator IS_NULL
-
NOT_NULL
public static final PropertyComparisonOperator NOT_NULL
-
LIKE
public static final PropertyComparisonOperator LIKE
-
-
Method Detail
-
values
public static PropertyComparisonOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyComparisonOperator c : PropertyComparisonOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyComparisonOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
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:
toStringin classEnum<PropertyComparisonOperator>- Returns:
- string description
-
-