|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.SomeCollectionCondition
public class SomeCollectionCondition
An AbstractCollectionCondition implementation that checks whether some of the elements in a collection
or array adhere to a specific condition.
| Constructor Summary | |
|---|---|
SomeCollectionCondition(Condition elementCondition)
Constructs a new SomeCollectionCondition with a given condition. |
|
| Method Summary | |
|---|---|
protected boolean |
checkArray(java.lang.Object array)
Checks whether any of the objects in the given array adhere to the associated condition. |
protected boolean |
checkCollection(java.util.Collection collection)
Checks whether any of the elements in the given collection adhere to the associated condition. |
| Methods inherited from class org.springmodules.validation.util.condition.collection.AbstractCollectionElementCondition |
|---|
getElementCondition |
| Methods inherited from class org.springmodules.validation.util.condition.collection.AbstractCollectionCondition |
|---|
beforeObjectChecked, doCheck |
| 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 |
|---|
public SomeCollectionCondition(Condition elementCondition)
elementCondition - The condition to be checked on the collection elements.| Method Detail |
|---|
protected boolean checkArray(java.lang.Object array)
checkArray in class AbstractCollectionConditionarray - The array to be checked.
true any of the objects in the given array adhere to the associated condition,
false otherwise.protected boolean checkCollection(java.util.Collection collection)
checkCollection in class AbstractCollectionConditioncollection - The collection to be checked.
true if any of the elements in the given collection adhere to the associated condition,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||