Uses of Class
org.apache.commons.configuration2.tree.NodeSelector
Package
Description
The Configuration main package.
A package with helper and utility classes used by hierarchical configurations.
-
Uses of NodeSelector in org.apache.commons.configuration2
Modifier and TypeMethodDescriptionSubnodeConfiguration.getRootSelector()
Gets the selector to the root node of this configuration.protected NodeSelector
BaseHierarchicalConfiguration.getSubConfigurationNodeSelector
(String key) Gets theNodeSelector
to be used for a sub configuration based on the passed in key.protected NodeSelector
SubnodeConfiguration.getSubConfigurationNodeSelector
(String key) Gets theNodeSelector
to be used for a sub configuration based on the passed in key.Modifier and TypeMethodDescriptionprotected SubnodeConfiguration
BaseHierarchicalConfiguration.createSubConfigurationForTrackedNode
(NodeSelector selector, InMemoryNodeModelSupport parentModelSupport) Creates a connected sub configuration based on a selector for a tracked node.protected SubnodeConfiguration
SubnodeConfiguration.createSubConfigurationForTrackedNode
(NodeSelector selector, InMemoryNodeModelSupport parentModelSupport) Creates a connected sub configuration based on a selector for a tracked node. -
Uses of NodeSelector in org.apache.commons.configuration2.tree
Modifier and TypeMethodDescriptionTrackedNodeModel.getSelector()
Gets theNodeSelector
pointing to the tracked node managed by this model.NodeSelector.subSelector
(String subKey) Creates a subNodeSelector
object which uses the key(s) of this selector plus the specified key as selection criteria.InMemoryNodeModel.trackChildNodeWithCreation
(String key, String childName, NodeKeyResolver<ImmutableNode> resolver) Tracks a node which is a child of another node selected by the passed in key.Modifier and TypeMethodDescriptionInMemoryNodeModel.selectAndTrackNodes
(String key, NodeKeyResolver<ImmutableNode> resolver) Allows tracking all nodes selected by a key.InMemoryNodeModel.trackChildNodes
(String key, NodeKeyResolver<ImmutableNode> resolver) Tracks all nodes which are children of the node selected by the passed in key.Modifier and TypeMethodDescriptionvoid
InMemoryNodeModel.addNodes
(String key, NodeSelector selector, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) Adds new nodes using a tracked node as root node.void
InMemoryNodeModel.addProperty
(String key, NodeSelector selector, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) Adds new property values using a tracked node as root node.void
InMemoryNodeModel.clearProperty
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a property using a tracked node as root node.InMemoryNodeModel.clearTree
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a whole sub tree using a tracked node as root node.InMemoryNodeModel.getTrackedNode
(NodeSelector selector) Gets the currentImmutableNode
instance associated with the givenNodeSelector
.InMemoryNodeModel.getTrackedNodeHandler
(NodeSelector selector) Gets aNodeHandler
for a tracked node.boolean
InMemoryNodeModel.isTrackedNodeDetached
(NodeSelector selector) Returns a flag whether the specified tracked node is detached.void
InMemoryNodeModel.replaceTrackedNode
(NodeSelector selector, ImmutableNode newNode) Replaces a tracked node by another node.void
InMemoryNodeModel.setProperty
(String key, NodeSelector selector, Object value, NodeKeyResolver<ImmutableNode> resolver) Sets the value of a property using a tracked node as root node.void
InMemoryNodeModel.trackNode
(NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Adds a node to be tracked.void
InMemoryNodeModel.untrackNode
(NodeSelector selector) Removes a tracked node.ModifierConstructorDescriptionTrackedNodeModel
(InMemoryNodeModelSupport modelSupport, NodeSelector sel, boolean untrackOnFinalize) Creates a new instance ofTrackedNodeModel
and initializes it with the given underlying model and the selector to the root node.