|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.util.TreeProperties<T>
T - Type of objects stored in the tree properties.public class TreeProperties<T>
Wraps a property set or a map as a tree view.
| Constructor Summary | |
|---|---|
TreeProperties()
Constructor for an empty tree. |
|
TreeProperties(Map<String,T> map)
Constructor from a map. |
|
TreeProperties(Properties properties)
Constructor from a property set. |
|
| Method Summary | |
|---|---|
Iterable<Pair<String,TreeProperties<T>>> |
entries()
|
T |
get(String key)
Gets a value using a key. |
TreeProperties<T> |
getTree(String key)
Gets a subtree using a key. |
void |
put(String key,
T value)
Registers a value using a key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeProperties()
public TreeProperties(Map<String,T> map)
map - Mappublic TreeProperties(Properties properties)
properties - Properties| Method Detail |
|---|
public Iterable<Pair<String,TreeProperties<T>>> entries()
public T get(String key)
key - Key
public TreeProperties<T> getTree(String key)
key - Key
public void put(String key,
T value)
key - Keyvalue - Value to store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||