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
private static final class INIConfiguration.GlobalSectionNodeModel extends TrackedNodeModel
A specialized node model implementation for the sub configuration representing the global section of the INI file. This is a regularTrackedNodeModel
with one exception: TheNodeHandler
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
Constructors Constructor Description GlobalSectionNodeModel(InMemoryNodeModelSupport modelSupport, NodeSelector selector)
Creates a new instance ofGlobalSectionNodeModel
and initializes it with the given underlying model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeHandler<ImmutableNode>
getNodeHandler()
Gets 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 Detail
-
GlobalSectionNodeModel
public GlobalSectionNodeModel(InMemoryNodeModelSupport modelSupport, NodeSelector selector)
Creates a new instance ofGlobalSectionNodeModel
and initializes it with the given underlying model.- Parameters:
modelSupport
- the underlyingInMemoryNodeModel
selector
- theNodeSelector
-
-
Method Detail
-
getNodeHandler
public NodeHandler<ImmutableNode> 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
-
-