net.named_data.jndn.util
public class BoostInfoTree extends Object
Constructor and Description |
---|
BoostInfoTree() |
BoostInfoTree(String value) |
BoostInfoTree(String value,
BoostInfoTree parent) |
Modifier and Type | Method and Description |
---|---|
void |
addSubtree(String treeName,
BoostInfoTree newTree)
Insert a BoostInfoTree as a sub-tree with the given name.
|
BoostInfoTree |
createSubtree(String treeName)
Create a new BoostInfoTree with where the value is an empty string,
and insert it as a sub-tree with the given name.
|
BoostInfoTree |
createSubtree(String treeName,
String value)
Create a new BoostInfoTree and insert it as a sub-tree with the given name.
|
ArrayList |
get(String key)
Look up using the key and return a list of the subtrees.
|
String |
getFirstValue(String key)
Look up using the key and return string value of the first subtree.
|
BoostInfoTree |
getLastChild() |
BoostInfoTree |
getParent() |
String |
getValue() |
String |
prettyPrint() |
String |
prettyPrint(int indentLevel) |
String |
toString() |
public BoostInfoTree(String value, BoostInfoTree parent)
public BoostInfoTree(String value)
public BoostInfoTree()
public final void addSubtree(String treeName, BoostInfoTree newTree)
treeName
- The name of the new sub-tree.newTree
- The sub-tree to add.public final BoostInfoTree createSubtree(String treeName, String value)
treeName
- The name of the new sub-tree.value
- The value associated with the new sub-tree.public final BoostInfoTree createSubtree(String treeName)
treeName
- The name of the new sub-tree.public final ArrayList get(String key)
key
- The key which may be a path separated with '/'.public final String getFirstValue(String key)
key
- The key which may be a path separated with '/'.public final String getValue()
public final BoostInfoTree getParent()
public final BoostInfoTree getLastChild()
public final String prettyPrint(int indentLevel)
public final String prettyPrint()
Copyright © 2016. All rights reserved.