Class NotBlankValidator
java.lang.Object
org.apache.logging.log4j.core.config.plugins.validation.validators.NotBlankValidator
- All Implemented Interfaces:
- ConstraintValidator<NotBlank>
Validator that checks if a 
CharSequence is not entirely composed of
 whitespace.- Since:
- 2.18.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidinitialize(NotBlank anAnnotation) Called before this validator is used with the constraint annotation value.booleanIndicates if the given value is valid.
- 
Constructor Details- 
NotBlankValidatorpublic NotBlankValidator()
 
- 
- 
Method Details- 
initializeDescription copied from interface:ConstraintValidatorCalled before this validator is used with the constraint annotation value.- Specified by:
- initializein interface- ConstraintValidator<NotBlank>
- Parameters:
- anAnnotation- the annotation value this validator will be validating.
 
- 
isValidDescription copied from interface:ConstraintValidatorIndicates if the given value is valid.- Specified by:
- isValidin interface- ConstraintValidator<NotBlank>
- Parameters:
- name- the name to use for error reporting
- value- the value to validate.
- Returns:
- trueif the given value is valid.
 
 
-