|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface DateCheckChecks if annotated method/field returns a value that applies to this date constraint.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
applyToGroups
Specify for which groups this annotation must be applied. |
int |
convertType
The dates are converted to this type, meaning that the actual comparison is done this way (e.g TYPE_CONVERT_DATE means that the dates are compared on their date's only, time is not included). |
java.lang.String |
customCode
Optional custom code (property from a properties file). |
boolean |
globalMessage
If this annotation's message must be added as global message instead of real validation path. |
int |
mode
The mode used for comparison, use one of the MODE_ constants of this annotation. |
java.lang.String |
pattern
The pattern to use to convert the value() to a valid Date (uses the formats supported by java.util.SimpleDateFormatter). |
boolean |
today
The date value that is used for comparison. |
java.lang.String |
value
The date value to use for comparison (used only if today() is set to false). |
public abstract boolean today
public abstract int mode
public abstract int convertType
public abstract java.lang.String value
public abstract java.lang.String pattern
Note you can include any format you like, but remember that comparison can be done in 3 different modes, irrelevant of this format. See compareType(). Pattern defaults to yyyy-MM-dd.
public abstract java.lang.String[] applyToGroups
Defaults to JvGroup.GROUP_APPLY_ALL
public abstract java.lang.String customCode
This way you can override the default message if needed.
public abstract boolean globalMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||