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) |
protected String |
getExtracted(String key,
String def,
int level) |
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.
|
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() |
Set<String> |
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, setStringbase, base, createBase, forkBase, installBase, isBase, leaveBase, toStringprotected de.mhus.lib.core.directory.ResourceNode.ConfigStringCompiler compiler
protected HashMap<String,CompiledString> compiledCache
public abstract String[] getPropertyKeys()
public abstract ResourceNode getNode(String key)
key - public abstract ResourceNode[] getNodes()
key - public abstract ResourceNode[] getNodes(String key)
key - public abstract String[] getNodeKeys()
public abstract String getName() throws de.mhus.lib.errors.MException
de.mhus.lib.errors.MExceptionpublic InputStream getInputStream()
public abstract InputStream getInputStream(String key)
key - Name of a rendition or null for the default contentpublic String getExtracted(String key) throws de.mhus.lib.errors.MException
key - de.mhus.lib.errors.MExceptionStringCompilerpublic String getExtracted(String key, String def) throws de.mhus.lib.errors.MException
de.mhus.lib.errors.MExceptionpublic abstract ResourceNode getParent()
public Set<String> keys()
keys in class IPropertiesprotected String getExtracted(String key, String def, int level) throws de.mhus.lib.errors.MException
de.mhus.lib.errors.MExceptionpublic abstract URL getUrl()
Copyright © 2014. All rights reserved.