Class NodeConfig

    • Constructor Detail

      • NodeConfig

        public NodeConfig()
    • Method Detail

      • setConfig

        public void setConfig​(String name,
                              IConfig config)
      • getNode

        public IConfig getNode​(String key)
        Description copied from class: ResourceNode
        Returns a inner configuration by the name. Inner configurations are not unique. If more then one configurations exists it will return the first one. if no configuration exists it returns null.
        Overrides:
        getNode in class PropertiesConfig
        Returns:
        the node with the name
      • getNodes

        public List<IConfig> getNodes​(String key)
        Description copied from class: ResourceNode
        Return all inner configurations by the given name. The order is like in the configuration file. This never returns null.
        Overrides:
        getNodes in class PropertiesConfig
        Returns:
        all nodes with the name
      • getConfigKeys

        public String[] getConfigKeys()
      • createConfig

        public IConfig createConfig​(String key)
                             throws de.mhus.lib.errors.MException
        Description copied from class: WritableResourceNode
        Create a new config and append it at the end of the list. After creation the element is already at the end of the list.
        Overrides:
        createConfig in class PropertiesConfig
        Returns:
        new config node
        Throws:
        de.mhus.lib.errors.MException - if editing is not possible