Class XmlConfiguration
- java.lang.Object
-
- io.confound.config.AbstractConfiguration
-
- io.confound.config.BaseConfiguration<java.lang.String>
-
- io.confound.config.AbstractStringConfiguration
-
- io.confound.config.file.format.xml.XmlConfiguration
-
- All Implemented Interfaces:
io.confound.config.Configuration,io.confound.config.Parameters
public class XmlConfiguration extends io.confound.config.AbstractStringConfigurationImplementation of a configuration based on a XML file format.- Author:
- Magno N A Cruz
-
-
Constructor Summary
Constructors Constructor Description XmlConfiguration(org.w3c.dom.Document xmlDocument)Constructor of the configuration.XmlConfiguration(org.w3c.dom.Document xmlDocument, io.confound.config.Configuration parentConfiguration)Constructor of the configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Optional<java.lang.String>findParameterImpl(java.lang.String key)-
Methods inherited from class io.confound.config.AbstractStringConfiguration
dereferenceString, findParameter, getOptionalBoolean, getOptionalDouble, getOptionalInt, getOptionalLong, getOptionalPath, getOptionalString, getOptionalUri
-
Methods inherited from class io.confound.config.BaseConfiguration
getOptionalParameter, hasParameter, hasParameterImpl, normalizeKey
-
-
-
-
Constructor Detail
-
XmlConfiguration
public XmlConfiguration(@Nonnull org.w3c.dom.Document xmlDocument)Constructor of the configuration.- Parameters:
xmlDocument- The XML tree node to be used as the configuration.
-
XmlConfiguration
public XmlConfiguration(@Nonnull org.w3c.dom.Document xmlDocument, @Nullable io.confound.config.Configuration parentConfiguration)Constructor of the configuration.- Parameters:
xmlDocument- The XML tree node to be used as the configuration.parentConfiguration- The parent configuration.
-
-
Method Detail
-
findParameterImpl
protected java.util.Optional<java.lang.String> findParameterImpl(@Nonnull java.lang.String key) throws io.confound.config.ConfigurationException- Specified by:
findParameterImplin classio.confound.config.BaseConfiguration<java.lang.String>- Throws:
io.confound.config.ConfigurationException
-
-