org.springmodules.validation.util.condition.common
Class IsTrueCondition

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

public class IsTrueCondition
extends NonNullAcceptingTypeSpecificCondition

A boolean condition that checks whether the checked boolean is true.

Author:
Uri Boness

Constructor Summary
IsTrueCondition()
          Constructs a nwe IsTrueCondition.
 
Method Summary
 boolean doCheck(Object bool)
          Checks whether the given boolean object is true.
 
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

IsTrueCondition

public IsTrueCondition()
Constructs a nwe IsTrueCondition.

Method Detail

doCheck

public boolean doCheck(Object bool)
Checks whether the given boolean object is true.

Specified by:
doCheck in class AbstractCondition
Parameters:
bool - The boolean object to be checked.
Returns:
true if the given boolean object is true, false otherwise.


Copyright © 2009. All Rights Reserved.