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,


Nested Class Summary
 
Nested classes inherited from class sam.entry.NameFilter
NameFilter.Comparator, NameFilter.Wildcards
 
Field Summary
 
Fields inherited from class sam.entry.NameFilter
EQUALITY, WILDCARDS
 
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 sam.entry.NameFilter
specifies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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