|
|||||||||
| 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.SizeRangeCollectionCondition
public class SizeRangeCollectionCondition
An AbstractCollectionCondition that checks that the size/length of the the checked collection/array is
with in a specific bounds.
| Constructor Summary | |
|---|---|
SizeRangeCollectionCondition(int minSize,
int maxSize)
Constructs a new SizeRangeCollectionCondition with a given minimum and maximum sizes. |
|
| Method Summary | |
|---|---|
protected boolean |
checkArray(java.lang.Object array)
Checks whether the given array is in the boundries of the range defined by this condition. |
protected boolean |
checkCollection(java.util.Collection collection)
Checks whether the given collection is in the boundries of the range defined by this condition. |
int |
getMaxSize()
Returns the maximum size of this range condition |
int |
getMinSize()
Returns the minimum size of this range 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 SizeRangeCollectionCondition(int minSize,
int maxSize)
minSize - The given minimum size.maxSize - The given maximum size.| Method Detail |
|---|
protected boolean checkArray(java.lang.Object array)
checkArray in class AbstractCollectionConditionarray - The array to be checked.
true if the given array adheres to this condition, false otherwise.AbstractCollectionCondition.checkArray(Object)protected boolean checkCollection(java.util.Collection collection)
checkCollection in class AbstractCollectionConditioncollection - The collection to be checked.
true if the given collection adheres to this condition, false otherwise.AbstractCollectionCondition.checkCollection(java.util.Collection)public int getMinSize()
public int getMaxSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||