|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cafesoft.core.regex.StandardRegexFilter
public class StandardRegexFilter
StandardRegexFilter is the standard Cams implementation of
the RegexFilter interface. It implements a pattern matching
pattern matching filter that uses inclusion and exclusion patterns.
| Constructor Summary | |
|---|---|
StandardRegexFilter()
Create a new StandardRegexFilter |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardRegexFilter()
| Method Detail |
|---|
public void addInclusionRegex(Pattern pattern)
addInclusionRegex in interface RegexFilterpattern - the regular expression to be added as an
inclusion pattern.public void addExclusionRegex(Pattern pattern)
addExclusionRegex in interface RegexFilterpattern - the regular expression to be added as an
exclusion pattern.public boolean isIncluded(String value)
isIncluded in interface RegexFiltervalue - the String to be checked for a match.
public boolean isExcluded(String value)
isExcluded in interface RegexFiltervalue - the String to be checked for a match.
public boolean isIncludedNotExcluded(String value)
isIncludedNotExcluded in interface RegexFiltervalue - the String to be checked for a match.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||