|
|||||||||
| 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.ContainsSubstringStringCondition
public class ContainsSubstringStringCondition
An AbstractStringCondition implementation that checks whether the given strings contain a specific
sub-string.
| Field Summary |
|---|
| Fields inherited from class org.springmodules.validation.util.condition.string.AbstractStringCondition |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
ContainsSubstringStringCondition(java.lang.String substring)
Constructs a new ContainsSubstringStringCondition with a given sub-string. |
|
| Method Summary | |
|---|---|
protected boolean |
checkString(java.lang.String text)
Checks whether the given text contains the sub-string associated with this condition. |
java.lang.String |
getSubstring()
Returns the sub-string 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 ContainsSubstringStringCondition(java.lang.String substring)
substring - The sub-string this condition will look for within the checked strings.| Method Detail |
|---|
protected boolean checkString(java.lang.String text)
checkString in class AbstractStringConditiontext - The string to be checked.
true if the given text contains the sub-string, false otherwise.public java.lang.String getSubstring()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||