- All Known Implementing Classes:
ObjectNodeBuilderImpl
- Enclosing interface:
- ConfigNode.ObjectNode
public static interface ConfigNode.ObjectNode.Builder
Builder to build
ConfigNode.ObjectNode
instance.-
Method Summary
Modifier and TypeMethodDescriptionaddList
(String key, ConfigNode.ListNode list) Sets List node associated with specifiedkey
.addNode
(String key, ConfigNode node) Add a config node.addObject
(String key, ConfigNode.ObjectNode object) Sets Object node associated with specifiedkey
.addValue
(String key, ConfigNode.ValueNode value) Sets String value associated with specifiedkey
.default ConfigNode.ObjectNode.Builder
Sets String value associated with specifiedkey
.build()
Build new instance ofConfigNode.ObjectNode
.Sets the node value associated with the current node.
-
Method Details
-
addValue
Sets String value associated with specifiedkey
.- Parameters:
key
- member keyvalue
- string value- Returns:
- modified builder
-
addValue
Sets String value associated with specifiedkey
.- Parameters:
key
- member keyvalue
- string value- Returns:
- modified builder
-
addObject
Sets Object node associated with specifiedkey
.- Parameters:
key
- member keyobject
- object node- Returns:
- modified builder
-
addList
Sets List node associated with specifiedkey
.- Parameters:
key
- member keylist
- list node- Returns:
- modified builder
-
value
Sets the node value associated with the current node.- Parameters:
value
- value to be assigned- Returns:
- modified builder
-
build
ConfigNode.ObjectNode build()Build new instance ofConfigNode.ObjectNode
.- Returns:
- new instance of
ConfigNode.ObjectNode
.
-
addNode
Add a config node. The method will determine the type of the node and add it to builder.- Parameters:
key
- key of the nodenode
- node to be added- Returns:
- modified builder
-