sam.entry
Class NameFilter.Wildcards
java.lang.Object
|
+--sam.entry.NameFilter
|
+--sam.entry.NameFilter.Wildcards
- Enclosing class:
- NameFilter
- protected static class NameFilter.Wildcards
- extends NameFilter
Standard wild-characters regular expansion.
Assuming ?
and *
be the wilcards,
WILDCARDS.specifies("a*c", "abc") = true
,
WILDCARDS.specifies("*.txt", "foo.bar.txt") = true
,
WILDCARDS.specifies("?", "a") = true
,
WILDCARDS.specifies("?*", "a?c") = true
,
Constructor Summary |
NameFilter.Wildcards(char anyChar,
char oneChar,
boolean caseMatters)
Builds a new wildcards-based name filter |
Method Summary |
protected boolean |
specifies(java.lang.String specification,
java.lang.String entry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameFilter.Wildcards
public NameFilter.Wildcards(char anyChar,
char oneChar,
boolean caseMatters)
- Builds a new wildcards-based name filter
- Parameters:
anyChar
- usually *
oneChar
- usually ?
caseMatters
- wether case matters (UNIX-like) or not (Win32-like)
specifies
protected boolean specifies(java.lang.String specification,
java.lang.String entry)
- Specified by:
specifies
in class NameFilter
- Returns:
true
if and only if specification
expands to entry