| Modifier | Constructor and Description |
|---|---|
protected |
DependentFieldValueRule(String field1,
String field1Value,
String field2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String field,
Action action)
Check and validate the given field from the give action.
|
static DependentFieldValueRule |
getInstance(String field1,
String field1Value,
String field2) |
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public static DependentFieldValueRule getInstance(String field1, String field1Value, String field2)
field1 - field that will be evaluatedfield1Value - the value that will be compared with the value of first fieldfield2 - field that will be required if the value of field1 be equals specified in field1Valuepublic boolean check(String field, Action action)
RuleCopyright © 2015. All Rights Reserved.