thredds.filesystem
Class WildcardMatchOnPath

java.lang.Object
  extended by thredds.filesystem.WildcardMatchOnPath
All Implemented Interfaces:
MFileFilter
Direct Known Subclasses:
WildcardMatchOnName

public class WildcardMatchOnPath
extends java.lang.Object
implements MFileFilter

Describe

Since:
Jun 26, 2009
Author:
caron

Field Summary
protected  java.util.regex.Pattern pattern
           
protected  java.lang.String wildcardString
           
 
Constructor Summary
WildcardMatchOnPath(java.lang.String wildcardString)
           
 
Method Summary
 boolean accept(MFile file)
          Tests if a specified MFile should be included in a file list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wildcardString

protected java.lang.String wildcardString

pattern

protected java.util.regex.Pattern pattern
Constructor Detail

WildcardMatchOnPath

public WildcardMatchOnPath(java.lang.String wildcardString)
Method Detail

accept

public boolean accept(MFile file)
Description copied from interface: MFileFilter
Tests if a specified MFile should be included in a file list.

Specified by:
accept in interface MFileFilter
Parameters:
file - the MFile
Returns:
true if and only if the name should be included in the file list; false otherwise.