Interface MergeableNode
- All Superinterfaces:
ConfigNode
- All Known Implementing Classes:
ObjectNodeImpl, ValueNodeImpl
Extension of
ConfigNode that supports merging with other nodes.-
Nested Class Summary
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 TypeMethodDescriptionbooleanhasValue()Each node may have a direct value, and in addition may be an object node or a list node.merge(MergeableNode node) Returns new instance mergeable node of same type of original one that merges also with specified node.Methods inherited from interface ConfigNode
nodeType, value
-
Method Details
-
merge
Returns new instance mergeable node of same type of original one that merges also with specified node.- Parameters:
node- node to be used to merge with- Returns:
- new instance of mergeable node that combines original node with specified one
- Throws:
ConfigException- in case it if not possible to merge original node with new one.
-
hasValue
boolean hasValue()Each node may have a direct value, and in addition may be an object node or a list node. This method returns true for any node with direct value.- Returns:
- true if this node contains a value
-