Interface PropertiesConditionable<E>

Type Parameters:
E - the extending element type, used for method chaining.
All Known Subinterfaces:
DirectLink, IndirectLinkStepFromPart, IndirectLinkStepLinkPart, IndirectLinkStepToPart, ModelCreateFilterElement, ModelUpdateFilterElement, QueryNode, QueryNodeRestrictions, ReachableSetStepFromPart, ReachableSetStepLinkPart, ReachableSetStepToPart

public interface PropertiesConditionable<E>
Indicates that the extending element can have a properties condition.

Properties conditions are modeled as an expression tree using the logical operators and/or/not. For example, a property condition may be "(A and not(B)) or (C and not(B))" where A, B and C are individual properties conditions such as "property 'data_name' not equal to 'network'".

A property condition tree can be built using the property condition builder. When the tree is complete, it can be assigned to the element using the withPropertiesConditions(com.hp.ucmdb.api.topology.ConditionExpression<com.hp.ucmdb.api.topology.CompletePropertyCondition, com.hp.ucmdb.api.topology.PropertiesConditionOperand>) method.

An existing properties condition tree can be be retrieved using the propertiesCondition() method. This method returns null if there are no properties conditions set for the element.

Two 'shortcut' methods, property(String) and property(String, Operator, Object), are available. These methods add the resulting property condition as an "and" to the existing properties condition tree (or create a new tree if none existed yet).

Since:
UCMDB 9.0
See Also: