|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.constraints.impl.NotBlankValidator
public class NotBlankValidator
Check that a string's trimmed length is not empty.
| Constructor Summary | |
|---|---|
NotBlankValidator()
|
|
| Method Summary | |
|---|---|
void |
initialize(NotBlank annotation)
|
boolean |
isValid(java.lang.String s,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotBlankValidator()
| Method Detail |
|---|
public void initialize(NotBlank annotation)
initialize in interface javax.validation.ConstraintValidator<NotBlank,java.lang.String>
public boolean isValid(java.lang.String s,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
isValid in interface javax.validation.ConstraintValidator<NotBlank,java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||