org.aludratest.util.validator
Class EqualsIgnoreCaseTrimmedValidator

java.lang.Object
  extended by org.aludratest.util.validator.AbstractNullStringValidator
      extended by org.aludratest.util.validator.EqualsIgnoreCaseTrimmedValidator
All Implemented Interfaces:
org.databene.commons.Validator<String>

public class EqualsIgnoreCaseTrimmedValidator
extends AbstractNullStringValidator

Expects the validated strings to be equal to the search term ignoring case.

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.aludratest.util.validator.AbstractNullStringValidator
validationTerm
 
Constructor Summary
EqualsIgnoreCaseTrimmedValidator(String expectedTrimmed)
          Constructor.
 
Method Summary
protected  String descriptionImpl()
           
 boolean validImpl(String text)
          Delegate for string validation to be implemented by child classes.
 
Methods inherited from class org.aludratest.util.validator.AbstractNullStringValidator
toString, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualsIgnoreCaseTrimmedValidator

public EqualsIgnoreCaseTrimmedValidator(String expectedTrimmed)
Constructor.

Parameters:
expectedTrimmed - the required sub string
Method Detail

validImpl

public boolean validImpl(String text)
Description copied from class: AbstractNullStringValidator
Delegate for string validation to be implemented by child classes.

Specified by:
validImpl in class AbstractNullStringValidator

descriptionImpl

protected String descriptionImpl()
Specified by:
descriptionImpl in class AbstractNullStringValidator


Copyright © 2015 aludratest.org. All rights reserved.