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
Nested ClassesModifier and TypeClassDescriptionstatic classInternal config node key useful during internal structure building. -
Method Summary
Modifier and TypeMethodDescriptionprotected BApplies deep merging through whole structure.protected abstract IDReturns id computed from key.protected abstract MergeableNodeReturns member instance associated with specified id.protected abstract voidmerge(ID id, MergeableNode node) Merges a member of specified id with specified node.protected abstract voidupdate(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
-