Package de.mhus.lib.core.config
Class NodeConfig
-
- All Implemented Interfaces:
IFlatConfig,ILog,IProperties,IReadProperties,MNlsProvider,Nls,Serializable,Iterable<Map.Entry<String,Object>>,Map<String,Object>
public class NodeConfig extends PropertiesConfig
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.mhus.lib.core.config.PropertiesConfig
changed, name, properties
-
Fields inherited from class de.mhus.lib.core.directory.WritableResourceNode
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UP
-
Fields inherited from class de.mhus.lib.core.directory.ResourceNode
compiledCache, compiler
-
-
Constructor Summary
Constructors Constructor Description NodeConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigcreateConfig(String key)Create a new config and append it at the end of the list.String[]getConfigKeys()IConfiggetNode(String key)Returns a inner configuration by the name.List<IConfig>getNodes(String key)Return all inner configurations by the given name.voidsetConfig(String name, IConfig config)-
Methods inherited from class de.mhus.lib.core.config.PropertiesConfig
clear, configRemoved, getInputStream, getName, getNodeKeys, getNodes, getParent, getProperty, getPropertyKeys, getUrl, isConfigChanged, isEditable, isProperty, moveConfig, readConfig, removeConfig, removeProperty, setProperty, writeConfig
-
Methods inherited from class de.mhus.lib.core.config.IConfig
getRenditionProperties, getRenditions, hasContent, isValid
-
Methods inherited from class de.mhus.lib.core.directory.WritableResourceNode
setString
-
Methods inherited from class de.mhus.lib.core.directory.ResourceNode
containsValue, dump, entrySet, getExtracted, getExtracted, getExtracted, getInputStream, getNodeByPath, getRenditionProperties, keys, size, values
-
Methods inherited from class de.mhus.lib.core.AbstractProperties
containsKey, get, getBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getFormatted, getInt, getLong, getNumber, getString, getString, isEmpty, iterator, keySet, put, putAll, putReadProperties, remove, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getNode
public IConfig getNode(String key)
Description copied from class:ResourceNodeReturns 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:
getNodein classPropertiesConfig- Returns:
- the node with the name
-
getNodes
public List<IConfig> getNodes(String key)
Description copied from class:ResourceNodeReturn all inner configurations by the given name. The order is like in the configuration file. This never returns null.- Overrides:
getNodesin classPropertiesConfig- 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:WritableResourceNodeCreate 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:
createConfigin classPropertiesConfig- Returns:
- new config node
- Throws:
de.mhus.lib.errors.MException- if editing is not possible
-
-