Class XmlConfiguration

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

    public class XmlConfiguration
    extends io.confound.config.AbstractStringConfiguration
    Implementation 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
      • Methods inherited from class io.confound.config.AbstractConfiguration

        getParentConfiguration, 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.Parameters

        getBoolean, getDouble, getInt, getLong, getParameter, getPath, getString, getUri, requireParameter, resolvePath
    • 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:
        findParameterImpl in class io.confound.config.BaseConfiguration<java.lang.String>
        Throws:
        io.confound.config.ConfigurationException