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
ConstructorsConstructorDescriptionTypical constructorPropertyCondition(PropertyCondition templateProperties) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanValidate 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.inthashCode()Return a hash code based on the property valuesvoidsetNestedConditions(SearchProperties nestedConditions) Set any nested conditions.voidsetOperator(PropertyComparisonOperator operator) Set the operator to use for the comparison.voidsetProperty(String property) Set the name of the property to compare.voidsetValue(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
-