-
- All Implemented Interfaces:
- javax.validation.ConstraintValidator<Length,String>
public class LengthValidator
extends Object
implements javax.validation.ConstraintValidator<Length,String>
Check that a string's length is between min and max.
- Author:
- Emmanuel Bernard, Gavin King
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
void |
initialize(Length parameters) |
boolean |
isValid(String value,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LengthValidator
public LengthValidator()
Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved