public class Filter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Filter.IncludeExclude |
Constructor and Description |
---|
Filter()
Creates new Filter
|
Modifier and Type | Method and Description |
---|---|
Filter.IncludeExclude[] |
getExcludes() |
String |
getExpectedFail(String name) |
Filter.IncludeExclude[] |
getIncludes() |
boolean |
isIncluded(String name) |
static boolean |
match(String pattern,
String str)
Matches a string against a pattern.
|
void |
setExcludes(Filter.IncludeExclude[] excludes) |
void |
setIncludes(Filter.IncludeExclude[] includes) |
String |
toString() |
public void setIncludes(Filter.IncludeExclude[] includes)
public void setExcludes(Filter.IncludeExclude[] excludes)
public Filter.IncludeExclude[] getIncludes()
public Filter.IncludeExclude[] getExcludes()
public boolean isIncluded(String name)
public static boolean match(String pattern, String str)
pattern
- the (non-null) pattern to match againststr
- the (non-null) string that must be matched against the
patterntrue
when the string matches against the pattern,
false
otherwise.