thredds.inventory.filter
Class WildcardMatchOnPath

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

public class WildcardMatchOnPath
extends Object
implements MFileFilter

A wildcard expression that matches on the MFile path.

Since:
Jun 26, 2009
Author:
caron

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

Field Detail

wildcardString

protected String wildcardString

pattern

protected Pattern pattern
Constructor Detail

WildcardMatchOnPath

public WildcardMatchOnPath(String wildcardString)

WildcardMatchOnPath

public WildcardMatchOnPath(Pattern pattern)
Method Detail

accept

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

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.