se.unlogic.standardutils.validation
Class StringLengthValidator

java.lang.Object
  extended by se.unlogic.standardutils.validation.StringLengthValidator
All Implemented Interfaces:
StringFormatValidator

public class StringLengthValidator
extends Object
implements StringFormatValidator


Field Summary
protected  Integer maxLength
           
protected  Integer minLength
           
 
Constructor Summary
StringLengthValidator(Integer minLength, Integer maxLength)
           
 
Method Summary
 boolean validateFormat(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxLength

protected final Integer maxLength

minLength

protected final Integer minLength
Constructor Detail

StringLengthValidator

public StringLengthValidator(Integer minLength,
                             Integer maxLength)
Method Detail

validateFormat

public boolean validateFormat(String value)
Specified by:
validateFormat in interface StringFormatValidator


Copyright © 2011. All Rights Reserved.