Package thredds.inventory
Class CollectionConfig
- java.lang.Object
-
- thredds.inventory.CollectionConfig
-
@Immutable public class CollectionConfig extends Object
Configuration object for a collection of managed files.
-
-
Constructor Summary
Constructors Constructor Description CollectionConfig(String name, String dirName, boolean wantSubdirs, MFileFilter ff, Object auxInfo)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(MFile file)ObjectgetAuxInfo()StringgetDirectoryName()MFileFiltergetFileFilter()StringgetName()CollectionConfigsubdir(MFile child)StringtoString()booleanwantSubdirs()
-
-
-
Constructor Detail
-
CollectionConfig
public CollectionConfig(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
-
-
Method Detail
-
subdir
public CollectionConfig 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)
-
getAuxInfo
public Object getAuxInfo()
-
-