public class ConfigUtil extends Object
Created by Jeff Gaynor
on 3/23/12 at 8:23 AM
Constructor and Description |
---|
ConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.configuration.tree.ConfigurationNode |
findConfiguration(String fileName,
String configName,
String topNodeTag)
Finds the configuration in an XML file, given the filename, name of the configuration
(or null if you want to use the only one there) and the top node tag
(E.g.
|
protected static org.apache.commons.configuration.tree.ConfigurationNode |
findNamedConfig(org.apache.commons.configuration.XMLConfiguration cfg,
String cfgName,
String topNodeTag)
This takes a configuration and looks in it for a given name for the tag.
|
public static org.apache.commons.configuration.tree.ConfigurationNode findConfiguration(String fileName, String configName, String topNodeTag)
fileName
- configName
- topNodeTag
- protected static org.apache.commons.configuration.tree.ConfigurationNode findNamedConfig(org.apache.commons.configuration.XMLConfiguration cfg, String cfgName, String topNodeTag)
findConfiguration(String, String, String)
.cfg
- cfgName
- topNodeTag
- Copyright © 2019. All Rights Reserved.