Class XmlConfiguration

  • All Implemented Interfaces:
    io.confound.config.Configuration

    public class XmlConfiguration
    extends io.confound.config.AbstractStringConfiguration
    Implementation of a configuration based on a XML file format.
    Author:
    Magno N A Cruz
    • Field Summary

      • Fields inherited from interface io.confound.config.Configuration

        KEY_SEGMENT_SEPARATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlConfiguration​(org.w3c.dom.Document xmlDocument)
      Constructor of the configuration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Optional<java.lang.String> findConfigurationValueImpl​(java.lang.String key)  
      • Methods inherited from class io.confound.config.AbstractStringConfiguration

        dereferenceString, findBoolean, findConfigurationValue, findDouble, findInt, findLong, findObject, findPath, findString, findUri
      • Methods inherited from class io.confound.config.BaseConfiguration

        convertValue, hasConfigurationValue, hasConfigurationValueImpl, normalizeKey
      • Methods inherited from class io.confound.config.AbstractConfiguration

        or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.confound.config.Configuration

        createMissingConfigurationKeyException, findObject, getBoolean, getDouble, getInt, getLong, getObject, getObject, getPath, getString, getUri, requireConfiguration, resolvePath, subConfiguration, superConfiguration, withFallback
    • 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.
    • Method Detail

      • findConfigurationValueImpl

        protected java.util.Optional<java.lang.String> findConfigurationValueImpl​(@Nonnull
                                                                                  java.lang.String key)
                                                                           throws io.confound.config.ConfigurationException
        Specified by:
        findConfigurationValueImpl in class io.confound.config.BaseConfiguration<java.lang.String>
        Throws:
        io.confound.config.ConfigurationException