org.srplib.validation
Class StringMaxLengthValidator

java.lang.Object
  extended by org.srplib.validation.AbstractValidator<String>
      extended by org.srplib.validation.StringLengthValidator
          extended by org.srplib.validation.StringMaxLengthValidator
All Implemented Interfaces:
Validator<String>

public class StringMaxLengthValidator
extends StringLengthValidator

Validates if string length is not more than specified value.

Author:
Q-GMA

Constructor Summary
StringMaxLengthValidator(int maximum)
          Creates validators with specified range.
 
Method Summary
protected  ValidationError newError()
           
 
Methods inherited from class org.srplib.validation.StringLengthValidator
getMaximum, getMinimum, isValid
 
Methods inherited from class org.srplib.validation.AbstractValidator
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringMaxLengthValidator

public StringMaxLengthValidator(int maximum)
Creates validators with specified range.

Parameters:
maximum - maximal string length (inclusive).
Method Detail

newError

protected ValidationError newError()
Overrides:
newError in class StringLengthValidator


Copyright © 2012. All Rights Reserved.