| Constructor and Description |
|---|
StringRule()
Creates a StringRule.
|
StringRule(int min)
Creates a StringRule with a min value.
|
StringRule(int min,
int max)
Creates a StringRule with a min and max values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(String value)
Check a single input value from this action.
|
static StringRule |
getInstance() |
static StringRule |
getInstance(int min) |
static StringRule |
getInstance(int min,
int max) |
Map<String,String> |
getTokens()
Returns a map with tokens that can be used in the error messages.
|
public StringRule()
public StringRule(int min)
min - The min value to validate.public StringRule(int min,
int max)
min - The min value to validate.max - The max value to validate.public static StringRule getInstance()
public static StringRule getInstance(int min)
public static StringRule getInstance(int min, int max)
public Map<String,String> getTokens()
RuleCopyright © 2015. All Rights Reserved.