public class DirConfig extends PropertiesConfig
changed, name, propertiesMOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UPcompiledCache, compiler| Modifier and Type | Method and Description |
|---|---|
WritableResourceNode |
createConfig(String key)
Create a new config and append it at the end of the list.
|
File |
getDirectory() |
String |
getName()
Return a name of this config element could also be null.
|
WritableResourceNode |
getNode(String key)
Returns a inner configuration by the name.
|
String[] |
getNodeKeys()
Return all possible, existing inner configuration names.
|
WritableResourceNode[] |
getNodes()
Return all inner configurations ignoring the name.
|
WritableResourceNode[] |
getNodes(String key)
Return all inner configurations by the given name.
|
WritableResourceNode |
getParent()
return the parent config if possible.
|
String[] |
getPropertyKeys()
Return all existing keys.
|
boolean |
isEditable()
Overwrite this function and return true if the property set can be edited.
|
int |
moveConfig(ResourceNode config,
int newPos)
Move the position of the configuration in the hole set of configurations.
|
void |
removeConfig(ResourceNode config)
Remove a config element from the set.
|
configRemoved, getInputStream, getProperty, getUrl, isConfigChanged, isProperty, readConfig, removeProperty, setProperty, writeConfigsetStringgetExtracted, getExtracted, getExtracted, getInputStream, keysgetBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getProperty, getString, getString, iterator, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumberbase, base, createBase, forkBase, installBase, isBase, leaveBase, toStringpublic DirConfig(File dir)
public String[] getPropertyKeys()
ResourceNodegetPropertyKeys in class PropertiesConfigpublic WritableResourceNode getNode(String key)
ResourceNodegetNode in class PropertiesConfigpublic WritableResourceNode[] getNodes(String key)
ResourceNodegetNodes in class PropertiesConfigpublic WritableResourceNode[] getNodes()
ResourceNodegetNodes in class PropertiesConfigpublic String[] getNodeKeys()
ResourceNodegetNodeKeys in class PropertiesConfigpublic String getName()
ResourceNodegetName in class PropertiesConfigpublic WritableResourceNode createConfig(String key) throws de.mhus.lib.errors.MException
WritableResourceNodecreateConfig in class PropertiesConfigde.mhus.lib.errors.MException - if editing is not possiblepublic int moveConfig(ResourceNode config, int newPos) throws de.mhus.lib.errors.MException
WritableResourceNodemoveConfig in class PropertiesConfigconfig - The config object which you want to movenewPos - Absolute new position or one of the move operators MOVE_UP, MOVE_DOWN, MOVE_FIRST, MOVE_LASTde.mhus.lib.errors.MException - if editing is not possible or the position is out of rangepublic void removeConfig(ResourceNode config) throws de.mhus.lib.errors.MException
WritableResourceNoderemoveConfig in class PropertiesConfigconfig - The config object which should be removed.de.mhus.lib.errors.MException - if editing is not possiblepublic WritableResourceNode getParent()
ResourceNodegetParent in class PropertiesConfigpublic boolean isEditable()
IPropertiesisEditable in class PropertiesConfigpublic File getDirectory()
Copyright © 2014. All rights reserved.