org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.ValidationLocaleRules


@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.
 

validateRequired

public abstract Jpf.ValidateRequired validateRequired
A Jpf.ValidateRequired rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateRequired(enabled=false)

validateMinLength

public abstract Jpf.ValidateMinLength validateMinLength
A Jpf.ValidateMinLength rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateMinLength(enabled=false, chars=-1)

validateMaxLength

public abstract Jpf.ValidateMaxLength validateMaxLength
A Jpf.ValidateMaxLength rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateMaxLength(enabled=false, chars=-1)

validateMask

public abstract Jpf.ValidateMask validateMask
A Jpf.ValidateMask rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateMask(enabled=false, regex="")

validateType

public abstract Jpf.ValidateType validateType
A Jpf.ValidateType rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateType(enabled=false, type=void.class)

validateDate

public abstract Jpf.ValidateDate validateDate
A Jpf.ValidateDate rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateDate(enabled=false, pattern="")

validateRange

public abstract Jpf.ValidateRange validateRange
A Jpf.ValidateRange rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateRange(enabled=false)

validateCreditCard

public abstract Jpf.ValidateCreditCard validateCreditCard
A Jpf.ValidateCreditCard rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateCreditCard(enabled=false)

validateEmail

public abstract Jpf.ValidateEmail validateEmail
A Jpf.ValidateEmail rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateEmail(enabled=false)

validateValidWhen

public abstract Jpf.ValidateValidWhen validateValidWhen
A Jpf.ValidateValidWhen rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateValidWhen(enabled=false, condition="")

validateURL

public abstract Jpf.ValidateURL validateURL
A Jpf.ValidateURL rule that will be applied for the given locale.

Default:
@org.apache.beehive.netui.pageflow.annotations.Jpf.ValidateURL(enabled=false)

validateCustomRules

public abstract Jpf.ValidateCustomRule[] validateCustomRules
A Jpf.ValidateCustomRule rule that will be applied for the given locale.

Default:
{}

language

public abstract String language
The language of the locale for which to apply the rules. Mutually-exclusive with applyToUnhandledLocales().

Default:
""

country

public abstract String country
The country of the locale for which to apply the rules. Requires language().

Default:
""

variant

public abstract String variant
The variant of the locale for which to apply the rules. Requires language().

Default:
""

applyToUnhandledLocales

public abstract boolean applyToUnhandledLocales
If set to true, then these rules will be run only for a locale that has no rules defined for it specifically. Mutually-exclusive with language().

Default:
false