|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.framework.engine.ComparableTermBasedProposition<T>
T - public class ComparableTermBasedProposition<T>
An implementation of Proposition which uses a ComparisonOperator and Term
| Constructor Summary | |
|---|---|
ComparableTermBasedProposition(ComparisonOperator operator,
Term term,
T expectedValue)
Create a ComparableTermBasedProposition with the given values |
|
| Method Summary | |
|---|---|
protected boolean |
compare(Comparable<T> termValue)
Compares the term value w/ the expected value |
PropositionResult |
evaluate(ExecutionEnvironment environment)
Evaluates this proposition -- and in the case of Propositions containing children,
those children as well -- and returns the boolean result; |
List<Proposition> |
getChildren()
Returns an empty list. |
protected T |
getExpectedValue()
Returns the expectedValue |
boolean |
isCompound()
Indicates whether this Proposition can have children. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComparableTermBasedProposition(ComparisonOperator operator,
Term term,
T expectedValue)
operator - ComparisonOperator to set the operator toterm - Term to set the term toexpectedValue - to set the expectedValue to| Method Detail |
|---|
public PropositionResult evaluate(ExecutionEnvironment environment)
PropositionPropositions containing children,
those children as well -- and returns the boolean result;
evaluate in interface Propositionenvironment - the ExecutionEnvironment that this Proposition is running in
TermResolutionException - if there is a problem resolving the TermProposition.evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment)protected boolean compare(Comparable<T> termValue)
termValue - Comparable which makes up the ComparisonOperator.compare() left hand side object
public List<Proposition> getChildren()
List of child Propositions that belong to this object.
If there are no children (e.g. for simple Proposition types), this must
return an empty List.
getChildren in interface Propositionpublic boolean isCompound()
PropositionProposition can have children.
isCompound in interface PropositionProposition can contain child Propositions.protected T getExpectedValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||