@Immutable
public class CollectionConfig
extends java.lang.Object
Constructor and Description |
---|
CollectionConfig(java.lang.String name,
java.lang.String dirName,
boolean wantSubdirs,
java.util.List<MFileFilter> filters,
java.lang.Object auxInfo)
Constructor
|
CollectionConfig(java.lang.String name,
java.lang.String dirName,
boolean wantSubdirs,
MFileFilter ff,
java.lang.Object auxInfo)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MFile file) |
java.lang.Object |
getAuxInfo() |
java.lang.String |
getDirectoryName() |
MFileFilter |
getFileFilter() |
java.lang.String |
getName() |
CollectionConfig |
subdir(MFile child) |
java.lang.String |
toString() |
boolean |
wantSubdirs() |
public CollectionConfig(java.lang.String name, java.lang.String dirName, boolean wantSubdirs, java.util.List<MFileFilter> filters, java.lang.Object auxInfo)
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 MFilepublic CollectionConfig(java.lang.String name, java.lang.String dirName, boolean wantSubdirs, MFileFilter ff, java.lang.Object auxInfo)
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 MFilepublic CollectionConfig subdir(MFile child)
public java.lang.String getName()
public java.lang.String getDirectoryName()
public boolean wantSubdirs()
public MFileFilter getFileFilter()
public boolean accept(MFile file)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getAuxInfo()