public class NullableNotBlankValidator extends java.lang.Object implements javax.validation.ConstraintValidator<NullableNotBlank,java.lang.CharSequence>
Validator for the NullableNotBlank
annotation.
NullableNotBlank}
Constructor and Description |
---|
NullableNotBlankValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(NullableNotBlank annotation)
Initialize.
|
boolean |
isValid(java.lang.CharSequence charSequence,
javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not Blank.
|
public NullableNotBlankValidator()
public void initialize(NullableNotBlank annotation)
Initialize.
initialize
in interface javax.validation.ConstraintValidator<NullableNotBlank,java.lang.CharSequence>
annotation
- the annotationpublic boolean isValid(java.lang.CharSequence charSequence, javax.validation.ConstraintValidatorContext constraintValidatorContext)
Checks that the trimmed string is not Blank.
isValid
in interface javax.validation.ConstraintValidator<NullableNotBlank,java.lang.CharSequence>
charSequence
- The character sequence to validate.constraintValidatorContext
- context in which the constraint is evaluated.Copyright © 2014-2018 Konik.io. All Rights Reserved.