|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.util.condition.AbstractCondition org.springmodules.validation.util.condition.NonNullAcceptingCondition org.springmodules.validation.util.condition.collection.AbstractCollectionCondition
public abstract class AbstractCollectionCondition
A base class for all collection conditions.
Constructor Summary | |
---|---|
AbstractCollectionCondition()
|
Method Summary | |
---|---|
protected void |
beforeObjectChecked(Object object)
See NonNullAcceptingCondition.beforeObjectChecked(Object) . |
protected abstract boolean |
checkArray(Object array)
Checks whether the given array adheres to this Condition. |
protected abstract boolean |
checkCollection(Collection collection)
Checks whether the given collection adheres to this Condition. |
boolean |
doCheck(Object object)
See AbstractCondition.doCheck(Object) . |
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 AbstractCollectionCondition()
Method Detail |
---|
protected void beforeObjectChecked(Object object)
NonNullAcceptingCondition.beforeObjectChecked(Object)
.
Also verifies the given object is of a Collection
or an array.
beforeObjectChecked
in class NonNullAcceptingCondition
object
- The checked object.public final boolean doCheck(Object object)
AbstractCondition.doCheck(Object)
.checkArray(Object)
.Collection
type, the call is delegated to
checkCollection(java.util.Collection)
.
doCheck
in class AbstractCondition
object
- The object to be checked.
true
if the given object adheres to this condition, false
otherwise.protected abstract boolean checkArray(Object array)
array
- The array to be checked.
true
if the given array adheres to this condition, false
otherwise.protected abstract boolean checkCollection(Collection collection)
collection
- The collection to be checked.
true
if the given collection adheres to this condition, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |