org.springmodules.validation.util.condition.string
Class EqualsIgnoreCaseStringCondition
java.lang.Object
org.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.EqualsIgnoreCaseStringCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- IsEmptyStringCondition
public class EqualsIgnoreCaseStringCondition
- extends AbstractStringCondition
An AbstractStringCondition
implementation that checks whether the checked strings equal a specific string
while ignoring the letter casing.
- Author:
- Uri Boness
Method Summary |
protected boolean |
checkString(String text)
Checks whether the given text equals the text that is associated with this condition while ignoring the letter
casing. |
String |
getText()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EqualsIgnoreCaseStringCondition
public EqualsIgnoreCaseStringCondition(String text)
- Constructs a new EqualsIgnoreCaseStringCondition with a given text to be compared with the checked strings.
- Parameters:
text
- The text to be compared with the checked strings.
checkString
protected boolean checkString(String text)
- Checks whether the given text equals the text that is associated with this condition while ignoring the letter
casing.
- Specified by:
checkString
in class AbstractStringCondition
- Parameters:
text
- The text to be checed.
- Returns:
true
if the given text equals the text that is associated with this condition,
false
otherwise.
getText
public String getText()
Copyright © 2009. All Rights Reserved.