| Constructor and Description |
|---|
NotBlankValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(NotBlank annotation) |
boolean |
isValid(String s,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty.
|
public void initialize(NotBlank annotation)
public boolean isValid(String s, javax.validation.ConstraintValidatorContext constraintValidatorContext)
isValid in interface javax.validation.ConstraintValidator<NotBlank,String>s - The string to validate.constraintValidatorContext - context in which the constraint is evaluated.true if the string is null or the length of s between the specified
min and max values (inclusive), false otherwise.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved