public class ConfigurationTree extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private DefaultMutableTreeNode |
root
Root of tree structure containing configuration data.
|
private String |
rootDir
Directory on the file system associated with the tree root.
|
Constructor and Description |
---|
ConfigurationTree(String rootDir)
Creates a new configuration tree rooted at
the given directory in the file system.
|
Modifier and Type | Method and Description |
---|---|
private DefaultMutableTreeNode |
findNode(String id,
boolean create,
String configFile)
Gets the tree node associated with the given file.
|
Configuration |
get(String id)
Retrieves the Configuration object corresponding to the given file.
|
void |
parseConfigFile(String configFile) |
private static final org.slf4j.Logger LOGGER
private String rootDir
private DefaultMutableTreeNode root
public ConfigurationTree(String rootDir)
public Configuration get(String id) throws IOException
IOException
public void parseConfigFile(String configFile) throws IOException
IOException
private DefaultMutableTreeNode findNode(String id, boolean create, String configFile)
Copyright © 2015 Open Microscopy Environment