public class DirConfig extends PropertiesConfig
DirConfig class.
changed, name, propertiesMOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UPcompiledCache, compiler| Constructor and Description |
|---|
DirConfig(File dir)
Constructor for DirConfig.
|
| 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()
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, writeConfighasContent, isValidesetStringgetExtracted, getExtracted, getExtracted, getInputStream, getNodeByPath, keysgetBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getProperty, getString, getString, iterator, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, toMapbase, base, createBase, forkBase, installBase, isBase, leaveBase, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic String[] getPropertyKeys()
getPropertyKeys in class PropertiesConfigString objects.public WritableResourceNode getNode(String key)
getNode in class PropertiesConfigkey - a String object.ResourceNode object.public WritableResourceNode[] getNodes(String key)
getNodes in class PropertiesConfigkey - a String object.ResourceNode objects.public WritableResourceNode[] getNodes()
getNodes in class PropertiesConfigResourceNode objects.public String[] getNodeKeys()
getNodeKeys in class PropertiesConfigString objects.public String getName()
getName in class PropertiesConfigString object.public WritableResourceNode createConfig(String key) throws MException
createConfig in class PropertiesConfigkey - a String object.WritableResourceNode object.MException - if editing is not possiblepublic int moveConfig(ResourceNode config, int newPos) throws MException
moveConfig 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_LASTMException - if editing is not possible or the position is out of rangepublic void removeConfig(ResourceNode config) throws MException
removeConfig in class PropertiesConfigconfig - The config object which should be removed.MException - if editing is not possiblepublic WritableResourceNode getParent()
getParent in class PropertiesConfigResourceNode object.public boolean isEditable()
isEditable in class PropertiesConfigCopyright © 2016. All Rights Reserved.