Class XmlConfigImpl

All Implemented Interfaces:
Config
Direct Known Subclasses:
XmlMutableConfigImpl

@API(status=INTERNAL, since="1.0") public class XmlConfigImpl extends AbstractWatchableConfig
Implementation of Config based on a XML document.
Since:
0.1
Version:
1.0, 2025-07
Author:
(w) Iker Hernaez
See Also:
  • Constructor Details

    • XmlConfigImpl

      public XmlConfigImpl(ConfigOptions options, XmlConfigOptions xmlOptions)
      Creates a new instance.
      Parameters:
      options - The configuration builder options.
      xmlOptions - The XML based configuration builder options.
    • XmlConfigImpl

      protected XmlConfigImpl(ConfigOptions options, MutableConfigOptions mutableOptions, XmlConfigOptions xmlOptions)
      Creates a new instance.
      Parameters:
      options - The configuration builder options.
      mutableOptions - The mutable configuration builder options.
      xmlOptions - The XML based configuration builder options.
  • Method Details

    • getDocument

      protected Document getDocument()
      Returns the XML document with the configuration options.
      Returns:
      The XML document with the configuration options.
    • getPropertySeparator

      protected String getPropertySeparator()
      Returns the configuration nested properties separator.
      Returns:
      The configuration nested properties separator.
    • getAttributePrefix

      protected String getAttributePrefix()
      Returns the XML attributes references prefix.
      Returns:
      The XML attributes references prefix.
    • isEmptyInt

      protected boolean isEmptyInt()
      Returns true if this configuration instance contains no property.

      Parent configuration

      Specified by:
      isEmptyInt in class AbstractConfig
      Returns:
      Returns true if the configuration contains no property.
    • containsInt

      protected boolean containsInt(String key)
      Returns true if the property with the key passed as argument has been configured in this configuration instance.
      Specified by:
      containsInt in class AbstractConfig
      Parameters:
      key - The configuration property.
      Returns:
      Returns true if the property has been configured.
    • getKeysInt

      protected Stream<String> getKeysInt()
      Returns the configuration property keys contained in this configuration instance .
      Specified by:
      getKeysInt in class AbstractConfig
      Returns:
      The configuration property keys.
    • getInt

      protected @Nullable String getInt(String key)
      Returns the value of the configuration property as String.
      Specified by:
      getInt in class AbstractConfig
      Parameters:
      key - The configuration property.
      Returns:
      The configuration parameter value.