Interface BasicConfigurationNode

All Superinterfaces:
ConfigurationNode, ScopedConfigurationNode<BasicConfigurationNode>

A standard configuration node, without any additional options.
Since:
4.0.0
  • Method Details

    • factory

      Create a new factory providing BasicConfigurationNode instances.

      The returned factory will create nodes with default options.

      Returns:
      a new factory
      Since:
      4.0.0
    • root

      Create a new empty root node.

      This node will use the default options

      A root node is always attached, and has no parent and an empty path.

      Returns:
      a new empty node
      Since:
      4.0.0
    • root

      static <E extends Exception> BasicConfigurationNode root(CheckedConsumer<? super BasicConfigurationNode,E> maker) throws E
      Create a new root node with the provided initializer which may throw.

      This node will use the default options

      A root node is always attached, and has no parent and an empty path.

      Type Parameters:
      E - error type thrown
      Parameters:
      maker - action to be applied to the newly created node
      Returns:
      a new initialized node
      Throws:
      E - when thrown from inner action
      Since:
      4.0.0
    • root

      Create a new empty root node with the provided options.

      A root node is always attached, and has no parent and an empty path.

      Parameters:
      options - options to apply.
      Returns:
      a new empty node
      Since:
      4.0.0
    • root

      static <E extends Exception> BasicConfigurationNode root(ConfigurationOptions options, CheckedConsumer<? super BasicConfigurationNode,E> maker) throws E
      Create a new root node with the provided options and initializer.

      A root node is always attached, and has no parent and an empty path.

      Type Parameters:
      E - thrown type
      Parameters:
      options - options to apply.
      maker - action to be applied to the newly created node
      Returns:
      a new initialized node
      Throws:
      E - when thrown from inner action
      Since:
      4.0.0