public class HashConfig extends IConfig
HashConfig class.
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UPcompiledCache, compiler| Constructor and Description |
|---|
HashConfig()
Constructor for HashConfig.
|
HashConfig(Map<String,String> fill)
Constructor for HashConfig.
|
HashConfig(String name,
WritableResourceNode parent)
Constructor for HashConfig.
|
| Modifier and Type | Method and Description |
|---|---|
WritableResourceNode |
createConfig(String key)
Create a new config and append it at the end of the list.
|
InputStream |
getInputStream(String key)
Return the input stream of a content resource.
|
String |
getName()
Return a name of this config element could also be null.
|
ResourceNode |
getNode(String key)
Returns a inner configuration by the name.
|
String[] |
getNodeKeys()
Return all possible, existing inner configuration names.
|
ResourceNode[] |
getNodes()
Return all inner configurations ignoring the name.
|
ResourceNode[] |
getNodes(String key)
Return all inner configurations by the given name.
|
ResourceNode |
getParent()
return the parent config if possible.
|
String |
getProperty(String name)
Overwrite this function to provide values in string format.
|
String[] |
getPropertyKeys()
Return all existing keys.
|
URL |
getUrl()
getUrl.
|
boolean |
isEditable()
Overwrite this function and return true if the property set can be edited.
|
boolean |
isProperty(String name)
Return true if the property exists.
|
Set<String> |
keys()
keys.
|
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.
|
void |
removeProperty(String key)
Remove the property field in the list of properties.
|
ResourceNode |
setConfig(String key,
HashConfig child)
setConfig.
|
void |
setProperty(String key,
Object value)
Overwrite this function to allow changes in properties.
|
void |
unlink()
unlink.
|
hasContent, isValidesetStringgetExtracted, getExtracted, getExtracted, getInputStream, getNodeByPathgetBoolean, 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 HashConfig()
Constructor for HashConfig.
public HashConfig(String name, WritableResourceNode parent)
Constructor for HashConfig.
name - a String object.parent - a WritableResourceNode object.public String[] getPropertyKeys()
getPropertyKeys in class ResourceNodeString objects.public ResourceNode getNode(String key)
getNode in class ResourceNodekey - a String object.ResourceNode object.public ResourceNode[] getNodes(String key)
getNodes in class ResourceNodekey - a String object.ResourceNode objects.public ResourceNode[] getNodes()
getNodes in class ResourceNodeResourceNode objects.public String[] getNodeKeys()
getNodeKeys in class ResourceNodeString objects.public String getName()
getName in class ResourceNodeString object.public WritableResourceNode createConfig(String key) throws MException
createConfig in class WritableResourceNodekey - a String object.WritableResourceNode object.MException - if editing is not possiblepublic void unlink()
throws MException
unlink.
MException - if any.public ResourceNode setConfig(String key, HashConfig child) throws MException
setConfig.
key - a String object.child - a HashConfig object.ResourceNode object.MException - if any.public int moveConfig(ResourceNode config, int newPos) throws MException
moveConfig in class WritableResourceNodeconfig - 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 WritableResourceNodeconfig - The config object which should be removed.MException - if editing is not possiblepublic String getProperty(String name)
getProperty in class IPropertiesname - a String object.public boolean isProperty(String name)
isProperty in class IPropertiesname - a String object.public void removeProperty(String key)
removeProperty in class IPropertieskey - a String object.public void setProperty(String key, Object value)
setProperty in class IPropertieskey - a String object.value - a Object object.public boolean isEditable()
isEditable in class IPropertiespublic ResourceNode getParent()
getParent in class ResourceNodeResourceNode object.public Set<String> keys()
keys.
keys in class ResourceNodeSet object.public InputStream getInputStream(String key)
getInputStream in class ResourceNodekey - Name of a rendition or null for the default contentInputStream object.public URL getUrl()
getUrl.
getUrl in class ResourceNodeURL object.Copyright © 2016. All Rights Reserved.