| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
MOVE_DOWN, MOVE_FIRST, MOVE_LAST, MOVE_UPcompiledCache, compiler| Constructor and Description |
|---|
JsonConfig() |
JsonConfig(org.codehaus.jackson.node.ObjectNode node) |
JsonConfig(String json) |
JsonConfig(String name2,
JsonConfig jsonConfig,
org.codehaus.jackson.node.TextNode textNode) |
JsonConfig(String name,
WritableResourceNode parent,
org.codehaus.jackson.node.ObjectNode node) |
| Modifier and Type | Method and Description |
|---|---|
WritableResourceNode |
createConfig(String key)
Create a new config and append it at the end of the list.
|
protected int |
findPosOf(org.codehaus.jackson.node.ArrayNode array,
JsonConfig config) |
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.
|
org.codehaus.jackson.node.ObjectNode |
getNode() |
WritableResourceNode |
getNode(String name)
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 name)
Return all inner configurations by the given name.
|
WritableResourceNode |
getParent()
return the parent config if possible.
|
Object |
getProperty(String name)
Overwrite this function to provide values in string format.
|
String[] |
getPropertyKeys()
Return all existing keys.
|
URL |
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.
|
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 name)
Remove the property field in the list of properties.
|
void |
setProperty(String name,
Object value)
Overwrite this function to allow changes in properties.
|
void |
write(OutputStream os) |
void |
write(Writer os) |
setStringgetExtracted, getExtracted, getExtracted, getInputStream, keysgetBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getProperty, getString, getString, iterator, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumberbase, base, createBase, forkBase, installBase, isBase, leaveBase, toStringprotected String name
public JsonConfig(org.codehaus.jackson.node.ObjectNode node)
public JsonConfig(String name, WritableResourceNode parent, org.codehaus.jackson.node.ObjectNode node)
public JsonConfig(String name2, JsonConfig jsonConfig, org.codehaus.jackson.node.TextNode textNode) throws Exception
Exceptionpublic WritableResourceNode getNode(String name)
ResourceNodegetNode in class ResourceNodepublic WritableResourceNode[] getNodes(String name)
ResourceNodegetNodes in class ResourceNodepublic WritableResourceNode[] getNodes()
ResourceNodegetNodes in class ResourceNodepublic String[] getNodeKeys()
ResourceNodegetNodeKeys in class ResourceNodepublic Object getProperty(String name)
IPropertiesgetProperty in class IPropertiespublic String[] getPropertyKeys()
ResourceNodegetPropertyKeys in class ResourceNodepublic boolean isProperty(String name)
IPropertiesisProperty in class IPropertiespublic void removeProperty(String name)
IPropertiesremoveProperty in class IPropertiespublic void setProperty(String name, Object value)
IPropertiessetProperty in class IPropertiespublic org.codehaus.jackson.node.ObjectNode getNode()
public String getName()
ResourceNodegetName in class ResourceNodepublic WritableResourceNode createConfig(String key) throws de.mhus.lib.errors.MException
WritableResourceNodecreateConfig in class WritableResourceNodede.mhus.lib.errors.MException - if editing is not possiblepublic 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 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 possibleprotected int findPosOf(org.codehaus.jackson.node.ArrayNode array,
JsonConfig config)
public boolean isEditable()
IPropertiesisEditable in class IPropertiespublic WritableResourceNode getParent()
ResourceNodegetParent in class ResourceNodepublic void write(OutputStream os) throws IOException
IOExceptionpublic void write(Writer os) throws IOException
IOExceptionpublic InputStream getInputStream(String key)
ResourceNodegetInputStream in class ResourceNodekey - Name of a rendition or null for the default contentpublic URL getUrl()
getUrl in class ResourceNodeCopyright © 2014. All rights reserved.