ru.tinkoff.kora.validation.common.annotation.NotBlank Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-common Show documentation
Show all versions of validation-common Show documentation
Kora validation-common module
package ru.tinkoff.kora.validation.common.annotation;
import ru.tinkoff.kora.validation.common.constraint.factory.NotBlankValidatorFactory;
import java.lang.annotation.*;
/**
* The annotated element must not be {@code null} and must contain at least one non-whitespace character
*
* Supported types are:
*
* - {@code CharSequence} (at least one non-whitespace character)
* - {@code String} (at least one non-whitespace character)
*
*/
@Documented
@Retention(value = RetentionPolicy.CLASS)
@Target(value = {ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER})
@ValidatedBy(NotBlankValidatorFactory.class)
public @interface NotBlank {
}