|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) public static @interface Jpf.ValidationLocaleRules
A set of validation rules that will be applied for a particular locale. Used within a
Jpf.ValidatableProperty
.
Optional Element Summary | |
---|---|
boolean |
applyToUnhandledLocales
If set to true , then these rules will be run only for a locale that has no rules defined
for it specifically. |
String |
country
The country of the locale for which to apply the rules. |
String |
language
The language of the locale for which to apply the rules. |
Jpf.ValidateCreditCard |
validateCreditCard
A Jpf.ValidateCreditCard rule that will be applied for the given locale. |
Jpf.ValidateCustomRule[] |
validateCustomRules
A Jpf.ValidateCustomRule rule that will be applied for the given locale. |
Jpf.ValidateDate |
validateDate
A Jpf.ValidateDate rule that will be applied for the given locale. |
Jpf.ValidateEmail |
validateEmail
A Jpf.ValidateEmail rule that will be applied for the given locale. |
Jpf.ValidateMask |
validateMask
A Jpf.ValidateMask rule that will be applied for the given locale. |
Jpf.ValidateMaxLength |
validateMaxLength
A Jpf.ValidateMaxLength rule that will be applied for the given locale. |
Jpf.ValidateMinLength |
validateMinLength
A Jpf.ValidateMinLength rule that will be applied for the given locale. |
Jpf.ValidateRange |
validateRange
A Jpf.ValidateRange rule that will be applied for the given locale. |
Jpf.ValidateRequired |
validateRequired
A Jpf.ValidateRequired rule that will be applied for the given locale. |
Jpf.ValidateType |
validateType
A Jpf.ValidateType rule that will be applied for the given locale. |
Jpf.ValidateURL |
validateURL
A Jpf.ValidateURL rule that will be applied for the given locale. |
Jpf.ValidateValidWhen |
validateValidWhen
A Jpf.ValidateValidWhen rule that will be applied for the given locale. |
String |
variant
The variant of the locale for which to apply the rules. |
public abstract Jpf.ValidateRequired validateRequired
Jpf.ValidateRequired
rule that will be applied for the given locale.
public abstract Jpf.ValidateMinLength validateMinLength
Jpf.ValidateMinLength
rule that will be applied for the given locale.
public abstract Jpf.ValidateMaxLength validateMaxLength
Jpf.ValidateMaxLength
rule that will be applied for the given locale.
public abstract Jpf.ValidateMask validateMask
Jpf.ValidateMask
rule that will be applied for the given locale.
public abstract Jpf.ValidateType validateType
Jpf.ValidateType
rule that will be applied for the given locale.
public abstract Jpf.ValidateDate validateDate
Jpf.ValidateDate
rule that will be applied for the given locale.
public abstract Jpf.ValidateRange validateRange
Jpf.ValidateRange
rule that will be applied for the given locale.
public abstract Jpf.ValidateCreditCard validateCreditCard
Jpf.ValidateCreditCard
rule that will be applied for the given locale.
public abstract Jpf.ValidateEmail validateEmail
Jpf.ValidateEmail
rule that will be applied for the given locale.
public abstract Jpf.ValidateValidWhen validateValidWhen
Jpf.ValidateValidWhen
rule that will be applied for the given locale.
public abstract Jpf.ValidateURL validateURL
Jpf.ValidateURL
rule that will be applied for the given locale.
public abstract Jpf.ValidateCustomRule[] validateCustomRules
Jpf.ValidateCustomRule
rule that will be applied for the given locale.
public abstract String language
applyToUnhandledLocales()
.
public abstract String country
language()
.
public abstract String variant
language()
.
public abstract boolean applyToUnhandledLocales
true
, then these rules will be run only for a locale that has no rules defined
for it specifically. Mutually-exclusive with language()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |