Interface ConfigNode.ObjectNode
- All Superinterfaces:
ConfigNode, Map<String, ConfigNode>
- All Known Implementing Classes:
ObjectNodeImpl
- Enclosing interface:
ConfigNode
Configuration node representing a hierarchical structure parsed by a
suitable
ConfigParser if necessary.
In the map exposed by this interface, the map keys are Strings
containing the fully-qualified dotted names of the config keys and the
map values are the corresponding ConfigNode.ValueNode or ConfigNode.ListNode
instances. The map never contains ConfigNode.ObjectNode values because the
ConfigNode.ObjectNode is implemented as a flat map.
NOTE: Do not implement this interface yourself but rather use
builder().
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder to buildConfigNode.ObjectNodeinstance.Nested classes/interfaces inherited from interface ConfigNode
ConfigNode.ListNode, ConfigNode.NodeType, ConfigNode.ObjectNode, ConfigNode.ValueNodeModifier and TypeInterfaceDescriptionstatic interfaceConfigNode-based list of configuration values.static enumBase types of config nodes.static interfaceConfiguration node representing a hierarchical structure parsed by a suitableConfigParserif necessary.static interfaceSingle string-based configuration value. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates new instance ofConfigNode.ObjectNode.Builder.static ConfigNode.ObjectNodeempty()Returns empty object node.default ConfigNode.NodeTypenodeType()Get the type of this node.static ConfigNode.ObjectNodeReturns an object node containing a single simple value.Methods inherited from interface ConfigNode
valueMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
nodeType
Description copied from interface:ConfigNodeGet the type of this node.- Specified by:
nodeTypein interfaceConfigNode- Returns:
- NodeType this node represents
-
empty
-
simple
Returns an object node containing a single simple value.- Parameters:
key- key of the valuevalue- value- Returns:
- a new object node
-
builder
Creates new instance ofConfigNode.ObjectNode.Builder.- Returns:
- new instance of
ConfigNode.ObjectNode.Builder.
-