|
||||||||||
| 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<V>
public abstract class ContainerNode<V>
A Node that can be a parent of another Node
| Constructor Summary | |
|---|---|
ContainerNode()
|
|
| Method Summary | |
|---|---|
String |
asText()
Tries to convert the value of the Node into a string |
abstract void |
cleanUpEmptyNodes()
Searches for ParentNodes that do not contain data and deletes them |
Node |
get(Path path)
Gets the Node for given path or null if not found |
abstract Node |
get(String key)
Returns the Node for given direct key (without pathseparators). |
abstract boolean |
isEmpty()
Returns whether this Node contains data |
Node |
remove(Path path)
Removes the Node for given path |
protected abstract Node |
remove(String key)
Removes the Node for given direct key (without pathseparators). |
Node |
set(Path path,
Node node)
Sets this Node for given path |
abstract 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.Node |
|---|
asString, getValue, 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 ContainerNode()
| Method Detail |
|---|
public Node set(Path path,
Node node)
path - the pathnode - Node to set
IllegalArgumentException - when the given path is not valid e.g. because a node on the path is not a ContainerNodepublic Node get(Path path)
path - the path
IllegalArgumentException - when the given path is not valid e.g. because a node on the path is not a ContainerNodepublic Node remove(Path path)
path - the path
public abstract Node set(String key,
Node node)
The key will be lowercased!
key - the keynode - the Node to set
public abstract Node get(String key)
The key will be lowercased!
key - the key
protected abstract Node remove(String key)
The key will be lowercased!
key - the key
public abstract void cleanUpEmptyNodes()
public abstract boolean isEmpty()
public String asText()
Node
asText in class Node<V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||