|
|||||||||
| 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.MaxLengthStringCondition
public class MaxLengthStringCondition
An AbstractStringCondition implementation that checks whether the checked strings are not longer then
a specific length.
| Field Summary |
|---|
| Fields inherited from class org.springmodules.validation.util.condition.string.AbstractStringCondition |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
MaxLengthStringCondition(int maxLength)
Creates a new MaxLengthStringCondition with a given maximum length. |
|
| Method Summary | |
|---|---|
protected boolean |
checkString(java.lang.String text)
Checks whether the given text is not longer than the maximum length that is associated with this condition. |
int |
getMaxLength()
Returns the maximum 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 MaxLengthStringCondition(int maxLength)
maxLength - The maximum length the checked string 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 longer than the maximum length associated with this condition,
false otherwise.public int getMaxLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||