org.springmodules.validation.valang.predicates
Class LessThanTestPredicate

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.LessThanTestPredicate
All Implemented Interfaces:
org.apache.commons.collections.Predicate

public class LessThanTestPredicate
extends AbstractCompareTestPredicate

Tests if a value is less than to another.

Author:
David Winterfeldt

Constructor Summary
LessThanTestPredicate(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

LessThanTestPredicate

public LessThanTestPredicate(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.