-
- All Known Implementing Classes:
ObjectNodeBuilderImpl
- Enclosing interface:
- ConfigNode.ObjectNode
public static interface ConfigNode.ObjectNode.BuilderBuilder to buildConfigNode.ObjectNodeinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConfigNode.ObjectNode.BuilderaddList(String key, ConfigNode.ListNode list)Sets List node associated with specifiedkey.ConfigNode.ObjectNode.BuilderaddNode(String key, ConfigNode node)Add a config node.ConfigNode.ObjectNode.BuilderaddObject(String key, ConfigNode.ObjectNode object)Sets Object node associated with specifiedkey.ConfigNode.ObjectNode.BuilderaddValue(String key, ConfigNode.ValueNode value)Sets String value associated with specifiedkey.default ConfigNode.ObjectNode.BuilderaddValue(String key, String value)Sets String value associated with specifiedkey.ConfigNode.ObjectNodebuild()Build new instance ofConfigNode.ObjectNode.ConfigNode.ObjectNode.Buildervalue(String value)Sets the node value associated with the current node.
-
-
-
Method Detail
-
addValue
default ConfigNode.ObjectNode.Builder addValue(String key, String value)
Sets String value associated with specifiedkey.- Parameters:
key- member keyvalue- string value- Returns:
- modified builder
-
addValue
ConfigNode.ObjectNode.Builder addValue(String key, ConfigNode.ValueNode value)
Sets String value associated with specifiedkey.- Parameters:
key- member keyvalue- string value- Returns:
- modified builder
-
addObject
ConfigNode.ObjectNode.Builder addObject(String key, ConfigNode.ObjectNode object)
Sets Object node associated with specifiedkey.- Parameters:
key- member keyobject- object node- Returns:
- modified builder
-
addList
ConfigNode.ObjectNode.Builder addList(String key, ConfigNode.ListNode list)
Sets List node associated with specifiedkey.- Parameters:
key- member keylist- list node- Returns:
- modified builder
-
value
ConfigNode.ObjectNode.Builder value(String 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
ConfigNode.ObjectNode.Builder addNode(String key, ConfigNode node)
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
-
-