public class Validator extends Object
Constructor and Description |
---|
Validator() |
Modifier and Type | Method and Description |
---|---|
Validator |
arg(String s) |
patInt |
maxChars()
For optimization it is helpful, but not necessary, that
you define the maximum number of characters this validator
will allow to match.
|
patInt |
minChars()
For optimization it is helpful, but not necessary, that
you define the minimum number of characters this validator
will allow to match.
|
int |
validate(StringLike src,
int start,
int end)
This method does extra checking on a matched section of
a String beginning at position start and ending at end.
|
public int validate(StringLike src, int start, int end)
public patInt minChars()
public patInt maxChars()