|
||||||||||
| 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
org.cubeengine.converter.node.ListNode
public class ListNode
A List Node
It can contain a list of other Nodes
| Constructor Summary | |
|---|---|
ListNode()
|
|
| Method Summary | |
|---|---|
void |
addNode(Node node)
Adds a node to the list |
String |
asString()
|
void |
cleanUpEmptyNodes()
Searches for ParentNodes that do not contain data and deletes them |
static ListNode |
emptyList()
Creates an Empty ListNode |
Node |
get(String key)
Returns the Node for given direct key (without pathseparators). |
List<Node> |
getValue()
Gets the Value contained in this 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 ListNode()
| Method Detail |
|---|
public static ListNode emptyList()
public List<Node> getValue()
Node
getValue in class Nodepublic void addNode(Node node)
node - the node to add
public Node set(String key,
Node node)
ContainerNodeThe key will be lowercased!
set in class ContainerNodekey - the keynode - the Node to set
public Node get(String key)
ContainerNodeThe key will be lowercased!
get in class ContainerNodekey - the key
protected Node remove(String key)
ContainerNodeThe key will be lowercased!
remove in class ContainerNodekey - the key
public boolean isEmpty()
ContainerNode
isEmpty in class ContainerNodepublic void cleanUpEmptyNodes()
ContainerNode
cleanUpEmptyNodes in class ContainerNodepublic String asString()
asString in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||