org.hibernate.validator.internal.constraintvalidators
Class LengthValidator
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.LengthValidator
- All Implemented Interfaces:
- ConstraintValidator<Length,CharSequence>
public class LengthValidator
- extends Object
- implements ConstraintValidator<Length,CharSequence>
Check that the character sequence length is between min and max.
- Author:
- Emmanuel Bernard, Gavin King
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LengthValidator
public LengthValidator()
initialize
public void initialize(Length parameters)
- Specified by:
initialize in interface ConstraintValidator<Length,CharSequence>
isValid
public boolean isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext)
- Specified by:
isValid in interface ConstraintValidator<Length,CharSequence>
Copyright © 2007-2013 Red Hat, Inc. All Rights Reserved