org.springmodules.validation.util.condition.collection
Class AllCollectionCondition
java.lang.Object
  
org.springmodules.validation.util.condition.AbstractCondition
      
org.springmodules.validation.util.condition.NonNullAcceptingCondition
          
org.springmodules.validation.util.condition.collection.AbstractCollectionCondition
              
org.springmodules.validation.util.condition.collection.AbstractCollectionElementCondition
                  
org.springmodules.validation.util.condition.collection.AllCollectionCondition
- All Implemented Interfaces: 
 - Condition
 
public class AllCollectionCondition
- extends AbstractCollectionElementCondition
 
An AbstractCollectionCondition implementation that checks whether all elements in a collection or array
 adhere to a specific condition.
- Author:
 
  - Uri Boness
 
 
| 
Method Summary | 
protected  boolean | 
checkArray(Object array)
 
          Checks whether all the object in the given array adhere to the associated condition. | 
protected  boolean | 
checkCollection(Collection collection)
 
          Checks whether all the elements in the given collection adhere to the associated condition. | 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AllCollectionCondition
public AllCollectionCondition(Condition elementCondition)
- Constructs a new AllCollectionCondition with a given condition.
- Parameters:
 elementCondition - The condition to be checked on the collection elements.
 
checkArray
protected boolean checkArray(Object array)
- Checks whether all the object in the given array adhere to the associated condition.
- Specified by:
 checkArray in class AbstractCollectionCondition
 
- Parameters:
 array - The array to be checked.
- Returns:
 true all the objects in the given array adhere to the associated condition,
         false otherwise.
 
 
checkCollection
protected boolean checkCollection(Collection collection)
- Checks whether all the elements in the given collection adhere to the associated condition.
- Specified by:
 checkCollection in class AbstractCollectionCondition
 
- Parameters:
 collection - The collection to be checked.
- Returns:
 true if all the elements in the given collection adhere to the associated condition,
         false otherwise.
 
 
Copyright © 2009. All Rights Reserved.