|
|||||||||
| 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.MaxSizeCollectionCondition
public class MaxSizeCollectionCondition
An AbstractCollectionCondition implementation that checks whether the given collection or array
is longer then a specific maximum size.
| Constructor Summary | |
|---|---|
MaxSizeCollectionCondition(int maxSize)
Constructs a new MaxSizeCollectionCondition with a given maximum size. |
|
| Method Summary | |
|---|---|
protected boolean |
checkArray(java.lang.Object array)
Checks whether the length of the given array is smaller than or equals the maximum size associated with this condition. |
protected boolean |
checkCollection(java.util.Collection collection)
Checks whether the size of the given collection is smaller than or equals the maximum size associated with this condition. |
int |
getMaxSize()
Returns the maximum size associated with this condition. |
| 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 MaxSizeCollectionCondition(int maxSize)
maxSize - The maximum size.| Method Detail |
|---|
protected boolean checkArray(java.lang.Object array)
checkArray in class AbstractCollectionConditionarray - The array to be checked.
true if the length of the given array is smaller than or equals the maximum size
associated with this condition, false otherwise.protected boolean checkCollection(java.util.Collection collection)
checkCollection in class AbstractCollectionConditioncollection - The collection to be checked.
true if the size of the given collection is smaller than or equals the maximum size
associated with this condition, false otherwise.public int getMaxSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||