org.springmodules.validation.util.condition.date
Class IsInTheFutureDateCondition

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.TypeSpecificCondition
          extended by org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
              extended by org.springmodules.validation.util.condition.date.AbstractDateCondition
                  extended by org.springmodules.validation.util.condition.date.IsInTheFutureDateCondition
All Implemented Interfaces:
Condition

public class IsInTheFutureDateCondition
extends AbstractDateCondition

An AbstractDateCondition implementation that checks whether the checked date is in the furture.

Author:
Uri Boness

Constructor Summary
IsInTheFutureDateCondition()
           
 
Method Summary
protected  boolean checkCalendar(Calendar calendar)
          Checks whether the given calendar is in the future.
 
Methods inherited from class org.springmodules.validation.util.condition.date.AbstractDateCondition
doCheck
 
Methods inherited from class org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
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

IsInTheFutureDateCondition

public IsInTheFutureDateCondition()
Method Detail

checkCalendar

protected boolean checkCalendar(Calendar calendar)
Checks whether the given calendar is in the future.

Specified by:
checkCalendar in class AbstractDateCondition
Parameters:
calendar - The checked calendar.
Returns:
true if the given calendar is in the future, false otherwise.


Copyright © 2009. All Rights Reserved.