|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.rule.LocaleRule
public abstract class LocaleRule
A rule that depends on the user locale for validation.
| Constructor Summary | |
|---|---|
LocaleRule()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleRule()
| Method Detail |
|---|
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)
Rule
check in interface Rulefield - The field to validate.action - The action from where to get the field.
public Map<String,String> getTokens()
Rule
getTokens in interface Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||