org.kuali.rice.krms.framework.engine.expression
Class ExpressionBasedProposition
java.lang.Object
   org.kuali.rice.krms.framework.engine.expression.ExpressionBasedProposition
org.kuali.rice.krms.framework.engine.expression.ExpressionBasedProposition
- All Implemented Interfaces: 
- Proposition
- public class ExpressionBasedProposition 
- extends Object- implements Proposition
An implementation of Proposition which uses a given Expression
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ExpressionBasedProposition
public ExpressionBasedProposition(Expression<Boolean> expression)
- Create an ExpressionBasedProposition with the given value
 
- Parameters:
- expression-- Expressionto set the expression to
 
evaluate
public PropositionResult evaluate(ExecutionEnvironment environment)
- Description copied from interface: Proposition
- Evaluates this proposition -- and in the case of Propositions containing children,
 those children as well -- and returns the boolean result;
 
- 
- Specified by:
- evaluatein interface- Proposition
 
- 
- Parameters:
- environment- the- ExecutionEnvironmentthat this- Propositionis running in
- Returns:
- the boolean result of evaluation
 
getChildren
public List<Proposition> getChildren()
- Description copied from interface: Proposition
- Returns the Listof childPropositions that belong to this object.
 If there are no children (e.g. for simplePropositiontypes), this must
 return an emptyList.
 
- 
- Specified by:
- getChildrenin interface- Proposition
 
- 
- Returns:
- a Listcontaining any childPropositions that belong to this object.  Must never return null.
 
isCompound
public boolean isCompound()
- Description copied from interface: Proposition
- Indicates whether this Propositioncan have children.
 
- 
- Specified by:
- isCompoundin interface- Proposition
 
- 
- Returns:
- true if this Propositioncan contain childPropositions.
 
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.