Class INIConfiguration.GlobalSectionNodeModel
java.lang.Object
org.apache.commons.configuration2.tree.TrackedNodeModel
org.apache.commons.configuration2.INIConfiguration.GlobalSectionNodeModel
- All Implemented Interfaces:
NodeModel<ImmutableNode>
- Enclosing class:
- INIConfiguration
A specialized node model implementation for the sub configuration representing the global section of the INI file.
This is a regular
TrackedNodeModel
with one exception: The NodeHandler
used by this model applies a
filter on the children of the root node so that only nodes are visible that are no sub sections.-
Constructor Summary
ConstructorsConstructorDescriptionGlobalSectionNodeModel
(InMemoryNodeModelSupport modelSupport, NodeSelector selector) Creates a new instance ofGlobalSectionNodeModel
and initializes it with the given underlying model. -
Method Summary
Modifier and TypeMethodDescriptionGets aNodeHandler
for dealing with the nodes managed by this model.Methods inherited from class org.apache.commons.configuration2.tree.TrackedNodeModel
addNodes, addProperty, clear, clearProperty, clearTree, close, finalize, getInMemoryRepresentation, getParentModel, getParentModelSupport, getSelector, isReleaseTrackedNodeOnFinalize, setProperty, setRootNode
-
Constructor Details
-
GlobalSectionNodeModel
Creates a new instance ofGlobalSectionNodeModel
and initializes it with the given underlying model.- Parameters:
modelSupport
- the underlyingInMemoryNodeModel
selector
- theNodeSelector
-
-
Method Details
-
getNodeHandler
Description copied from interface:NodeModel
Gets aNodeHandler
for dealing with the nodes managed by this model.- Specified by:
getNodeHandler
in interfaceNodeModel<ImmutableNode>
- Overrides:
getNodeHandler
in classTrackedNodeModel
- Returns:
- the
NodeHandler
-