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

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.AbstractBetweenCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
BetweenCondition, BetweenIncludingCondition, BetweenIncludingLowerBoundCondition, BetweenIncludingUpperBoundCondition

public abstract class AbstractBetweenCondition
extends AbstractRangeCondition

An AbstractRangeCondition implementation that serves as a base class for all between conditions.

Author:
Uri Boness

Constructor Summary
AbstractBetweenCondition(Comparable lowerBound, Comparable upperBound)
          Constructs a new BetweenCondition with the given bounds (upper and lower) the checked value will be compared with.
AbstractBetweenCondition(Object lowerBound, Object upperBound, Comparator comparator)
           
 
Method Summary
 Object getLowerBound()
          Returns the lower bound that is associated with this condition.
 Object getUpperBound()
          Returns the upper bound that is associated with this condition.
 
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
 

Constructor Detail

AbstractBetweenCondition

public AbstractBetweenCondition(Comparable lowerBound,
                                Comparable upperBound)
Constructs a new BetweenCondition with the given bounds (upper and lower) the checked value will be compared with.

Parameters:
lowerBound - The lower bound the checked object will be compared with.
upperBound - The upper bound the checked object will be compared with.

AbstractBetweenCondition

public AbstractBetweenCondition(Object lowerBound,
                                Object upperBound,
                                Comparator comparator)
Method Detail

getLowerBound

public Object getLowerBound()
Returns the lower bound that is associated with this condition.

Returns:
The lower bound that is associated with this condition.

getUpperBound

public Object getUpperBound()
Returns the upper bound that is associated with this condition.

Returns:
The upper bound that is associated with this condition.


Copyright © 2009. All Rights Reserved.