|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.common.util.StringFilter
public class StringFilter
This class provides logic for filtering strings based on regular expressions.
| Field Summary | |
|---|---|
protected List<Pattern> |
excludePatterns
|
protected List<Pattern> |
includePatterns
|
| Constructor Summary | |
|---|---|
protected |
StringFilter(List<String> includes,
List<String> excludes)
|
| Method Summary | |
|---|---|
protected void |
compilePatterns()
Compile the string patterns into Pattern objects |
boolean |
exclude(String s)
Return true if the string should be excluded. |
static StringFilter |
getInstance(List<String> includes,
List<String> excludes)
|
protected List<Pattern> |
getPatterns(List<String> patterns)
Convert a List<String> into List<Pattern> |
boolean |
include(String s)
Return true if the string should be included. |
protected boolean |
isMatch(String s,
List<Pattern> patterns)
Return true if the string matches any of the patterns |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<Pattern> includePatterns
protected List<Pattern> excludePatterns
| Constructor Detail |
|---|
protected StringFilter(List<String> includes,
List<String> excludes)
| Method Detail |
|---|
public static final StringFilter getInstance(List<String> includes,
List<String> excludes)
public boolean include(String s)
public boolean exclude(String s)
protected boolean isMatch(String s,
List<Pattern> patterns)
protected void compilePatterns()
protected List<Pattern> getPatterns(List<String> patterns)
List<String> into List<Pattern>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||