public static class DateFormat.DateFormatValidator extends java.lang.Object implements javax.validation.ConstraintValidator<DateFormat,java.lang.String>
ConstraintValidator
クラス。Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FORMAT
デフォルト日付書式
|
static java.lang.String |
DEFAULT_FORMAT_KEY
デフォルト日付書式を設定するプロパティ名
|
Constructor and Description |
---|
DateFormatValidator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(DateFormat constraintAnnotation) |
boolean |
isValid(java.lang.String date,
javax.validation.ConstraintValidatorContext context) |
public static final java.lang.String DEFAULT_FORMAT
public static final java.lang.String DEFAULT_FORMAT_KEY
public void initialize(DateFormat constraintAnnotation)
initialize
in interface javax.validation.ConstraintValidator<DateFormat,java.lang.String>
public boolean isValid(java.lang.String date, javax.validation.ConstraintValidatorContext context)
isValid
in interface javax.validation.ConstraintValidator<DateFormat,java.lang.String>