@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy=DateWithCustomFormat.DateWithCustomFormatValidator.class) public @interface DateWithCustomFormat
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
dateProperty
The name of the property in the annotated class which holds a String representation of a Date.
|
java.lang.String |
formatProperty
The name of the property in the annotated class which holds the date pattern.
|
java.lang.Class<?>[] |
groups |
java.lang.String |
message |
java.lang.Class<? extends javax.validation.Payload>[] |
payload |
public abstract java.lang.String message
public abstract java.lang.String dateProperty
public abstract java.lang.String formatProperty
That property is encouraged to bear the @DateFormat
constraint.
public abstract java.lang.Class<?>[] groups
public abstract java.lang.Class<? extends javax.validation.Payload>[] payload