org.springframework.rules.constraint
Class IfTrue

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.core.closure.support.AbstractConstraint
          extended by org.springframework.rules.constraint.IfTrue
All Implemented Interfaces:
Serializable, Constraint, TypeResolvable

public class IfTrue
extends AbstractConstraint
implements TypeResolvable

See Also:
Serialized Form

Constructor Summary
IfTrue(Constraint constraint, Constraint mustAlsoBeTrue)
           
IfTrue(Constraint constraint, Constraint mustAlsoBeTrue, Constraint elseMustAlsoBeTrue)
           
IfTrue(Constraint constraint, Constraint mustAlsoBeTrue, Constraint elseMustAlsoBeTrue, String type)
           
IfTrue(Constraint constraint, Constraint mustAlsoBeTrue, String type)
           
 
Method Summary
 String getType()
          Returns this object's logical type identifier.
 boolean test(Object argument)
          Test the provided argument against this predicate's condition.
 
Methods inherited from class org.springframework.core.closure.support.AbstractConstraint
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst
 
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IfTrue

public IfTrue(Constraint constraint,
              Constraint mustAlsoBeTrue)

IfTrue

public IfTrue(Constraint constraint,
              Constraint mustAlsoBeTrue,
              String type)

IfTrue

public IfTrue(Constraint constraint,
              Constraint mustAlsoBeTrue,
              Constraint elseMustAlsoBeTrue)

IfTrue

public IfTrue(Constraint constraint,
              Constraint mustAlsoBeTrue,
              Constraint elseMustAlsoBeTrue,
              String type)
Method Detail

test

public boolean test(Object argument)
Description copied from interface: Constraint
Test the provided argument against this predicate's condition.

Specified by:
test in interface Constraint
Parameters:
argument - the argument value
Returns:
true if the condition was satisfied, false otherwise

getType

public String getType()
Description copied from interface: TypeResolvable
Returns this object's logical type identifier.

Specified by:
getType in interface TypeResolvable
Returns:
The type identifier


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.