|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.constraintvalidators.NotBlankValidator
public class NotBlankValidator
Check that a character sequence's (e.g. string) trimmed length is not empty.
| Constructor Summary | |
|---|---|
NotBlankValidator()
|
|
| Method Summary | |
|---|---|
void |
initialize(NotBlank annotation)
|
boolean |
isValid(java.lang.CharSequence charSequence,
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.CharSequence>
public boolean isValid(java.lang.CharSequence charSequence,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
isValid in interface javax.validation.ConstraintValidator<NotBlank,java.lang.CharSequence>charSequence - The character sequence to validate.constraintValidatorContext - context in which the constraint is evaluated.
true if the string is null or the length of charSequence 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 | |||||||||