public class XMLConfigurationHolder extends Object implements ConfigurationHolder
LOG| Constructor and Description |
|---|
XMLConfigurationHolder(Node xmlConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationHolder |
getConfiguration(ConfigurationPath path)
Get the configuration for the given path.
|
String |
getValue(String name)
Get the value from the current configuration node accessed by the given name.
|
Map<String,String> |
getValues()
Get all the values from current configuration node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, hasConfiguration, hasConfigurationpublic XMLConfigurationHolder(Node xmlConfiguration)
public ConfigurationHolder getConfiguration(ConfigurationPath path) throws ConfigurationException
ConfigurationHolderGet the configuration for the given path. Take into account that sometimes a given path could lead to a list of configurations of the same type grouped inside a parent configuration. By using this method, in case of the path lead to a list of configurations of the same type it will return the first configuration of the list. In the case the path lead to a single configuration, such configuration would be retrieved.
getConfiguration in interface ConfigurationHolderpath - The given path.null if not found.ConfigurationException - In case of configuration problempublic String getValue(String name) throws ConfigurationException
ConfigurationHoldergetValue in interface ConfigurationHoldername - The given name to access the configuration valueConfigurationException - in case of configuration problempublic Map<String,String> getValues() throws ConfigurationException
ConfigurationHoldergetValues in interface ConfigurationHolderConfigurationException - in case of configuration problemCopyright © 2017 SDL Group. All rights reserved.