public abstract class ResourceNode extends IProperties
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,CompiledString> |
compiledCache |
protected de.mhus.lib.core.directory.ResourceNode.ConfigStringCompiler |
compiler |
| Constructor and Description |
|---|
ResourceNode() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExtracted(String key)
Returns a compiled and executed string.
|
String |
getExtracted(String key,
String def)
getExtracted.
|
protected String |
getExtracted(String key,
String def,
int level)
getExtracted.
|
InputStream |
getInputStream()
Return the default content input stream.
|
abstract InputStream |
getInputStream(String key)
Return the input stream of a content resource.
|
abstract String |
getName()
Return a name of this config element could also be null.
|
abstract ResourceNode |
getNode(String key)
Returns a inner configuration by the name.
|
ResourceNode |
getNodeByPath(String path)
getNodeByPath.
|
abstract String[] |
getNodeKeys()
Return all possible, existing inner configuration names.
|
abstract ResourceNode[] |
getNodes()
Return all inner configurations ignoring the name.
|
abstract ResourceNode[] |
getNodes(String key)
Return all inner configurations by the given name.
|
abstract ResourceNode |
getParent()
return the parent config if possible.
|
abstract String[] |
getPropertyKeys()
Return all existing keys.
|
abstract URL |
getUrl()
getUrl.
|
abstract boolean |
hasContent()
hasContent.
|
abstract boolean |
isValide()
isValide.
|
Set<String> |
keys()
keys.
|
getBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getProperty, getProperty, getString, getString, isEditable, isProperty, iterator, removeProperty, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, setProperty, setString, toMapbase, base, createBase, forkBase, installBase, isBase, leaveBase, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected de.mhus.lib.core.directory.ResourceNode.ConfigStringCompiler compiler
protected HashMap<String,CompiledString> compiledCache
public abstract String[] getPropertyKeys()
String objects.public abstract ResourceNode getNode(String key)
key - a String object.ResourceNode object.public abstract ResourceNode[] getNodes()
ResourceNode objects.public abstract ResourceNode[] getNodes(String key)
key - a String object.ResourceNode objects.public abstract String[] getNodeKeys()
String objects.public abstract String getName() throws MException
String object.MException - if any.public InputStream getInputStream()
InputStream object.public abstract InputStream getInputStream(String key)
key - Name of a rendition or null for the default contentInputStream object.public String getExtracted(String key) throws MException
key - a String object.String object.MException - if any.StringCompilerpublic String getExtracted(String key, String def) throws MException
getExtracted.
key - a String object.def - a String object.String object.MException - if any.public abstract ResourceNode getParent()
ResourceNode object.public Set<String> keys()
keys.
keys in class IPropertiesSet object.protected String getExtracted(String key, String def, int level) throws MException
getExtracted.
key - a String object.def - a String object.level - a int.String object.MException - if any.public abstract boolean isValide()
isValide.
public abstract boolean hasContent()
hasContent.
public ResourceNode getNodeByPath(String path)
getNodeByPath.
path - a String object.ResourceNode object.Copyright © 2016. All Rights Reserved.