| Constructor and Description |
|---|
EqualRule(String field1,
String field2)
Creates a EqualRule for comparing the fields given.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String[] values)
Check different values from an action input for the validation.
|
protected String[] |
getFieldsToValidate()
Subclasses should implement this method to indicate which fields
from the action input they want to receive for validation.
|
static EqualRule |
getInstance(String field1,
String field2) |
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
protected String[] getFieldsToValidate()
CrossRulegetFieldsToValidate in class CrossRulepublic boolean check(String[] values)
CrossRuleCopyright © 2015. All Rights Reserved.