org.aludratest.util.validator
Class NumberStringLessValidator

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

public class NumberStringLessValidator
extends AbstractNumberStringValidator

Requires numbers (formatted as strings) to be less than a reference value.

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.aludratest.util.validator.AbstractNumberStringValidator
tolerance
 
Fields inherited from class org.aludratest.util.validator.AbstractNullStringValidator
validationTerm
 
Constructor Summary
NumberStringLessValidator(String validationTerm, double tolerance)
          Constructor.
 
Method Summary
protected  String descriptionImpl()
           
protected  boolean validImpl(String text)
          Delegate for string validation to be implemented by child classes.
 
Methods inherited from class org.aludratest.util.validator.AbstractNumberStringValidator
parseDouble
 
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

NumberStringLessValidator

public NumberStringLessValidator(String validationTerm,
                                 double tolerance)
Constructor.

Parameters:
validationTerm -
tolerance -
Method Detail

validImpl

protected 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.