public class DirectoryHierarchy
extends java.lang.Object
| Constructor and Description | 
|---|
| DirectoryHierarchy(java.lang.String name,
        DirectoryHierarchy parent)Create a hierarchy given NAME and parent hierarchy. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFiles(java.util.Collection<java.lang.String> files)Add a collection of files into this hierarchy. | 
| void | addFiles(java.lang.String regex)Add into this group all the files in the folder
    whose NAME matches a regex.
 | 
| static DirectoryHierarchy | createTop(java.lang.String name)Create a top hierarchy. | 
| java.util.List<FileDescriptor> | gatherFiles()Gether all the files under this group recursively. | 
| DirectoryHierarchy | getSubHierarchy(java.lang.String name) | 
public DirectoryHierarchy(@Nonnull
                          java.lang.String name,
                          @Nullable
                          DirectoryHierarchy parent)
    name - The NAME of the hierarchy.parent - The NAME of parent hierarchy.public DirectoryHierarchy getSubHierarchy(@Nonnull java.lang.String name)
public void addFiles(@Nonnull
                     java.util.Collection<java.lang.String> files)
                files - A collection of names of the files.public void addFiles(@Nonnull
                     java.lang.String regex)
regex - The regex the added files' NAME should match.public static DirectoryHierarchy createTop(@Nonnull java.lang.String name)
name - The NAME of the top hierarchy.public java.util.List<FileDescriptor> gatherFiles()