org.springmodules.validation.valang.predicates
Class GreaterThanTestPredicate

java.lang.Object
  extended by org.springmodules.validation.valang.predicates.AbstractPropertyPredicate
      extended by org.springmodules.validation.valang.predicates.AbstractCompareTestPredicate
          extended by org.springmodules.validation.valang.predicates.GreaterThanTestPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class GreaterThanTestPredicate
extends AbstractCompareTestPredicate

Tests if a value is greater than to another.

Author:
David Winterfeldt

Constructor Summary
GreaterThanTestPredicate(Function leftFunction, Operator operator, Function rightFunction, int line, int column)
          Constructor taking two functions and an operator.
 
Method Summary
protected  boolean doEvaluate(BigDecimal leftValue, BigDecimal rightValue)
          Evaluates a BigDecimal and is called by evaluate.
protected  boolean doEvaluate(Date leftValue, Date rightValue)
          Evaluates a BigDecimal and is called by evaluate.
 
Methods inherited from class org.springmodules.validation.valang.predicates.AbstractCompareTestPredicate
evaluate
 
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

GreaterThanTestPredicate

public GreaterThanTestPredicate(Function leftFunction,
                                Operator operator,
                                Function rightFunction,
                                int line,
                                int column)

Constructor taking two functions and an operator.

Parameters:
leftFunction - the left function
operator - the operator.
Method Detail

doEvaluate

protected boolean doEvaluate(BigDecimal leftValue,
                             BigDecimal rightValue)
Evaluates a BigDecimal and is called by evaluate.

Specified by:
doEvaluate in class AbstractCompareTestPredicate

doEvaluate

protected boolean doEvaluate(Date leftValue,
                             Date rightValue)
Evaluates a BigDecimal and is called by evaluate.

Specified by:
doEvaluate in class AbstractCompareTestPredicate


Copyright © 2009. All Rights Reserved.