|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springmodules.validation.valang.predicates.AbstractPropertyPredicate
org.springmodules.validation.valang.predicates.AbstractCompareTestPredicate
public abstract class AbstractCompareTestPredicate
Base class for comparing less than and greater than comparisons.
| Constructor Summary | |
|---|---|
AbstractCompareTestPredicate(Function leftFunction,
Operator operator,
Function rightFunction,
int line,
int column,
String operatorSymbol)
Constructor taking two functions and an operator. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
doEvaluate(BigDecimal leftValue,
BigDecimal rightValue)
Evaluates a BigDecimal and is called by
evaluate. |
protected abstract boolean |
doEvaluate(Date leftValue,
Date rightValue)
Evaluates a Date and is called by
evaluate. |
boolean |
evaluate(Object target)
The evaluate method takes the result of both functions and tests with the operator. |
| Methods inherited from class org.springmodules.validation.valang.predicates.AbstractPropertyPredicate |
|---|
getArray, getColumn, getIterator, getLeftFunction, getLine, getOperator, getRightFunction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCompareTestPredicate(Function leftFunction,
Operator operator,
Function rightFunction,
int line,
int column,
String operatorSymbol)
Constructor taking two functions and an operator.
leftFunction - the left functionoperator - the operator.| Method Detail |
|---|
public final boolean evaluate(Object target)
The evaluate method takes the result of both functions and tests with the operator.
evaluate in interface org.apache.commons.collections.Predicateevaluate in class AbstractPropertyPredicatetarget - The target bean.
protected abstract boolean doEvaluate(BigDecimal leftValue,
BigDecimal rightValue)
BigDecimal and is called by
evaluate.
protected abstract boolean doEvaluate(Date leftValue,
Date rightValue)
Date and is called by
evaluate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||