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 ofGlobalSectionNodeModeland initializes it with the given underlying model. -
Method Summary
Modifier and TypeMethodDescriptionGets aNodeHandlerfor 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 ofGlobalSectionNodeModeland initializes it with the given underlying model.- Parameters:
modelSupport- the underlyingInMemoryNodeModelselector- theNodeSelector
-
-
Method Details
-
getNodeHandler
Description copied from interface:NodeModelGets aNodeHandlerfor dealing with the nodes managed by this model.- Specified by:
getNodeHandlerin interfaceNodeModel<ImmutableNode>- Overrides:
getNodeHandlerin classTrackedNodeModel- Returns:
- the
NodeHandler
-