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

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.common.AbstractCompoundCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
AndCondition, OrCondition

public abstract class AbstractCompoundCondition
extends AbstractCondition

A base class for all compound conditions.

Author:
Uri Boness

Constructor Summary
AbstractCompoundCondition(Collection conditions)
          Constructs a new AbstractCompoundCondition with the given collection of conditions.
AbstractCompoundCondition(Condition[] conditions)
          Constructs a new AbstractCompoundCondition with the given array of conditions.
 
Method Summary
 Condition[] getConditions()
          Returns the conditions this condition is compound from.
 
Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition
afterObjectChecked, and, beforeObjectChecked, check, doCheck, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCompoundCondition

public AbstractCompoundCondition(Condition[] conditions)
Constructs a new AbstractCompoundCondition with the given array of conditions.

Parameters:
conditions - The conditions this condition is compound from.

AbstractCompoundCondition

public AbstractCompoundCondition(Collection conditions)
Constructs a new AbstractCompoundCondition with the given collection of conditions.

Parameters:
conditions - The conditions this condition is compound from.
Method Detail

getConditions

public Condition[] getConditions()
Returns the conditions this condition is compound from.

Returns:
The conditions this condition is compound from.


Copyright © 2009. All Rights Reserved.