Nested expressions are used when constructing a workflow query.
A nested expression consists of:
operator: The operator used to evaluate the value of the nested expression
from the specified sub expressions.
- Author:
- Christine Zimmermann
- See Also:
- Serialized Form
|
Field Summary |
static int |
AND
Constant to specify that all the expressions specified must evaluate to true for
an item to be included in the search results. |
static int |
OR
Constant to specify that at least one of the expressions specified must evaluate to true
for an item to be included in the search results. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AND
public static final int AND
- Constant to specify that all the expressions specified must evaluate to true for
an item to be included in the search results.
- See Also:
- Constant Field Values
OR
public static final int OR
- Constant to specify that at least one of the expressions specified must evaluate to true
for an item to be included in the search results.
- See Also:
- Constant Field Values
NestedExpression
public NestedExpression()
NestedExpression
public NestedExpression(Expression[] expressions,
int operator)
- Create a NestedExpression that consists of multiple expressions.
- Parameters:
expressions - an array of expressions for this query.operator - AND or OR.
getExpression
public Expression getExpression(int index)
getExpressionCount
public int getExpressionCount()
- Get the number of expressions in this query.
setExpressionOperator
public void setExpressionOperator(int expressionOperator)
getExpressionOperator
public int getExpressionOperator()
- Returns:
AND if all the expressions must match,
or OR if only one must match.
setExpressions
public void setExpressions(Expression[] expressions)
isNested
public boolean isNested()
- Specified by:
isNested in class Expression