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 boolean
accept(MFile file)
Object
getAuxInfo()
String
getDirectoryName()
MFileFilter
getFileFilter()
String
getName()
CollectionConfig
subdir(MFile child)
String
toString()
boolean
wantSubdirs()
-
-
-
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()
-
-