MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UPcompiledCache, compiler| Constructor and Description |
|---|
DirectoryToConfigWrapper(WritableResourceNode node) |
| Modifier and Type | Method and Description |
|---|---|
WritableResourceNode |
createConfig(String key)
Create a new config and append it at the end of the list.
|
boolean |
equals(Object obj) |
boolean |
getBoolean(String name,
boolean def) |
Calendar |
getCalendar(String name) |
Date |
getDate(String name) |
double |
getDouble(String name,
double def) |
String |
getExtracted(String key)
Returns a compiled and executed string.
|
String |
getExtracted(String key,
String def) |
float |
getFloat(String name,
float def) |
InputStream |
getInputStream(String key)
Return the input stream of a content resource.
|
int |
getInt(String name,
int def) |
long |
getLong(String name,
long def) |
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.
|
Number |
getNumber(String name,
Number def) |
ResourceNode |
getParent()
return the parent config if possible.
|
Object |
getProperty(String name)
Overwrite this function to provide values in string format.
|
int |
getProperty(String name,
int def) |
String[] |
getPropertyKeys()
Return all existing keys.
|
String |
getString(String name,
String def) |
URL |
getUrl() |
int |
hashCode() |
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.
|
Iterator<Map.Entry<String,Object>> |
iterator() |
Set<String> |
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.
|
void |
setBoolean(String name,
boolean value) |
void |
setCalendar(String name,
Calendar value) |
void |
setDate(String name,
Date value) |
void |
setDouble(String name,
double value) |
void |
setFloat(String name,
float value) |
void |
setInt(String name,
int value) |
void |
setLong(String name,
long value) |
void |
setNumber(String name,
Number value) |
void |
setProperty(String key,
Object value)
Overwrite this function to allow changes in properties.
|
void |
setString(String name,
String value) |
String |
toString() |
getExtracted, getInputStreamgetBoolean, getStringbase, base, createBase, forkBase, installBase, isBase, leaveBasepublic DirectoryToConfigWrapper(WritableResourceNode node)
public Object getProperty(String name)
IPropertiesgetProperty in class IPropertiespublic WritableResourceNode createConfig(String key) throws de.mhus.lib.errors.MException
WritableResourceNodecreateConfig in class WritableResourceNodede.mhus.lib.errors.MException - if editing is not possiblepublic int getProperty(String name, int def) throws de.mhus.lib.errors.MException
getProperty in class IPropertiesde.mhus.lib.errors.MExceptionpublic int moveConfig(ResourceNode config, int newPos) throws de.mhus.lib.errors.MException
WritableResourceNodemoveConfig 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_LASTde.mhus.lib.errors.MException - if editing is not possible or the position is out of rangepublic String getString(String name, String def)
getString in class IPropertiespublic String[] getPropertyKeys()
ResourceNodegetPropertyKeys in class ResourceNodepublic ResourceNode getNode(String key)
ResourceNodegetNode in class ResourceNodepublic boolean getBoolean(String name, boolean def)
getBoolean in class IPropertiespublic void removeConfig(ResourceNode config) throws de.mhus.lib.errors.MException
WritableResourceNoderemoveConfig in class WritableResourceNodeconfig - The config object which should be removed.de.mhus.lib.errors.MException - if editing is not possiblepublic ResourceNode[] getNodes()
ResourceNodegetNodes in class ResourceNodepublic int getInt(String name, int def)
getInt in class IPropertiespublic ResourceNode[] getNodes(String key)
ResourceNodegetNodes in class ResourceNodepublic void setString(String name, String value)
setString in class WritableResourceNodepublic long getLong(String name, long def)
getLong in class IPropertiespublic String[] getNodeKeys()
ResourceNodegetNodeKeys in class ResourceNodepublic String getName() throws de.mhus.lib.errors.MException
ResourceNodegetName in class ResourceNodede.mhus.lib.errors.MExceptionpublic float getFloat(String name, float def)
getFloat in class IPropertiespublic InputStream getInputStream(String key)
ResourceNodegetInputStream in class ResourceNodekey - Name of a rendition or null for the default contentpublic String getExtracted(String key) throws de.mhus.lib.errors.MException
ResourceNodegetExtracted in class ResourceNodede.mhus.lib.errors.MExceptionStringCompilerpublic double getDouble(String name, double def)
getDouble in class IPropertiespublic Calendar getCalendar(String name) throws de.mhus.lib.errors.MException
getCalendar in class IPropertiesde.mhus.lib.errors.MExceptionpublic String getExtracted(String key, String def) throws de.mhus.lib.errors.MException
getExtracted in class ResourceNodede.mhus.lib.errors.MExceptionpublic Date getDate(String name)
getDate in class IPropertiespublic ResourceNode getParent()
ResourceNodegetParent in class ResourceNodepublic Set<String> keys()
keys in class ResourceNodepublic void setInt(String name, int value)
setInt in class IPropertiespublic void setLong(String name, long value)
setLong in class IPropertiespublic void setDouble(String name, double value)
setDouble in class IPropertiespublic void setFloat(String name, float value)
setFloat in class IPropertiespublic void setBoolean(String name, boolean value)
setBoolean in class IPropertiespublic void setCalendar(String name, Calendar value)
setCalendar in class IPropertiespublic void setDate(String name, Date value)
setDate in class IPropertiespublic void setNumber(String name, Number value)
setNumber in class IPropertiespublic Number getNumber(String name, Number def)
getNumber in class IPropertiespublic boolean isProperty(String name)
IPropertiesisProperty in class IPropertiespublic void removeProperty(String key)
IPropertiesremoveProperty in class IPropertiespublic void setProperty(String key, Object value)
IPropertiessetProperty in class IPropertiespublic boolean isEditable()
IPropertiesisEditable in class IPropertiespublic URL getUrl()
getUrl in class ResourceNodeCopyright © 2014. All rights reserved.