org.springmodules.validation.util.condition.date.jodatime
Class IsBeforeInstantCondition

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.jodatime.AbstractInstantCondition
                  extended by org.springmodules.validation.util.condition.date.jodatime.IsBeforeInstantCondition
All Implemented Interfaces:
Condition

public class IsBeforeInstantCondition
extends AbstractInstantCondition

An AbstractInstantCondition implementation that checks whether the checked instant comes chronologically before another instant.

Author:
Uri Boness

Constructor Summary
IsBeforeInstantCondition(ReadableInstant later)
          Constructs a new IsBeforeDateCondition with a given instant to be checked against.
 
Method Summary
protected  boolean checkInstant(ReadableInstant instant)
          Checks whether the given instant comes chronologically before the instant associated with this instantCondition.
 ReadableInstant getLater()
          Returns the instant associated with this condition.
 
Methods inherited from class org.springmodules.validation.util.condition.date.jodatime.AbstractInstantCondition
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

IsBeforeInstantCondition

public IsBeforeInstantCondition(ReadableInstant later)
Constructs a new IsBeforeDateCondition with a given instant to be checked against.

Parameters:
later - The instant that this instantCondition will checkCalendar against.
Method Detail

checkInstant

protected boolean checkInstant(ReadableInstant instant)
Checks whether the given instant comes chronologically before the instant associated with this instantCondition.

Specified by:
checkInstant in class AbstractInstantCondition
Parameters:
instant - The instance to be checked.
Returns:
true if the given instant comes before the instant associated with this instantCondition, false otherwise.

getLater

public ReadableInstant getLater()
Returns the instant associated with this condition.

Returns:
The instant associated with this condition.


Copyright © 2005. All Rights Reserved.