-
- All Superinterfaces:
ConfigNode
,Map<String,ConfigNode>
- All Known Implementing Classes:
ObjectNodeImpl
- Enclosing interface:
- ConfigNode
public static interface ConfigNode.ObjectNode extends ConfigNode, Map<String,ConfigNode>
Configuration node representing a hierarchical structure parsed by a suitableConfigParser
if necessary.In the map exposed by this interface, the map keys are
String
s containing the fully-qualified dotted names of the config keys and the map values are the correspondingConfigNode.ValueNode
orConfigNode.ListNode
instances. The map never containsConfigNode.ObjectNode
values because theConfigNode.ObjectNode
is implemented as a flat map.NOTE: Do not implement this interface yourself but rather use
builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ConfigNode.ObjectNode.Builder
Builder to buildConfigNode.ObjectNode
instance.-
Nested classes/interfaces inherited from interface io.helidon.config.spi.ConfigNode
ConfigNode.ListNode, ConfigNode.NodeType, ConfigNode.ObjectNode, ConfigNode.ValueNode
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ConfigNode.ObjectNode.Builder
builder()
Creates new instance ofConfigNode.ObjectNode.Builder
.static ConfigNode.ObjectNode
empty()
Returns empty object node.default ConfigNode.NodeType
nodeType()
Get the type of this node.static ConfigNode.ObjectNode
simple(String key, String value)
Returns an object node containing a single simple value.-
Methods inherited from interface io.helidon.config.spi.ConfigNode
value
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
nodeType
default ConfigNode.NodeType nodeType()
Description copied from interface:ConfigNode
Get the type of this node.- Specified by:
nodeType
in interfaceConfigNode
- Returns:
- NodeType this node represents
-
empty
static ConfigNode.ObjectNode empty()
Returns empty object node.- Returns:
- empty object node.
-
simple
static ConfigNode.ObjectNode simple(String key, String value)
Returns an object node containing a single simple value.- Parameters:
key
- key of the valuevalue
- value- Returns:
- a new object node
-
builder
static ConfigNode.ObjectNode.Builder builder()
Creates new instance ofConfigNode.ObjectNode.Builder
.- Returns:
- new instance of
ConfigNode.ObjectNode.Builder
.
-
-