|
|||||||||
| 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.TypeSpecificCondition
org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
org.springmodules.validation.util.condition.string.AbstractStringCondition
org.springmodules.validation.util.condition.string.MinLengthStringCondition
public class MinLengthStringCondition
An AbstractStringCondition implementation that checks whether the checked strings are not shorter than
a specific minimum length.
| Field Summary |
|---|
| Fields inherited from class org.springmodules.validation.util.condition.string.AbstractStringCondition |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
MinLengthStringCondition(int minLength)
Creates a new MinLengthStringCondition with a given minimum length that the checked strings will be checked against. |
|
| Method Summary | |
|---|---|
protected boolean |
checkString(java.lang.String text)
Checks whether the given text is not shorter then the minimum length that is associated with this condition. |
int |
getMinLength()
Returns the minimum length that is associated with this condition. |
| Methods inherited from class org.springmodules.validation.util.condition.string.AbstractStringCondition |
|---|
doCheck |
| Methods inherited from class org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition |
|---|
beforeObjectChecked |
| 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 MinLengthStringCondition(int minLength)
minLength - The minimum length that the checked strings will be checked against.| Method Detail |
|---|
protected boolean checkString(java.lang.String text)
checkString in class AbstractStringConditiontext - The checked text.
true if the given text is not shorter then the minimum length that is associated with this
condition, false otherwise.public int getMinLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||