public class RepeatCharacterRegexRule extends IllegalRegexRule
Pattern
/p{ASCII}. The default sequence length is 5 characters.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SEQUENCE_LENGTH
Default length of sequence, value is 5.
|
static int |
MINIMUM_SEQUENCE_LENGTH
Minimum length of sequence, value is 3.
|
protected int |
sequenceLength
Number of characters in sequence to match.
|
ERROR_CODE, pattern, reportAllFailures
Constructor and Description |
---|
RepeatCharacterRegexRule()
Creates a new repeat character regex rule with the default sequence length.
|
RepeatCharacterRegexRule(int sl)
Creates a new repeat character regex rule.
|
RepeatCharacterRegexRule(int sl,
boolean reportAll)
Creates a new repeat character regex rule.
|
Modifier and Type | Method and Description |
---|---|
int |
getSequenceLength()
Returns the sequence length for this rule.
|
createRuleResultDetailParameters, getPattern, toString, validate
public static final int DEFAULT_SEQUENCE_LENGTH
public static final int MINIMUM_SEQUENCE_LENGTH
protected int sequenceLength
public RepeatCharacterRegexRule()
public RepeatCharacterRegexRule(int sl)
sl
- sequence lengthpublic RepeatCharacterRegexRule(int sl, boolean reportAll)
sl
- sequence lengthreportAll
- whether to report all matches or just the firstCopyright © 2003-2024 Virginia Tech. All Rights Reserved.