public abstract class BasicRule extends Object implements Rule
| Constructor and Description |
|---|
BasicRule() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
check(String value)
Check a single input value from this action.
|
boolean |
check(String field,
Action action)
Check and validate the given field from the give action.
|
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public abstract boolean check(String value)
value - The value to validate.public boolean check(String field, Action action)
RuleCopyright © 2015. All Rights Reserved.