|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={ANNOTATION_TYPE,METHOD}) @Retention(value=RUNTIME) public static @interface Jpf.ValidatableProperty
A set of validation rules that will be applied against a property. Used directly on a property getter method,
or within a Jpf.Action
, Jpf.SimpleAction
, or Jpf.ValidatableBean
annotation. Contains rules to be
applied for every locale, and sets of locale-specific rules.
Optional Element Summary | |
---|---|
String |
displayName
The JSP 2.0-style expression (e.g., ${bundle.default.someMessageResource} ) or literal string
that will be used as the first argument to all error messages for this property. |
String |
displayNameKey
A key in the default message bundle or in the bundle specified by Jpf.MessageBundle.bundleName() that will be
used as the first argument to all error messages for this property. |
Jpf.ValidationLocaleRules[] |
localeRules
An array of sets of locale-specific validation rules. |
String |
propertyName
The name of the property to run rules against. |
Jpf.ValidateCreditCard |
validateCreditCard
A Jpf.ValidateCreditCard rule that will be applied for all locales. |
Jpf.ValidateCustomRule[] |
validateCustomRules
A Jpf.ValidateCustomRule rule that will be applied for all locales. |
Jpf.ValidateDate |
validateDate
A Jpf.ValidateDate rule that will be applied for all locales. |
Jpf.ValidateEmail |
validateEmail
A Jpf.ValidateEmail rule that will be applied for all locales. |
Jpf.ValidateMask |
validateMask
A Jpf.ValidateMask rule that will be applied for all locales. |
Jpf.ValidateMaxLength |
validateMaxLength
A Jpf.ValidateMaxLength rule that will be applied for all locales. |
Jpf.ValidateMinLength |
validateMinLength
A Jpf.ValidateMinLength rule that will be applied for all locales. |
Jpf.ValidateRange |
validateRange
A Jpf.ValidateRange rule that will be applied for all locales. |
Jpf.ValidateRequired |
validateRequired
A Jpf.ValidateRequired rule that will be applied for all locales. |
Jpf.ValidateType |
validateType
A Jpf.ValidateType rule that will be applied for all locales. |
Jpf.ValidateURL |
validateURL
A Jpf.ValidateURL rule that will be applied for all locales. |
Jpf.ValidateValidWhen |
validateValidWhen
A Jpf.ValidateValidWhen rule that will be applied for all locales. |
public abstract String propertyName
propertyName
is illegal because the property name is inferred from the method name.
public abstract String displayName
${bundle.default.someMessageResource}
) or literal string
that will be used as the first argument to all error messages for this property. When this is specified,
the individual rules can avoid providing specific messages; instead, a default message will be used.
Mutually-exclusive with displayNameKey()
.
public abstract String displayNameKey
Jpf.MessageBundle.bundleName()
that will be
used as the first argument to all error messages for this property. When this is specified,
the individual rules can avoid providing specific messages; instead, a default message will be used.
Mutually-exclusive with displayName()
.
Jpf.MessageBundle
public abstract Jpf.ValidateRequired validateRequired
Jpf.ValidateRequired
rule that will be applied for all locales.
public abstract Jpf.ValidateMinLength validateMinLength
Jpf.ValidateMinLength
rule that will be applied for all locales.
public abstract Jpf.ValidateMaxLength validateMaxLength
Jpf.ValidateMaxLength
rule that will be applied for all locales.
public abstract Jpf.ValidateMask validateMask
Jpf.ValidateMask
rule that will be applied for all locales.
public abstract Jpf.ValidateType validateType
Jpf.ValidateType
rule that will be applied for all locales.
public abstract Jpf.ValidateDate validateDate
Jpf.ValidateDate
rule that will be applied for all locales.
public abstract Jpf.ValidateRange validateRange
Jpf.ValidateRange
rule that will be applied for all locales.
public abstract Jpf.ValidateCreditCard validateCreditCard
Jpf.ValidateCreditCard
rule that will be applied for all locales.
public abstract Jpf.ValidateEmail validateEmail
Jpf.ValidateEmail
rule that will be applied for all locales.
public abstract Jpf.ValidateValidWhen validateValidWhen
Jpf.ValidateValidWhen
rule that will be applied for all locales.
public abstract Jpf.ValidateURL validateURL
Jpf.ValidateURL
rule that will be applied for all locales.
public abstract Jpf.ValidateCustomRule[] validateCustomRules
Jpf.ValidateCustomRule
rule that will be applied for all locales.
public abstract Jpf.ValidationLocaleRules[] localeRules
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |