|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RegexFilter
RegexFilter defines the interface for a regular expression
pattern matching filter that uses inclusion and exclusion patterns.
| Method Summary | |
|---|---|
void |
addExclusionRegex(Pattern pattern)
Add a regular expression to the exclusion filter. |
void |
addInclusionRegex(Pattern pattern)
Add a regular expression to the inclusion filter. |
boolean |
isExcluded(String value)
Check a String for a match with at least one exclusion pattern. |
boolean |
isIncluded(String value)
Check a String for a match with at least one inclusion pattern. |
boolean |
isIncludedNotExcluded(String value)
Check a String for a match with at least one inclusion pattern, but no matches with an exclusion pattern. |
| Method Detail |
|---|
void addInclusionRegex(Pattern pattern)
pattern - the regular expression to be added as an
inclusion pattern.void addExclusionRegex(Pattern pattern)
pattern - the regular expression to be added as an
exclusion pattern.boolean isIncluded(String value)
value - the String to be checked for a match.
boolean isExcluded(String value)
value - the String to be checked for a match.
boolean isIncludedNotExcluded(String value)
value - the String to be checked for a match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||