|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.base.cond.ConditionImpl<T,V>
T - user's object that will be tested against V - value to match to satisfy the condition.public final class ConditionImpl<T,V>
Conditional statement where a T-object may meet the condition on a
V-value given an operator.
| Nested Class Summary | |
|---|---|
static class |
ConditionImpl.Builder<T,V>
A builder to ease the construction of conditions |
static class |
ConditionImpl.ConditionRuntimeException
Thrown when condition problem met. |
| Method Summary | ||
|---|---|---|
boolean |
evaluate(T object)
Test if this condition is valid for the given object |
|
boolean |
evaluate(TypedDataContainer input)
|
|
Set<String> |
getDependentVariables()
|
|
String |
getName()
the name (have to respect the file name convention) |
|
Operator<Object,V> |
getOperator()
|
|
V |
getROperand()
|
|
static
|
getStackCommands(ConditionImpl<T,V> cond,
V value)
|
|
boolean |
isNotCondition()
|
|
void |
printStackCommands()
Trace tree expression stack status |
|
String |
toString()
|
|
static
|
valueOf(String condition)
Factory method for numerical condition types. |
|
static
|
valueOf(String operator,
String rvalue)
|
|
static
|
valueOf(String lvalueName,
String operator,
String rvalue)
Factory method for numerical condition types. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Operator<Object,V> getOperator()
getOperator in interface Condition<T>public boolean isNotCondition()
isNotCondition in interface Condition<T>public boolean evaluate(T object)
this condition is valid for the given object
evaluate in interface org.apache.commons.collections15.Predicate<T>object - the object to test condition on
public boolean evaluate(TypedDataContainer input)
evaluate in interface Condition<T>public void printStackCommands()
printStackCommands in interface Condition<T>public Set<String> getDependentVariables()
getDependentVariables in interface Condition<T>public V getROperand()
public static <T,V> String getStackCommands(ConditionImpl<T,V> cond,
V value)
public String getName()
Condition
getName in interface Condition<T>
public static <T,V> ConditionImpl<T,V> valueOf(String lvalueName,
String operator,
String rvalue)
throws BuilderException
operator - the operator string.rvalue - the rvalue string.
ConditionImpl
BuilderException
public static <T,V> ConditionImpl<T,V> valueOf(String operator,
String rvalue)
throws BuilderException
BuilderException
public static <T,V> ConditionImpl<T,V> valueOf(String condition)
throws BuilderException
condition - the condition string to convert into ConditionImpl
ConditionImpl
OperatorNotFoundRTException
BuilderExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||