Class SizeValidatorForI18nString

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

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

    • SizeValidatorForI18nString

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

    • initialize

      public void initialize(@NotNull @NotNull javax.validation.constraints.Size parameters)
    • isTextValid

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

      protected void validateParameters()
      Validates constraint annotation values.