org.springmodules.validation.util.condition.string
Class EqualsIgnoreCaseStringCondition

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.TypeSpecificCondition
          extended by org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
              extended by org.springmodules.validation.util.condition.string.AbstractStringCondition
                  extended by 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

Field Summary
 
Fields inherited from class org.springmodules.validation.util.condition.string.AbstractStringCondition
EMPTY_STRING
 
Constructor Summary
EqualsIgnoreCaseStringCondition(String text)
          Constructs a new EqualsIgnoreCaseStringCondition with a given text to be compared with the checked strings.
 
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 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

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.
Method Detail

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.