Class NotBlankValidatorForI18nString

java.lang.Object
dev.orne.i18n.validation.AbstractValidatorForI18nString<javax.validation.constraints.NotBlank>
dev.orne.i18n.validation.NotBlankValidatorForI18nString
All Implemented Interfaces:
javax.validation.ConstraintValidator<javax.validation.constraints.NotBlank,I18nString>

@API(status=INTERNAL, since="0.1") public class NotBlankValidatorForI18nString extends AbstractValidatorForI18nString<javax.validation.constraints.NotBlank>
Implementation of Javax Bean Validation ConstraintValidator for NotBlank constraint on I18nString instances.
Since:
0.1
Version:
1.0, 2021-02
Author:
(w) Iker Hernaez
See Also:
  • Constructor Details

    • NotBlankValidatorForI18nString

      public NotBlankValidatorForI18nString()
      Creates a new instance.
  • Method Details

    • isValid

      public boolean isValid(I18nString value, javax.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface javax.validation.ConstraintValidator<javax.validation.constraints.NotBlank,I18nString>
      Overrides:
      isValid in class AbstractValidatorForI18nString<javax.validation.constraints.NotBlank>
    • isTextValid

      protected boolean isTextValid(@NotNull @NotNull String text)
      Validates if the text is valid.
      Specified by:
      isTextValid in class AbstractValidatorForI18nString<javax.validation.constraints.NotBlank>
      Parameters:
      text - The text to validate
      Returns:
      If the text is valid