org.springmodules.validation.util.condition.range
Class AbstractSingleBoundCondition

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.NonNullAcceptingCondition
          extended by org.springmodules.validation.util.condition.range.AbstractRangeCondition
              extended by org.springmodules.validation.util.condition.range.AbstractSingleBoundCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
GreaterThanCondition, GreaterThanOrEqualsCondition, LessThanCondition, LessThanOrEqualsCondition

public abstract class AbstractSingleBoundCondition
extends AbstractRangeCondition

A base class for all single bound conditions.

Author:
Uri Boness

Field Summary
protected  Object bound
           
 
Constructor Summary
AbstractSingleBoundCondition(Comparable bound)
          Constructs a new AbstractSingleBoundCondition with a given bound.
AbstractSingleBoundCondition(Object bound, Comparator comparator)
          Constructs a new AbstractSingleBoundCondition with given bound and the comparator to be used to compare the checked value.
 
Method Summary
 
Methods inherited from class org.springmodules.validation.util.condition.range.AbstractRangeCondition
checkRange, doCheck
 
Methods inherited from class org.springmodules.validation.util.condition.NonNullAcceptingCondition
beforeObjectChecked
 
Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition
afterObjectChecked, and, check, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bound

protected Object bound
Constructor Detail

AbstractSingleBoundCondition

public AbstractSingleBoundCondition(Comparable bound)
Constructs a new AbstractSingleBoundCondition with a given bound.

Parameters:
bound - The bound.

AbstractSingleBoundCondition

public AbstractSingleBoundCondition(Object bound,
                                    Comparator comparator)
Constructs a new AbstractSingleBoundCondition with given bound and the comparator to be used to compare the checked value.

Parameters:
bound - The bound bound.
comparator - The comparator.


Copyright © 2009. All Rights Reserved.