Class DateFormat.DateFormatValidator

java.lang.Object
nablarch.core.validation.ee.DateFormat.DateFormatValidator
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<DateFormat,String>
Enclosing class:
DateFormat

public static class DateFormat.DateFormatValidator extends Object implements jakarta.validation.ConstraintValidator<DateFormat,String>
日付書式をバリデーションするConstraintValidatorクラス。
  • Field Details

    • DEFAULT_FORMAT

      public static final String DEFAULT_FORMAT
      デフォルト日付書式
      See Also:
    • DEFAULT_FORMAT_KEY

      public static final String DEFAULT_FORMAT_KEY
      デフォルト日付書式を設定するプロパティ名
      See Also:
  • Constructor Details

    • DateFormatValidator

      public DateFormatValidator()
  • Method Details

    • initialize

      public void initialize(DateFormat constraintAnnotation)
      Specified by:
      initialize in interface jakarta.validation.ConstraintValidator<DateFormat,String>
    • isValid

      public boolean isValid(String date, jakarta.validation.ConstraintValidatorContext context)
      Specified by:
      isValid in interface jakarta.validation.ConstraintValidator<DateFormat,String>