|
|||||||||
| 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
public abstract class AbstractStringCondition
An abstract condition that can be applied on objects of type String.
| Field Summary | |
|---|---|
protected static java.lang.String |
EMPTY_STRING
|
| Constructor Summary | |
|---|---|
protected |
AbstractStringCondition()
Constructs a new AbstractStringCondition. |
| Method Summary | |
|---|---|
protected abstract boolean |
checkString(java.lang.String text)
Checks whether the given string adheres to this condition. |
boolean |
doCheck(java.lang.Object object)
See Condition.check(Object) |
| 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 |
| Field Detail |
|---|
protected static final java.lang.String EMPTY_STRING
| Constructor Detail |
|---|
protected AbstractStringCondition()
| Method Detail |
|---|
public final boolean doCheck(java.lang.Object object)
Condition.check(Object)
doCheck in class AbstractConditionobject - The object to be checked.
true if the given object adheres to this condition, false otherwise.
java.lang.IllegalArgumentException - if the given object is either null or not of a
java.lang.String type.protected abstract boolean checkString(java.lang.String text)
text - The string to be checked.
true if the given string adheres to this condition, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||