E
- the extending element type, used for method chaining.public interface PropertiesConditionable<E>
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).ConditionExpression
,
ConditionExpressionBuilder
Modifier and Type | Method and Description |
---|---|
ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> |
propertiesCondition()
Returns the properties condition defined on this element.
|
PropertyConditionBuilder |
propertiesConditionBuilder()
Returns a builder that can be used to build properties expression trees.
|
IncompletePropertyCondition |
property(String propertyName)
Creates an incomplete property condition that, when completed, will be added as an "and" to the property
conditions expression tree.
|
E |
property(String propertyName,
Operator operator,
Object value)
Creates a property condition and adds it as an "and" to the property conditions expression tree.
|
E |
property(String propertyName,
Operator operator,
Object value,
String conditionName)
Creates a property condition and adds it as an "and" to the property conditions expression tree.
|
E |
withPropertiesConditions(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> propertiesConditionExpression)
Sets the properties condition of this element to the specified condition.
|
E withPropertiesConditions(ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> propertiesConditionExpression)
propertiesConditionExpression
- the properties condition to use for this element.PropertiesConditionable
ConditionExpression<CompletePropertyCondition,PropertiesConditionOperand> propertiesCondition()
null
if there are on conditions defined.PropertiesConditionable
PropertyConditionBuilder propertiesConditionBuilder()
withPropertiesConditions(com.hp.ucmdb.api.topology.ConditionExpression<com.hp.ucmdb.api.topology.CompletePropertyCondition, com.hp.ucmdb.api.topology.PropertiesConditionOperand>)
,
PropertiesConditionable
IncompletePropertyCondition property(String propertyName)
propertyName
- the property this condition should refer to.PropertiesConditionable
E property(String propertyName, Operator operator, Object value)
propertyName
- the property name to create the condition on.operator
- the operator to use.value
- the value of the property condition, must be of the "correct" type or assignable.
Some operators can recieve null as empty values.PropertiesConditionable
@NotFinalAPI E property(String propertyName, Operator operator, Object value, String conditionName)
propertyName
- the property name to create the condition on.operator
- the operator to use.value
- the value of the property condition, must be of the "correct" type or assignable.
Some operators can recieve null as empty values.conditionName
- the condition name. May be null.
See CompletePropertyCondition.withConditionName(String)
for details.PropertiesConditionable
Documentation Feedback
Copyright 2011 - 2018 Micro Focus or one of its affiliates.