- All Implemented Interfaces:
- MergeableNode,- ConfigNode,- ConfigNode.ObjectNode,- Map<String,- ConfigNode> 
public class ObjectNodeImpl
extends AbstractMap<String,ConfigNode>
implements ConfigNode.ObjectNode, MergeableNode 
Implements 
ConfigNode.ObjectNode.- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface io.helidon.config.spi.ConfigNodeConfigNode.ListNode, ConfigNode.NodeType, ConfigNode.ObjectNode, ConfigNode.ValueNodeNested classes/interfaces inherited from interface io.helidon.config.spi.ConfigNode.ObjectNodeConfigNode.ObjectNode.Builder
- 
Method SummaryModifier and TypeMethodDescriptionDescription of this node.entrySet()booleanhasValue()Each node may have a direct value, and in addition may be an object node or a list node.initDescription(String description) Initialize diagnostics description of source of node instance.merge(MergeableNode node) Returns new instance mergeable node of same type of original one that merges also with specified node.toString()value()Get the direct value of this config node.static ObjectNodeImplwrap(ConfigNode.ObjectNode objectNode) Wraps value node into mergeable value node.static ObjectNodeImplwrap(ConfigNode.ObjectNode objectNode, Function<String, String> resolveTokenFunction) Wraps value node into mergeable value node.Methods inherited from class java.util.AbstractMapclear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.config.spi.ConfigNode.ObjectNodenodeTypeMethods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
- 
Method Details- 
wrapWraps value node into mergeable value node.- Parameters:
- objectNode- original node
- Returns:
- new instance of mergeable node or original node if already was mergeable.
 
- 
wrappublic static ObjectNodeImpl wrap(ConfigNode.ObjectNode objectNode, Function<String, String> resolveTokenFunction) Wraps value node into mergeable value node.- Parameters:
- objectNode- original node
- resolveTokenFunction- a token resolver
- Returns:
- new instance of mergeable node or original node if already was mergeable.
 
- 
entrySet- Specified by:
- entrySetin interface- Map<String,- ConfigNode> 
- Specified by:
- entrySetin class- AbstractMap<String,- ConfigNode> 
 
- 
mergeDescription copied from interface:MergeableNodeReturns new instance mergeable node of same type of original one that merges also with specified node.- Specified by:
- mergein interface- MergeableNode
- Parameters:
- node- node to be used to merge with
- Returns:
- new instance of mergeable node that combines original node with specified one
 
- 
toString- Overrides:
- toStringin class- AbstractMap<String,- ConfigNode> 
 
- 
initDescriptionInitialize diagnostics description of source of node instance.- Parameters:
- description- diagnostics description
- Returns:
- this instance
 
- 
descriptionDescription of this node.- Returns:
- node description
 
- 
hasValuepublic boolean hasValue()Description copied from interface:MergeableNodeEach node may have a direct value, and in addition may be an object node or a list node. This method returns true for any node with direct value.- Specified by:
- hasValuein interface- MergeableNode
- Returns:
- true if this node contains a value
 
- 
valueDescription copied from interface:ConfigNodeGet the direct value of this config node. Any node type can have a direct value.- Specified by:
- valuein interface- ConfigNode
- Returns:
- a value if present, emptyotherwise
 
 
-