java.lang.Object
io.helidon.config.AbstractNodeBuilderImpl<ID,B>
- Type Parameters:
ID
- type of idB
- type of builder implementation
- Direct Known Subclasses:
ListNodeBuilderImpl
,ObjectNodeBuilderImpl
Common implementation of
ConfigNode.ListNode.Builder
and ConfigNode.ObjectNode.Builder
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Internal config node key useful during internal structure building. -
Method Summary
Modifier and TypeMethodDescriptionprotected B
Applies deep merging through whole structure.protected abstract ID
Returns id computed from key.protected abstract MergeableNode
Returns member instance associated with specified id.protected abstract void
merge
(ID id, MergeableNode node) Merges a member of specified id with specified node.protected abstract void
update
(ID id, MergeableNode node) Updates/replaces a member of specified id by specified node.
-
Method Details
-
id
Returns id computed from key.- Parameters:
key
- key to be used to extract id from- Returns:
- id computed from key
-
member
Returns member instance associated with specified id.- Parameters:
id
- member id- Returns:
- member instance associated with specified id.
-
update
Updates/replaces a member of specified id by specified node.- Parameters:
id
- member idnode
- new node
-
merge
Merges a member of specified id with specified node.- Parameters:
id
- member idnode
- new node
-
deepMerge
Applies deep merging through whole structure.- Parameters:
key
- key of nodenode
- node to be merged into- Returns:
- modified builder
-