thredds.inventory.filter
Class Composite

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

public class Composite
extends Object
implements MFileFilter

Composite of MFileFilter, all must be true.

Since:
Jul 8, 2009
Author:
caron

Constructor Summary
Composite()
           
Composite(List<MFileFilter> filters)
           
 
Method Summary
 boolean accept(MFile mfile)
          Tests if a specified MFile should be included in a file collection.
 void addFilter(MFileFilter filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composite

public Composite()

Composite

public Composite(List<MFileFilter> filters)
Method Detail

addFilter

public void addFilter(MFileFilter filter)

accept

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

Specified by:
accept in interface MFileFilter
Parameters:
mfile - 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.