|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cubeengine.converter.node.Commentable
org.cubeengine.converter.node.Node<V>
org.cubeengine.converter.node.ContainerNode<Map<String,Node>>
org.cubeengine.converter.node.MapNode
public class MapNode
A MapNode
It can map KeyNodes onto other Nodes
| Constructor Summary | |
|---|---|
MapNode()
|
|
| Method Summary | |
|---|---|
String |
asString()
|
void |
cleanUpEmptyNodes()
Searches for ParentNodes that do not contain data and deletes them |
static MapNode |
emptyMap()
Creates an empty MapNode |
Node |
get(String key)
Returns the Node for given direct key (without pathseparators). |
String |
getFirstKey()
Returns the first key of this MapNode or null if the map is empty |
Map<String,Node> |
getMappedNodes()
|
String |
getOriginalKey(String lowerCasedKey)
|
Map<String,Node> |
getValue()
Gets the Value contained in this Node |
void |
inheritFrom(Node node)
|
boolean |
isEmpty()
Returns whether this Node contains data |
protected Node |
remove(String key)
Removes the Node for given direct key (without pathseparators). |
Node |
set(String key,
Node node)
Sets this Node for given key The key will be lowercased! |
| Methods inherited from class org.cubeengine.converter.node.ContainerNode |
|---|
asText, get, remove, set |
| Methods inherited from class org.cubeengine.converter.node.Node |
|---|
isInherited, setInherited |
| Methods inherited from class org.cubeengine.converter.node.Commentable |
|---|
getComments, setComments |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapNode()
| Method Detail |
|---|
public Map<String,Node> getValue()
Node
getValue in class Node<Map<String,Node>>public static MapNode emptyMap()
public Node get(String key)
ContainerNodeThe key will be lowercased!
get in class ContainerNode<Map<String,Node>>key - the key
public final Node set(String key,
Node node)
ContainerNodeThe key will be lowercased!
set in class ContainerNode<Map<String,Node>>key - the keynode - the Node to set
protected final Node remove(String key)
ContainerNodeThe key will be lowercased!
remove in class ContainerNode<Map<String,Node>>key - the key
public String getOriginalKey(String lowerCasedKey)
public Map<String,Node> getMappedNodes()
public boolean isEmpty()
ContainerNode
isEmpty in class ContainerNode<Map<String,Node>>public void cleanUpEmptyNodes()
ContainerNode
cleanUpEmptyNodes in class ContainerNode<Map<String,Node>>public String asString()
asString in class Node<Map<String,Node>>public String getFirstKey()
public void inheritFrom(Node node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||