Class PropertyCondition
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyCondition
The PropertyCondition class provides support for searching against a single property using a single comparison
mechanism, or for nesting further SearchProperties.
The use of nestedConditions is mutually exclusive with the use of the property,
operator, value construct.
-
Constructor Summary
ConstructorDescriptionTypical constructorPropertyCondition
(PropertyCondition templateProperties) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.Retrieve any nested conditions.Retrieve the operator to use for the comparison.Retrieve the name of the property being compared.getValue()
Retrieve the value of the property against which to compare.int
hashCode()
Return a hash code based on the property valuesvoid
setNestedConditions
(SearchProperties nestedConditions) Set any nested conditions.void
setOperator
(PropertyComparisonOperator operator) Set the operator to use for the comparison.void
setProperty
(String property) Set the name of the property to compare.void
setValue
(PropertyValue value) Set the value of the property against which to compare.toString()
Standard toString method.
-
Constructor Details
-
PropertyCondition
public PropertyCondition()Typical constructor -
PropertyCondition
Copy/clone constructor.- Parameters:
templateProperties
- template object to copy.
-
-
Method Details
-
getProperty
Retrieve the name of the property being compared.- Returns:
- String
-
setProperty
Set the name of the property to compare.- Parameters:
property
- name of the property to compare
-
getOperator
Retrieve the operator to use for the comparison.- Returns:
- SearchOperator
-
setOperator
Set the operator to use for the comparison.- Parameters:
operator
- to use for the comparison
-
getValue
Retrieve the value of the property against which to compare.- Returns:
- PropertyValue
-
setValue
Set the value of the property against which to compare.- Parameters:
value
- against which to compare
-
getNestedConditions
Retrieve any nested conditions.- Returns:
- SearchProperties
-
setNestedConditions
Set any nested conditions.- Parameters:
nestedConditions
- conditions to nest
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the property values
-