Package com.opensymphony.workflow.query
Class NestedExpression
java.lang.Object
com.opensymphony.workflow.query.Expression
com.opensymphony.workflow.query.NestedExpression
- All Implemented Interfaces:
Serializable
Nested expressions are used when constructing a workflow query.
A nested expression consists of:
one or more expressions: Each of them can again be a NestedExpression.
operator: The operator used to evaluate the value of the nested expression
from the specified sub expressions.
- Author:
- Christine Zimmermann
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant to specify that all the expressions specified must evaluate to true for an item to be included in the search results.static final intConstant to specify that at least one of the expressions specified must evaluate to true for an item to be included in the search results.Fields inherited from class com.opensymphony.workflow.query.Expression
negate -
Constructor Summary
ConstructorsConstructorDescriptionNestedExpression(Expression[] expressions, int operator) Create a NestedExpression that consists of multiple expressions. -
Method Summary
Modifier and TypeMethodDescriptiongetExpression(int index) intGet the number of expressions in this query.intbooleanisNested()voidsetExpressionOperator(int expressionOperator) voidsetExpressions(Expression[] expressions) Methods inherited from class com.opensymphony.workflow.query.Expression
isNegate
-
Field Details
-
AND
public static final int ANDConstant to specify that all the expressions specified must evaluate to true for an item to be included in the search results.- See Also:
-
OR
public static final int ORConstant 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:
-
-
Constructor Details
-
Method Details
-
getExpression
-
getExpressionCount
public int getExpressionCount()Get the number of expressions in this query. -
setExpressionOperator
public void setExpressionOperator(int expressionOperator) -
getExpressionOperator
public int getExpressionOperator() -
setExpressions
-
isNested
public boolean isNested()- Specified by:
isNestedin classExpression
-