public class ConfigNode extends Object implements ConfigTree
Constructor and Description |
---|
ConfigNode() |
Modifier and Type | Method and Description |
---|---|
Stream<ConfigKey> |
allKeysRecursively()
Retrieve all descendent keys.
|
List |
asList() |
Map |
asMap() |
Object |
asObject() |
Properties |
asProperties() |
void |
child(SimpleKey key,
Object value)
Set the value of an immediate child.
|
void |
child(String key,
Object value)
Set the value of an immediate child.
|
Set<SimpleKey> |
childrenKeys()
Retrieve all immediate children keys.
|
void |
recursiveChild(ConfigKey key,
Object value)
Set the value of a descendant.
|
void |
recursiveChild(String key,
Object value)
Set the value of a descendant.
|
String |
toString() |
Object |
valueOf(ConfigKey key)
Retrieve a value.
|
public void child(SimpleKey key, Object value)
key
- The simple child key.value
- The value to set.public void child(String key, Object value)
key
- The simple child key.value
- The value to set.public void recursiveChild(String key, Object value)
Any intermediate leafs will be created as-needed.
key
- The possibly-complex key to a descendant.value
- The value to set.public void recursiveChild(ConfigKey key, Object value)
Any intermediate leafs will be created as-needed.
key
- The possibly-complex key to a descendant.value
- The value to set.public Set<SimpleKey> childrenKeys()
public Stream<ConfigKey> allKeysRecursively()
public Object valueOf(ConfigKey key)
key
- The possibly-complex key of the value to retrieve.null
if none.public Object asObject()
public List asList()
asList
in interface ConfigTree
public Map asMap()
asMap
in interface ConfigTree
public Properties asProperties()
asProperties
in interface ConfigTree
Copyright © 2019 JBoss by Red Hat. All rights reserved.