| Constructor and Description |
|---|
LocaleRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String field,
Action action)
Check and validate the given field from the give action.
|
abstract boolean |
check(String value,
Locale loc)
Check a single input value from this action considering its locale.
|
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public abstract boolean check(String value, Locale loc)
value - The value to validate.loc - The locale to consider in the validation.public boolean check(String field, Action action)
RuleCopyright © 2015. All Rights Reserved.