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

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.IsInThePastDateCondition
All Implemented Interfaces:
Condition

public class IsInThePastDateCondition
extends AbstractDateCondition

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

Author:
Uri Boness

Constructor Summary
IsInThePastDateCondition()
           
 
Method Summary
protected  boolean checkCalendar(Calendar calendar)
          Checks whether the given calendar is in the past.
 
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

IsInThePastDateCondition

public IsInThePastDateCondition()
Method Detail

checkCalendar

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

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


Copyright © 2009. All Rights Reserved.