Annotation Type DateTime


@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) @Documented @Constraint(validatedBy=io.xlate.validation.internal.constraintvalidators.DateTimeValidator.class) @Repeatable(List.class) public @interface DateTime
The annotated element value must contain characters valid for the given patterns. The value must be able to be parsed.

Supported types are:

  • CharSequence

null elements are considered valid.

Author:
Michael Edgar
  • Element Details

    • message

      String message
    • patterns

      String[] patterns
      Valid date patterns to which the annotated element must conform. Legal values for the patterns depends on the value of parserType() being used.
      Returns:
      patterns the valid date patterns to which the annotated element must conform