org.springmodules.validation.valang.predicates
Class LessThanOrEqualTestPredicate

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

public class LessThanOrEqualTestPredicate
extends AbstractCompareTestPredicate

Tests if a value is less than or equal to another.

Author:
David Winterfeldt

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

LessThanOrEqualTestPredicate

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