Package eu.simuline.m2latex.core
Class DirNode
- java.lang.Object
-
- eu.simuline.m2latex.core.DirNode
-
public class DirNode extends Object
Represents the contents of a directory. Created: Tue Dec 6 03:05:24 2016- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,DirNode>name2nodeThe set of subdirectories in the directory described by this node: The keys are the names and the according values are the nodes describing the subdirectories.private Set<String>regularFileNamesThe set of names of regular files, i.e. files except directories in the directory described by this node.
-
Constructor Summary
Constructors Constructor Description DirNode(File dir, TexFileUtils fileUtils)Creates a newDirNodeinstance.
-
Method Summary
Modifier and Type Method Description (package private) Set<String>getRegularFileNames()(package private) Map<String,DirNode>getSubdirs()(package private) booleanisValid()Whether the directory described by this node is readable.
-
-
-
Field Detail
-
regularFileNames
private final Set<String> regularFileNames
The set of names of regular files, i.e. files except directories in the directory described by this node. If the directory described by this node is not readable, this field isnull.- See Also:
isValid()
-
name2node
private final Map<String,DirNode> name2node
The set of subdirectories in the directory described by this node: The keys are the names and the according values are the nodes describing the subdirectories. If the directory described by this node is not readable, this field isnull.- See Also:
isValid()
-
-
Constructor Detail
-
DirNode
public DirNode(File dir, TexFileUtils fileUtils)
Creates a newDirNodeinstance.Logging: WFU01: Cannot read directory
- Parameters:
dir- The directory this node represents including subdirectories recursively. This is the latex source directory or a subdirectory recursively.fileUtils-
-
-