Class AbstractYAMLBasedConfiguration

    • Constructor Detail

      • AbstractYAMLBasedConfiguration

        protected AbstractYAMLBasedConfiguration()
        Creates a new instance of AbstractYAMLBasedConfiguration.
      • AbstractYAMLBasedConfiguration

        protected AbstractYAMLBasedConfiguration​(HierarchicalConfiguration<ImmutableNode> c)
        Creates a new instance of AbstractYAMLBasedConfiguration as a copy of the specified configuration.
        Parameters:
        c - the configuration to be copied
    • Method Detail

      • load

        protected void load​(java.util.Map<java.lang.String,​java.lang.Object> map)
        Loads this configuration from the content of the specified map. The data in the map is transformed into a hierarchy of ImmutableNode objects.
        Parameters:
        map - the map to be processed
      • constructMap

        protected java.util.Map<java.lang.String,​java.lang.Object> constructMap​(ImmutableNode node)
        Constructs a YAML map, i.e. String -> Object from a given configuration node.
        Parameters:
        node - The configuration node to create a map from.
        Returns:
        A Map that contains the configuration node information.