thredds.inventory.filter
Class WildcardMatchOnName

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

public class WildcardMatchOnName
extends WildcardMatchOnPath

A wildcard expression that matches on the MFile name.

Since:
Jun 26, 2009
Author:
caron

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

Constructor Detail

WildcardMatchOnName

public WildcardMatchOnName(String wildcardString)

WildcardMatchOnName

public WildcardMatchOnName(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
Overrides:
accept in class WildcardMatchOnPath
Parameters:
file - the MFile
Returns:
true if and only if the name should be included in the file collection; false otherwise.


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