public class DefaultAcceptedPatternsChecker extends Object implements AcceptedPatternsChecker
AcceptedPatternsChecker.IsAccepted
Modifier and Type | Field and Description |
---|---|
static String[] |
ACCEPTED_PATTERNS |
Constructor and Description |
---|
DefaultAcceptedPatternsChecker() |
Modifier and Type | Method and Description |
---|---|
Set<Pattern> |
getAcceptedPatterns()
Allow access list of all defined excluded patterns
|
AcceptedPatternsChecker.IsAccepted |
isAccepted(String value)
Checks if value matches any of patterns on exclude list
|
void |
setAcceptedPatterns(Set<String> patterns)
Sets excluded patterns during runtime
|
void |
setAcceptedPatterns(String commaDelimitedPatterns)
Sets excluded patterns during runtime
|
void |
setAcceptedPatterns(String[] additionalPatterns)
Set excluded patterns during runtime
|
protected void |
setAdditionalAcceptedPatterns(String acceptablePatterns) |
protected void |
setOverrideAcceptedPatterns(String acceptablePatterns) |
public static final String[] ACCEPTED_PATTERNS
protected void setOverrideAcceptedPatterns(String acceptablePatterns)
protected void setAdditionalAcceptedPatterns(String acceptablePatterns)
public void setAcceptedPatterns(String commaDelimitedPatterns)
AcceptedPatternsChecker
setAcceptedPatterns
in interface AcceptedPatternsChecker
commaDelimitedPatterns
- comma delimited string with patternspublic void setAcceptedPatterns(String[] additionalPatterns)
AcceptedPatternsChecker
setAcceptedPatterns
in interface AcceptedPatternsChecker
additionalPatterns
- array of additional excluded patternspublic void setAcceptedPatterns(Set<String> patterns)
AcceptedPatternsChecker
setAcceptedPatterns
in interface AcceptedPatternsChecker
patterns
- set of additional patternspublic AcceptedPatternsChecker.IsAccepted isAccepted(String value)
AcceptedPatternsChecker
isAccepted
in interface AcceptedPatternsChecker
value
- to checkpublic Set<Pattern> getAcceptedPatterns()
AcceptedPatternsChecker
getAcceptedPatterns
in interface AcceptedPatternsChecker
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.