Class ExpressionBasedProposition
java.lang.Object
org.kuali.rice.krms.framework.engine.expression.ExpressionBasedProposition
- All Implemented Interfaces:
Proposition
An implementation of
Proposition which uses a given Expression<Boolean>- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionBasedProposition(Expression<Boolean> expression) Create an ExpressionBasedProposition with the given value -
Method Summary
Modifier and TypeMethodDescriptionevaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment environment) Evaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;Returns theListof childPropositions that belong to this object.booleanIndicates whether thisPropositioncan have children.
-
Constructor Details
-
ExpressionBasedProposition
Create an ExpressionBasedProposition with the given value- Parameters:
expression-Expressionto set the expression to
-
-
Method Details
-
evaluate
Description copied from interface:PropositionEvaluates this proposition -- and in the case ofPropositions containing children, those children as well -- and returns the boolean result;- Specified by:
evaluatein interfaceProposition- Parameters:
environment- theExecutionEnvironmentthat thisPropositionis running in- Returns:
- the boolean result of evaluation
-
getChildren
Description copied from interface:PropositionReturns theListof childPropositions that belong to this object. If there are no children (e.g. for simplePropositiontypes), this must return an emptyList.- Specified by:
getChildrenin interfaceProposition- Returns:
- a
Listcontaining any childPropositions that belong to this object. Must never return null.
-
isCompound
public boolean isCompound()Description copied from interface:PropositionIndicates whether thisPropositioncan have children.- Specified by:
isCompoundin interfaceProposition- Returns:
- true if this
Propositioncan contain childPropositions.
-