com.hp.ucmdb.api.topology
Interface ConditionExpressionBuilder<T,O>

All Superinterfaces:
ConditionExpression<T,O>

public interface ConditionExpressionBuilder<T,O>
extends ConditionExpression<T,O>

Services to build complex expressions.

Since:
UCMDB 9.0

Method Summary
 ConditionExpression<T,O> and(ConditionExpression<T,O> subExpression)
          Defines an AND condition between this condition and the specified condition expression.
 ConditionExpression<T,O> or(ConditionExpression<T,O> subExpression)
          Defines an OR condition between this condition and the given condition expression.
 ConditionExpression<T,O> withOp(O op, ConditionExpression<T,O> rightExpression)
          Defines the condition specified by "op" between this condition and the specified condition expression.
 
Methods inherited from interface com.hp.ucmdb.api.topology.ConditionExpression
isLeafExpression, leaf, leaves, left, op, right, visit
 

Method Detail

and

ConditionExpression<T,O> and(ConditionExpression<T,O> subExpression)
Defines an AND condition between this condition and the specified condition expression.

This condition is the left (first) child of the returned expression.
The sub-expression is the right (second) child of the returned expression.

Parameters:
subExpression - The expression to be ANDed with this condition.
Returns:
the result expression of the AND condition.

or

ConditionExpression<T,O> or(ConditionExpression<T,O> subExpression)
Defines an OR condition between this condition and the given condition expression.

This condition is the left (first) child of the returned expression.
The sub-expression is the right (second) child of the returned expression.

Parameters:
subExpression - The expression to be ORed with this condition.
Returns:
the result expression of the "or" condition.

withOp

ConditionExpression<T,O> withOp(O op,
                                ConditionExpression<T,O> rightExpression)
Defines the condition specified by "op" between this condition and the specified condition expression.

This condition is the left (first) child of the returned expression.
The given expression is the right (second) child of the returned expression.

Parameters:
rightExpression - The expression to be joined with this condition.
op - The operator that defines the test performed between this condition and the rightExpression.
Returns:
the result expression of the "op" condition.


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.