thredds.inventory
Class MCollection
java.lang.Object
thredds.inventory.MCollection
@Immutable
public class MCollection
- extends Object
Configuration object for a collection of managed files.
- Author:
- caron
MCollection
public MCollection(String name,
String dirName,
boolean wantSubdirs,
List<MFileFilter> filters,
Object auxInfo)
- Constructor
- Parameters:
name
- name of collectiondirName
- top directory namewantSubdirs
- if want subdirectoriesfilters
- optional list of MFileFilter (may be null) - applies only to non-directoriesauxInfo
- optional info added to each MFile
MCollection
public MCollection(String name,
String dirName,
boolean wantSubdirs,
MFileFilter ff,
Object auxInfo)
- Constructor
- Parameters:
name
- name of collectiondirName
- top directory namewantSubdirs
- if want subdirectoriesff
- optional FilenameFilter (may be null) - applies only to non-directoriesauxInfo
- optional info added to each MFile
subdir
public MCollection subdir(MFile child)
getName
public String getName()
getDirectoryName
public String getDirectoryName()
wantSubdirs
public boolean wantSubdirs()
getFileFilter
public MFileFilter getFileFilter()
accept
public boolean accept(MFile file)
toString
public String toString()
- Overrides:
toString
in class Object
getAuxInfo
public Object getAuxInfo()
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.