|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.framework.engine.ComparableTermBasedProposition<T>
public class ComparableTermBasedProposition<T>
Constructor Summary | |
---|---|
ComparableTermBasedProposition(ComparisonOperator operator,
Term term,
T expectedValue)
|
Method Summary | |
---|---|
protected boolean |
compare(Comparable<T> termValue)
This method does the actual comparison of the term value w/ the expected value |
PropositionResult |
evaluate(ExecutionEnvironment environment)
This method evaluates this proposition -- and in the case of Proposition s containing children,
those children as well -- and returns the boolean result; |
List<Proposition> |
getChildren()
This method returns the List of child Proposition s that belong to this object. |
protected T |
getExpectedValue()
|
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)
Method Detail |
---|
public PropositionResult evaluate(ExecutionEnvironment environment)
Proposition
Proposition
s containing children,
those children as well -- and returns the boolean result;
evaluate
in interface Proposition
environment
- the ExecutionEnvironment
that this Proposition
is running in
TermResolutionException
- if there is a problem resolving the Term
Proposition.evaluate(org.kuali.rice.krms.api.engine.ExecutionEnvironment)
protected boolean compare(Comparable<T> termValue)
termValue
-
public List<Proposition> getChildren()
Proposition
List
of child Proposition
s 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 Proposition
List
containing any child Proposition
s that belong to this object. Must never return null.public boolean isCompound()
Proposition
Proposition
can have children.
isCompound
in interface Proposition
Proposition
can contain child Proposition
s.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 |