T
- public class ComparableTermBasedProposition<T> extends Object implements Proposition
Constructor and Description |
---|
ComparableTermBasedProposition(ComparisonOperator operator,
Term term,
T expectedValue)
Create a ComparableTermBasedProposition with the given values
|
Modifier and Type | Method and Description |
---|---|
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
Proposition s 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() |
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 topublic 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 inTermResolutionException
- if there is a problem resolving the Term
Proposition.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 objectpublic List<Proposition> getChildren()
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
public boolean isCompound()
Proposition
Proposition
can have children.isCompound
in interface Proposition
Proposition
can contain child Proposition
s.protected T getExpectedValue()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.