|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public static @interface Jpf.ValidateDate
A validation rule that will fail if it is applied to a property that has a non-empty value which is not a date
in a given format.
Used within Jpf.ValidatableProperty and Jpf.ValidationLocaleRules.
| Required Element Summary | |
|---|---|
String |
pattern
The date pattern which will be used to initialize a java.text.SimpleDateFormat. |
| Optional Element Summary | |
|---|---|
String |
bundleName
The name of the message bundle in which to look up the error message. |
boolean |
enabled
If set to false, then this rule will not be applied. |
String |
message
The JSP 2.0-style expression (e.g., ${pageFlow.myProperty}) or literal string that will be used
as the error message. |
Jpf.MessageArg[] |
messageArgs
An array of message arguments, which will be used for the message obtained from message() or
messageKey(), whichever is specified. |
String |
messageKey
A key in the default message bundle or in the bundle specified by bundleName() that will be
used to look up the error message. |
boolean |
strict
If set to true, then every element of the date must match the pattern exactly; for example,
"9/10/1973" would not match the pattern "MM/dd/yyyy". |
| Element Detail |
|---|
public abstract String pattern
java.text.SimpleDateFormat.
public abstract boolean enabled
false, then this rule will not be applied.
public abstract boolean strict
true, then every element of the date must match the pattern exactly; for example,
"9/10/1973" would not match the pattern "MM/dd/yyyy".
public abstract String message
${pageFlow.myProperty}) or literal string that will be used
as the error message. Mutually-exclusive with messageKey().
public abstract String messageKey
bundleName() that will be
used to look up the error message. Mutually-exclusive with messageKey().
Jpf.MessageBundlepublic abstract String bundleName
messageKey() to be set.
Jpf.MessageBundlepublic abstract Jpf.MessageArg[] messageArgs
message() or
messageKey(), whichever is specified.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||