|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface DateUtil.DateSource
Specifies a date to be passed as an argument to a validator.
The date can be derived from four sources, defined by
sourceType():
Field being validated.fieldName() Field of
the Object being validated.date().compositeDateParts().dateFormats() specifies an array of formats that can be
used to convert text dates for all SourceTypes except
COMPOSITE.
| Optional Element Summary | |
|---|---|
DateUtil.CompositeDatePart[] |
compositeDateParts
An array of CompositeDateParts defining the fields
that make up the date when sourceType() is
COMPOSITE. |
java.lang.String |
date
The date, when sourceType() is TEXT_DATE. |
java.lang.String[] |
dateFormats
An array of conversion formats that can be used to convert a text date. |
java.lang.String |
fieldName
The name of the Field containing the date, when
sourceType() is TARGET_OBJECT_FIELD_VALUE. |
DateUtil.DateSource.SourceType |
sourceType
The type of date source used to retrieve the date. |
public abstract DateUtil.DateSource.SourceType sourceType
public abstract java.lang.String date
sourceType() is TEXT_DATE.
public abstract java.lang.String fieldName
Field containing the date, when
sourceType() is TARGET_OBJECT_FIELD_VALUE.
public abstract java.lang.String[] dateFormats
date() when sourceType() is
TEXT_DATE, or a selection of formats allowed by your
application for TARGET_FIELD_VALUE and
TARGET_OBJECT_FIELD_VALUE. COMPOSITE does
not make use of dateFormats().
public abstract DateUtil.CompositeDatePart[] compositeDateParts
CompositeDateParts defining the fields
that make up the date when sourceType() is
COMPOSITE.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||