Uses of Class
org.apache.commons.configuration2.tree.ImmutableNode
Packages that use ImmutableNode
Package
Description
The Configuration main package.
Configuration classes supporting NeXT / OpenStep /GNUStep style configuration.
A package with helper and utility classes used by hierarchical configurations.
-
Uses of ImmutableNode in org.apache.commons.configuration2
Fields in org.apache.commons.configuration2 declared as ImmutableNodeModifier and TypeFieldDescriptionprivate static final ImmutableNode
CombinedConfiguration.EMPTY_ROOT
Constant for a root node for an empty configuration.private ImmutableNode
BaseHierarchicalConfiguration.InterpolatedVisitor.interpolatedRoot
The resulting root node.private ImmutableNode
CombinedConfiguration.ConfigData.rootNode
Stores the root node for this child configuration.Fields in org.apache.commons.configuration2 with type parameters of type ImmutableNodeModifier and TypeFieldDescriptionprivate final HierarchicalConfiguration<ImmutableNode>
PatternSubtreeConfigurationWrapper.config
The wrapped configurationprivate final Map<ImmutableNode,
Element> XMLConfiguration.XMLBuilderVisitor.newElements
A mapping for the references for new nodes.Methods in org.apache.commons.configuration2 that return ImmutableNodeModifier and TypeMethodDescriptionprivate ImmutableNode
CombinedConfiguration.constructCombinedNode()
Creates the root node of this combined configuration.private ImmutableNode
XMLConfiguration.createChildNodeWithValue
(ImmutableNode.Builder parent, ImmutableNode.Builder child, Element elem, String value, boolean trim, Map<String, String> attrmap, Map<ImmutableNode, Object> elemRefs) Creates a new child node, assigns its value, and adds it to its parent.private static ImmutableNode
INIConfiguration.createNewRootNode
(ImmutableNode.Builder rootBuilder, Map<String, ImmutableNode.Builder> sectionBuilders) Creates a new root node from the builders constructed while reading the configuration file.private ImmutableNode
BaseHierarchicalConfiguration.createSubsetRootNode
(Collection<QueryResult<ImmutableNode>> results) Creates a root node for a subset configuration based on the passed in query results.BaseHierarchicalConfiguration.InterpolatedVisitor.getInterpolatedRoot()
Gets the result of this builder: the root node of the interpolated nodes hierarchy.CombinedConfiguration.ConfigData.getRootNode()
Gets the root node for this child configuration.private ImmutableNode
CombinedConfiguration.ConfigData.getRootNodeOfConfiguration()
Obtains the root node of the wrapped configuration.CombinedConfiguration.ConfigData.getTransformedRoot()
Gets the transformed root node of the stored configuration.private static ImmutableNode
BaseHierarchicalConfiguration.obtainRootNode
(HierarchicalConfiguration<ImmutableNode> c) Obtains the root node from a configuration whose data is to be copied.private ImmutableNode
CombinedConfiguration.ConfigData.prependAtPath
(ImmutableNode node) Prepends the at path to the given node.Methods in org.apache.commons.configuration2 that return types with arguments of type ImmutableNodeModifier and TypeMethodDescriptionBaseHierarchicalConfiguration.childConfigurationsAt
(String key) Returns a list with sub configurations for all child nodes of the node selected by the given key.BaseHierarchicalConfiguration.childConfigurationsAt
(String key, boolean supportUpdates) Returns a list with sub configurations for all child nodes of the node selected by the given key allowing the caller to specify thesupportUpdates
flag.protected NodeModel<ImmutableNode>
BaseHierarchicalConfiguration.cloneNodeModel()
Creates a clone of the node model.protected NodeModel<ImmutableNode>
SubnodeConfiguration.cloneNodeModel()
Creates a clone of the node model.BaseHierarchicalConfiguration.configurationAt
(String key) Returns a hierarchical subnode configuration for the node specified by the given key.BaseHierarchicalConfiguration.configurationAt
(String key, boolean supportUpdates) Returns a hierarchical sub configuration object that wraps the configuration node specified by the given key.DynamicCombinedConfiguration.configurationAt
(String key) DynamicCombinedConfiguration.configurationAt
(String key, boolean supportUpdates) PatternSubtreeConfigurationWrapper.configurationAt
(String key) PatternSubtreeConfigurationWrapper.configurationAt
(String key, boolean supportUpdates) BaseHierarchicalConfiguration.configurationsAt
(String key) Returns a list of sub configurations for all configuration nodes selected by the given key.BaseHierarchicalConfiguration.configurationsAt
(String key, boolean supportUpdates) Returns a list of sub configurations for all configuration nodes selected by the given key allowing the caller to specify thesupportUpdates
flag.DynamicCombinedConfiguration.configurationsAt
(String key) PatternSubtreeConfigurationWrapper.configurationsAt
(String key) private static List<ImmutableNode>
AbstractYAMLBasedConfiguration.constructHierarchy
(String key, Object elem) Creates a part of the hierarchical nodes structure of the resulting configuration.private List<HierarchicalConfiguration<ImmutableNode>>
BaseHierarchicalConfiguration.createConnectedSubConfigurations
(InMemoryNodeModelSupport parentModelSupport, Collection<NodeSelector> selectors) Creates a list of connected sub configurations based on a passed in list of node selectors.private static NodeModel<ImmutableNode>
BaseHierarchicalConfiguration.createNodeModel
(HierarchicalConfiguration<ImmutableNode> c) Creates theNodeModel
for this configuration based on a passed in source configuration.private List<ImmutableNode>
BaseHierarchicalConfiguration.fetchFilteredNodeResults
(String key) Executes a query on the specified key and filters it for node results.INIConfiguration.GlobalSectionNodeModel.getNodeHandler()
private static List<ImmutableNode>
AbstractYAMLBasedConfiguration.parseCollection
(Collection<Object> col, String key) Parses a collection structure.private static List<ImmutableNode>
Parses a map structure.Methods in org.apache.commons.configuration2 with parameters of type ImmutableNodeModifier and TypeMethodDescriptionstatic void
XMLListReference.assignListReference
(Map<ImmutableNode, Object> refs, ImmutableNode node, Element elem) Assigns an instance of this class as reference to the specified configuration node.AbstractYAMLBasedConfiguration.constructMap
(ImmutableNode node) Constructs a YAML map, i.e.private BaseHierarchicalConfiguration
BaseHierarchicalConfiguration.createIndependentSubConfigurationForNode
(ImmutableNode node) Returns an initialized sub configuration for this configuration that is based on anotherBaseHierarchicalConfiguration
.private Set<Configuration>
CombinedConfiguration.findSourceConfigurations
(ImmutableNode node) Determines the configurations to which the specified node belongs.private Element
XMLConfiguration.XMLBuilderVisitor.getElement
(ImmutableNode node, ReferenceNodeHandler refHandler) Helper method for accessing the element of the specified node.private void
BaseHierarchicalConfiguration.InterpolatedVisitor.handleLeafNode
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Handles interpolation for a node with no children.private static boolean
XMLListReference.hasListReference
(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified node has an associated list reference.protected abstract void
BaseHierarchicalConfiguration.BuilderVisitor.insert
(ImmutableNode newNode, ImmutableNode parent, ImmutableNode sibling1, ImmutableNode sibling2, ReferenceNodeHandler refHandler) Inserts a new node into the structure constructed by this builder.protected void
XMLConfiguration.XMLBuilderVisitor.insert
(ImmutableNode newNode, ImmutableNode parent, ImmutableNode sibling1, ImmutableNode sibling2, ReferenceNodeHandler refHandler) Inserts a new node into the structure constructed by this builder.private void
BaseHierarchicalConfiguration.BuilderVisitor.insertNewChildNodes
(ImmutableNode node, ReferenceNodeHandler refHandler) Inserts new children that have been added to the specified node.BaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a map with interpolated attributes of the passed in node.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes
(ImmutableNode node, NodeHandler<ImmutableNode> handler, Map<String, Object> interpolatedAttributes) Populates a map with interpolated attributes of the passed in node.static boolean
XMLListReference.isFirstListItem
(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified node is the first node of a list.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor.isLeafNode
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a flag whether the given node is a leaf.static boolean
XMLListReference.isListNode
(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified configuration node has to be taken into account for list handling.private static boolean
INIConfiguration.isSectionNode
(ImmutableNode node) Checks whether the specified configuration node represents a section.static String
XMLListReference.listValue
(ImmutableNode node, ReferenceNodeHandler nodeHandler, ListDelimiterHandler delimiterHandler) Constructs the concatenated string value of all items comprising the list the specified node belongs to.private static boolean
XMLListReference.nameEquals
(ImmutableNode n1, ImmutableNode n2) Helper method for comparing the names of two nodes.private ImmutableNode
CombinedConfiguration.ConfigData.prependAtPath
(ImmutableNode node) Prepends the at path to the given node.private void
CombinedConfiguration.ConfigData.prependAtPathComponent
(ImmutableNode.Builder builder, String currentComponent, Iterator<String> components, ImmutableNode orgRoot) Handles a single component of the at path.private void
BaseHierarchicalConfiguration.InterpolatedVisitor.storeInterpolatedNode
(ImmutableNode node) Stores a processed node.protected abstract void
BaseHierarchicalConfiguration.BuilderVisitor.update
(ImmutableNode node, Object reference, ReferenceNodeHandler refHandler) Updates a node that already existed in the original hierarchy.protected void
XMLConfiguration.XMLBuilderVisitor.update
(ImmutableNode node, Object reference, ReferenceNodeHandler refHandler) Updates a node that already existed in the original hierarchy.private static void
XMLConfiguration.XMLBuilderVisitor.updateAttributes
(ImmutableNode node, Element elem) Helper method for updating the values of all attributes of the specified node.private void
XMLConfiguration.XMLBuilderVisitor.updateElement
(ImmutableNode node, ReferenceNodeHandler refHandler, Object value) private void
BaseHierarchicalConfiguration.BuilderVisitor.updateNode
(ImmutableNode node, ReferenceNodeHandler refHandler) Updates the value of a node.void
BaseHierarchicalConfiguration.InterpolatedVisitor.visitAfterChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) void
BaseHierarchicalConfiguration.BuilderVisitor.visitBeforeChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) void
BaseHierarchicalConfiguration.InterpolatedVisitor.visitBeforeChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Method parameters in org.apache.commons.configuration2 with type arguments of type ImmutableNodeModifier and TypeMethodDescriptionprotected void
DynamicCombinedConfiguration.addNodesInternal
(String key, Collection<? extends ImmutableNode> nodes) protected void
PatternSubtreeConfigurationWrapper.addNodesInternal
(String key, Collection<? extends ImmutableNode> nodes) static void
XMLListReference.assignListReference
(Map<ImmutableNode, Object> refs, ImmutableNode node, Element elem) Assigns an instance of this class as reference to the specified configuration node.XMLConfiguration.constructHierarchy
(ImmutableNode.Builder node, org.apache.commons.lang3.mutable.MutableObject<String> refValue, Element element, Map<ImmutableNode, Object> elemRefs, boolean trim, int level) Helper method for building the internal storage hierarchy.private static NodeModel<ImmutableNode>
BaseHierarchicalConfiguration.createNodeModel
(HierarchicalConfiguration<ImmutableNode> c) Creates theNodeModel
for this configuration based on a passed in source configuration.private ImmutableNode
BaseHierarchicalConfiguration.createSubsetRootNode
(Collection<QueryResult<ImmutableNode>> results) Creates a root node for a subset configuration based on the passed in query results.private void
BaseHierarchicalConfiguration.InterpolatedVisitor.handleLeafNode
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Handles interpolation for a node with no children.BaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a map with interpolated attributes of the passed in node.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes
(ImmutableNode node, NodeHandler<ImmutableNode> handler, Map<String, Object> interpolatedAttributes) Populates a map with interpolated attributes of the passed in node.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor.isLeafNode
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a flag whether the given node is a leaf.private static ImmutableNode
BaseHierarchicalConfiguration.obtainRootNode
(HierarchicalConfiguration<ImmutableNode> c) Obtains the root node from a configuration whose data is to be copied.void
BaseHierarchicalConfiguration.InterpolatedVisitor.visitAfterChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) void
BaseHierarchicalConfiguration.BuilderVisitor.visitBeforeChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) void
BaseHierarchicalConfiguration.InterpolatedVisitor.visitBeforeChildren
(ImmutableNode node, NodeHandler<ImmutableNode> handler) Constructor parameters in org.apache.commons.configuration2 with type arguments of type ImmutableNodeModifierConstructorDescriptionprotected
Creates a new instance ofAbstractYAMLBasedConfiguration
as a copy of the specified configuration.Creates a new instance ofBaseHierarchicalConfiguration
and copies all data contained in the specified configuration into the new one.protected
Creates a new instance ofBaseHierarchicalConfiguration
and initializes it with the givenNodeModel
.Creates a new instance ofINIConfiguration
with the content of the specifiedHierarchicalConfiguration
.Creates a new instance ofJSONConfiguration
as a copy of the specified configuration.ConstructorCreates a new instance ofXMLConfiguration
and copies the content of the passed in configuration into this object.Creates a new instance ofYAMLConfiguration
as a copy of the specified configuration. -
Uses of ImmutableNode in org.apache.commons.configuration2.plist
Methods in org.apache.commons.configuration2.plist that return ImmutableNodeModifier and TypeMethodDescriptionXMLPropertyListConfiguration.PListNodeBuilder.createNode()
Creates the configuration node defined by this builder.final ImmutableNode
PropertyListParser.Property()
Methods in org.apache.commons.configuration2.plist with parameters of type ImmutableNodeModifier and TypeMethodDescriptionprivate void
PropertyListConfiguration.printNode
(PrintWriter out, int indentLevel, ImmutableNode node, NodeHandler<ImmutableNode> handler) Append a node to the writer, indented according to a specific level.private void
XMLPropertyListConfiguration.printNode
(PrintWriter out, int indentLevel, ImmutableNode node) Append a node to the writer, indented according to a specific level.Method parameters in org.apache.commons.configuration2.plist with type arguments of type ImmutableNodeModifier and TypeMethodDescriptionprivate void
PropertyListConfiguration.printNode
(PrintWriter out, int indentLevel, ImmutableNode node, NodeHandler<ImmutableNode> handler) Append a node to the writer, indented according to a specific level.Constructors in org.apache.commons.configuration2.plist with parameters of type ImmutableNodeModifierConstructorDescription(package private)
Creates a new instance ofPropertyListConfiguration
with the given root node.(package private)
Creates a new instance ofXMLPropertyConfiguration
with the given root node.Constructor parameters in org.apache.commons.configuration2.plist with type arguments of type ImmutableNodeModifierConstructorDescriptionCreates a new instance ofPropertyListConfiguration
and copies the content of the specified configuration into this object.XMLPropertyListConfiguration
(HierarchicalConfiguration<ImmutableNode> configuration) Creates a new instance ofXMLPropertyListConfiguration
and copies the content of the specified configuration into this object. -
Uses of ImmutableNode in org.apache.commons.configuration2.tree
Fields in org.apache.commons.configuration2.tree declared as ImmutableNodeModifier and TypeFieldDescriptionprivate ImmutableNode
ModelTransaction.newRoot
The new root node.private final ImmutableNode
NodeTracker.TrackedNodeData.node
The current instance of the tracked node.private final ImmutableNode
ModelTransaction.queryRoot
The root node for query operations.private final ImmutableNode
TreeData.root
The root node of the tree.private final ImmutableNode
TrackedNodeHandler.rootNode
The root node.Fields in org.apache.commons.configuration2.tree with type parameters of type ImmutableNodeModifier and TypeFieldDescriptionprivate final Collection<ImmutableNode>
ModelTransaction.addedNodes
A collection with nodes which have been added.private Collection<ImmutableNode>
ModelTransaction.Operations.addedNodesInOperation
A collection with nodes added by an operation.private final Collection<ImmutableNode>
ModelTransaction.allRemovedNodes
Stores all nodes which have been removed in this transaction (not only the root nodes of removed trees).private List<ImmutableNode>
ImmutableNode.Builder.children
A list for the children of the new node.private final List<ImmutableNode>
ImmutableNode.children
A collection with the child nodes of this node.private final List<ImmutableNode>
ImmutableNode.Builder.directChildren
The direct list of children of the new node.private static final NodeHandler<ImmutableNode>
InMemoryNodeModel.DUMMY_HANDLER
A dummy node handler instance used in operations which require only a limited functionality.protected static final NodeHandler<ImmutableNode>
NodeCombiner.HANDLER
A default handler object for immutable nodes.private final Map<ImmutableNode,
ImmutableNode> TreeData.inverseReplacementMapping
An inverse replacement mapping.private final Map<ImmutableNode,
ImmutableNode> TreeData.inverseReplacementMapping
An inverse replacement mapping.private Collection<ImmutableNode>
ModelTransaction.ChildrenUpdateOperation.newNodes
A collection with new nodes to be added.private Map<ImmutableNode,
Object> ModelTransaction.newReferences
A map with reference objects to be added during this transaction.private Set<ImmutableNode>
ModelTransaction.ChildrenUpdateOperation.nodesToRemove
A collection with nodes to be removed.private Map<ImmutableNode,
ImmutableNode> ModelTransaction.ChildrenUpdateOperation.nodesToReplace
A map with nodes to be replaced by others.private Map<ImmutableNode,
ImmutableNode> ModelTransaction.ChildrenUpdateOperation.nodesToReplace
A map with nodes to be replaced by others.private final SortedMap<Integer,
Map<ImmutableNode, ModelTransaction.Operations>> ModelTransaction.operations
Stores the operations to be executed during this transaction.private final NodeHandler<ImmutableNode>
TrackedNodeHandler.parentHandler
The handler for querying the parent mapping.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.parentMapping
A new parent mapping.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.parentMapping
A new parent mapping.private final Map<ImmutableNode,
ImmutableNode> TreeData.parentMapping
A map that associates the parent node to each node.private final Map<ImmutableNode,
ImmutableNode> TreeData.parentMapping
A map that associates the parent node to each node.private final Map<ImmutableNode,
Object> ReferenceTracker.references
A map with reference data.private final Collection<ImmutableNode>
ModelTransaction.removedNodes
A collection with nodes which have been removed.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.replacedNodes
The nodes replaced in this transaction.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.replacedNodes
The nodes replaced in this transaction.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.replacementMapping
A new replacement mapping.private final Map<ImmutableNode,
ImmutableNode> ModelTransaction.replacementMapping
A new replacement mapping.private final Map<ImmutableNode,
ImmutableNode> TreeData.replacementMapping
Stores information about nodes which have been replaced by manipulations of the structure.private final Map<ImmutableNode,
ImmutableNode> TreeData.replacementMapping
Stores information about nodes which have been replaced by manipulations of the structure.private final NodeKeyResolver<ImmutableNode>
ModelTransaction.resolver
TheNodeKeyResolver
to be used for this transaction.Methods in org.apache.commons.configuration2.tree that return ImmutableNodeModifier and TypeMethodDescriptionImmutableNode.addChild
(ImmutableNode child) Creates a newImmutableNode
instance which is a copy of this object, but has the given child node added.protected ImmutableNode
ModelTransaction.AddAttributeOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.AddAttributesOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChangeNodeNameOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChangeNodeValueOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChildrenUpdateOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected abstract ImmutableNode
ModelTransaction.Operation.apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected ImmutableNode
ModelTransaction.RemoveAttributeOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
MergeCombiner.canCombine
(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.protected ImmutableNode
OverrideCombiner.canCombine
(ImmutableNode node1, ImmutableNode node2, ImmutableNode child) Tests if a child node of the second node can be combined with the given child node of the first node.MergeCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the given nodes to a new union node.abstract ImmutableNode
NodeCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the hierarchies represented by the given root nodes.OverrideCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Constructs an override combination for the passed in node structures.UnionCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the given nodes to a new union node.ImmutableNode.Builder.create()
Creates a newImmutableNode
instance based on the properties set for this builder.private static ImmutableNode
NodeTracker.createEmptyTrackedNode
(NodeTracker.TrackedNodeData data) Creates an empty node derived from the passed inTrackedNodeData
object.private static ImmutableNode
InMemoryNodeModel.createNodeOnPath
(Iterator<String> it, Collection<ImmutableNode> newNodes) Recursive helper method for creating a path node for an add operation.private static ImmutableNode
InMemoryNodeModel.createNodeToAddWithPath
(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddData
instance and all new child nodes.private ImmutableNode
ImmutableNode.createWithBasicProperties
(ImmutableNode.Builder builder) Initializes the given builder with basic properties (node name and value) and returns the newly created node.private ImmutableNode
ImmutableNode.createWithNewAttributes
(Map<String, Object> newAttrs) Creates a newImmutableNode
instance with the same properties as this object, but with the given new attributes.protected ImmutableNode
UnionCombiner.findCombineNode
(ImmutableNode node1, ImmutableNode node2, ImmutableNode child) Tries to find a child node of the second source node, with which a child of the first source node can be combined.AbstractImmutableNodeHandler.getChild
(ImmutableNode node, int index) InMemoryNodeModel.getInMemoryRepresentation()
Gets a representation of the data stored in this model in form of a nodes hierarchy ofImmutableNode
objects.NodeModel.getInMemoryRepresentation()
Gets a representation of the data stored in this model in form of a nodes hierarchy ofImmutableNode
objects.TrackedNodeModel.getInMemoryRepresentation()
Gets a representation of the data stored in this model in form of a nodes hierarchy ofImmutableNode
objects.NodeTracker.TrackedNodeData.getNode()
Gets the tracked node.(package private) ImmutableNode
ModelTransaction.getParent
(ImmutableNode node) Gets the parent node of the given node.TrackedNodeHandler.getParent
(ImmutableNode node) Gets the parent of the specified node.TreeData.getParent
(ImmutableNode node) Gets the parent node of the specified node.ModelTransaction.getQueryRoot()
Gets the root node to be used within queries.InMemoryNodeModel.getRootNode()
Gets the root node of this mode.TrackedNodeHandler.getRootNode()
Gets the root node of the underlying hierarchy.TreeData.getRootNode()
InMemoryNodeModel.getTrackedNode
(NodeSelector selector) Gets the currentImmutableNode
instance associated with the givenNodeSelector
.NodeTracker.getTrackedNode
(NodeSelector selector) Gets the currentImmutableNode
instance associated with the given selector.private static ImmutableNode
TreeData.handleReplacements
(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private static ImmutableNode
InMemoryNodeModel.initialRootNode
(ImmutableNode providedRoot) Determines the initial root node of this model.private ImmutableNode
ModelTransaction.initQueryRoot
(TreeData treeData, NodeSelector selector) Initializes the root node to be used within queries.ImmutableNode.removeAttribute
(String name) Returns a newImmutableNode
instance which is a copy of this object, but with the specified attribute removed.ImmutableNode.removeChild
(ImmutableNode child) Returns a newImmutableNode
instance which is a copy of this object, but with the given child node removed.ImmutableNode.replaceChild
(ImmutableNode oldChild, ImmutableNode newChild) Returns a newImmutableNode
instance which is a copy of this object, but with the given child replaced by the new one.ImmutableNode.replaceChildren
(Collection<ImmutableNode> newChildren) Returns a newImmutableNode
instance which is a copy of this object, but with the children replaced by the ones in the passed in collection.NodeSelector.select
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelector
on the specified root node.ImmutableNode.setAttribute
(String name, Object value) Returns a newImmutableNode
instance which is a copy of this object, but with the specified attribute set to the given value.ImmutableNode.setAttributes
(Map<String, ?> newAttributes) Returns a newImmutableNode
instance which is a copy of this object, but with all attributes added defined by the given map.Creates a newImmutableNode
instance which is a copy of this object with the name changed to the passed in value.Creates a newImmutableNode
instance which is a copy of this object with the value changed to the passed in value.Methods in org.apache.commons.configuration2.tree that return types with arguments of type ImmutableNodeModifier and TypeMethodDescriptionInMemoryNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) Removes the sub trees defined by the given key from this model.InMemoryNodeModel.clearTree
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a whole sub tree using a tracked node as root node.TrackedNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) TreeData.copyParentMapping()
Returns a copy of the mapping from nodes to their parents.TreeData.copyParentMapping()
Returns a copy of the mapping from nodes to their parents.TreeData.copyReplacementMapping()
Returns a copy of the map storing the replaced nodes.TreeData.copyReplacementMapping()
Returns a copy of the map storing the replaced nodes.(package private) List<ImmutableNode>
ImmutableNode.Builder.createChildren()
Creates a list with the children of the newly created node.private Map<ImmutableNode,
ImmutableNode> TreeData.createInverseMapping
(Map<ImmutableNode, ImmutableNode> replacements) Creates the inverse replacement mapping.private Map<ImmutableNode,
ImmutableNode> TreeData.createInverseMapping
(Map<ImmutableNode, ImmutableNode> replacements) Creates the inverse replacement mapping.private static NodeHandler<ImmutableNode>
NodeCombiner.createNodeHandler()
Creates a node handler object for immutable nodes which can be used by sub classes to perform advanced operations on nodes.private static Collection<ImmutableNode>
InMemoryNodeModel.createNodesToAdd
(String newNodeName, Iterable<?> values) Creates a collection with new nodes with a given name and a value from a given collection.private Map<ImmutableNode,
ImmutableNode> InMemoryNodeModel.createParentMapping
(ImmutableNode root) Creates the mapping to parent nodes for the nodes structured represented by the passed in root node.private Map<ImmutableNode,
ImmutableNode> InMemoryNodeModel.createParentMapping
(ImmutableNode root) Creates the mapping to parent nodes for the nodes structured represented by the passed in root node.private Map<ImmutableNode,
Object> ModelTransaction.fetchReferenceMap()
Returns the map with new reference objects.private Set<ImmutableNode>
ModelTransaction.ChildrenUpdateOperation.fetchRemovalSet()
Returns a set with nodes to be removed.private Map<ImmutableNode,
ImmutableNode> ModelTransaction.ChildrenUpdateOperation.fetchReplacementMap()
Obtains the map with replacement nodes.private Map<ImmutableNode,
ImmutableNode> ModelTransaction.ChildrenUpdateOperation.fetchReplacementMap()
Obtains the map with replacement nodes.private static Collection<? extends ImmutableNode>
ImmutableNode.Builder.filterNull
(Collection<? extends ImmutableNode> children) Filters null entries from the passed in collection with child nodes.AbstractImmutableNodeHandler.getChildren
(ImmutableNode node) AbstractImmutableNodeHandler.getChildren
(ImmutableNode node, String name) Gets an unmodifiable list of all children of the specified node with the given name.ImmutableNode.getChildren()
Gets a list with the children of this node.ImmutableNode.getChildren
(String name) Returns a list with the children of this node.<C> List<ImmutableNode>
AbstractImmutableNodeHandler.getMatchingChildren
(ImmutableNode node, NodeMatcher<C> matcher, C criterion) Gets an unmodifiable list of all children of the specified node which are matched by the passed inNodeMatcher
against the provided criterion.InMemoryNodeModel.getNodeHandler()
Gets aNodeHandler
for dealing with the nodes managed by this model.TrackedNodeModel.getNodeHandler()
TrackedNodeHandler.getParentHandler()
Gets the parent handler.ModelTransaction.getResolver()
Gets theNodeKeyResolver
used by this transaction.InMemoryNodeModel.getTrackedNodeHandler
(NodeSelector selector) Gets aNodeHandler
for a tracked node.ImmutableNode.iterator()
ImmutableNode.stream()
Returns a sequentialStream
with this node as its source.Methods in org.apache.commons.configuration2.tree with parameters of type ImmutableNodeModifier and TypeMethodDescriptionvoid
ModelTransaction.addAddNodeOperation
(ImmutableNode parent, ImmutableNode newChild) Adds an operation for adding a new child to a given parent node.void
ModelTransaction.addAddNodesOperation
(ImmutableNode parent, Collection<? extends ImmutableNode> newNodes) Adds an operation for adding a number of new children to a given parent node.void
ModelTransaction.addAttributeOperation
(ImmutableNode target, String name, Object value) Adds an operation for adding an attribute to a target node.protected void
MergeCombiner.addAttributes
(ImmutableNode.Builder result, ImmutableNode node1, ImmutableNode node2) Handles the attributes during a combination process.protected void
OverrideCombiner.addAttributes
(ImmutableNode.Builder result, ImmutableNode node1, ImmutableNode node2) Handles the attributes during a combination process.void
ModelTransaction.addAttributesOperation
(ImmutableNode target, Map<String, Object> attributes) Adds an operation for adding multiple attributes to a target node.void
ModelTransaction.addChangeNodeNameOperation
(ImmutableNode target, String newName) Adds an operation for changing the name of a target node.void
ModelTransaction.addChangeNodeValueOperation
(ImmutableNode target, Object newValue) Adds an operation for changing the value of a target node.ImmutableNode.addChild
(ImmutableNode child) Creates a newImmutableNode
instance which is a copy of this object, but has the given child node added.ImmutableNode.Builder.addChild
(ImmutableNode c) Adds a child node to this builder.void
ModelTransaction.addClearNodeValueOperation
(ImmutableNode target) Adds an operation for clearing the value of a target node.void
ModelTransaction.ChildrenUpdateOperation.addNewNode
(ImmutableNode node) Adds a node to be added to the target of the operation.void
ModelTransaction.addNewReference
(ImmutableNode node, Object ref) Adds a new reference object for the given node.void
ModelTransaction.ChildrenUpdateOperation.addNodeToRemove
(ImmutableNode node) Adds a node for a remove operation.void
ModelTransaction.ChildrenUpdateOperation.addNodeToReplace
(ImmutableNode org, ImmutableNode replacement) Adds a node for a replacement operation.void
ModelTransaction.addRemoveAttributeOperation
(ImmutableNode target, String name) Adds an operation for removing an attribute from a target node.void
ModelTransaction.addRemoveNodeOperation
(ImmutableNode parent, ImmutableNode node) Adds an operation for removing a child node of a given node.protected ImmutableNode
ModelTransaction.AddAttributeOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.AddAttributesOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChangeNodeNameOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChangeNodeValueOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
ModelTransaction.ChildrenUpdateOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected abstract ImmutableNode
ModelTransaction.Operation.apply
(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.void
ModelTransaction.Operations.apply
(ImmutableNode target, int level) Executes all operations stored in this object on the given target node.protected ImmutableNode
ModelTransaction.RemoveAttributeOperation.apply
(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNode
MergeCombiner.canCombine
(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.protected ImmutableNode
OverrideCombiner.canCombine
(ImmutableNode node1, ImmutableNode node2, ImmutableNode child) Tests if a child node of the second node can be combined with the given child node of the first node.private static void
ImmutableNode.checkChildNode
(ImmutableNode child) Checks whether the given child node is not null.(package private) static boolean
AbstractImmutableNodeHandler.checkIfNodeDefined
(ImmutableNode node) Checks if the passed in node is defined.(package private) static boolean
InMemoryNodeModel.checkIfNodeDefined
(ImmutableNode node) Checks if the passed in node is defined.MergeCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the given nodes to a new union node.abstract ImmutableNode
NodeCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the hierarchies represented by the given root nodes.OverrideCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Constructs an override combination for the passed in node structures.UnionCombiner.combine
(ImmutableNode node1, ImmutableNode node2) Combines the given nodes to a new union node.private static TreeData
InMemoryNodeModel.createDataWithTrackedChildNode
(TreeData current, ImmutableNode parent, String childName, NodeKeyResolver<ImmutableNode> resolver, org.apache.commons.lang3.mutable.MutableObject<NodeSelector> refSelector) Creates a new data object with a tracked child node of the given parent node.private Map<ImmutableNode,
ImmutableNode> InMemoryNodeModel.createParentMapping
(ImmutableNode root) Creates the mapping to parent nodes for the nodes structured represented by the passed in root node.private TreeData
InMemoryNodeModel.createTreeData
(ImmutableNode root, TreeData current) Creates aTreeData
object for the specified root node.private TreeData
InMemoryNodeModel.createTreeDataForRootAndTracker
(ImmutableNode root, NodeTracker newTracker) Creates aTreeData
object for the specified root node andNodeTracker
.NodeTracker.TrackedNodeData.detach
(ImmutableNode newNode) Returns an instance with the detached flag set to true.private static String
InMemoryNodeModel.determineRootName
(ImmutableNode rootNode, ImmutableNode node, String rootName) Determines the name of the root node for a merge operation.private static NodeTracker.TrackedNodeData
NodeTracker.determineUpdatedTrackedNodeData
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeData
object for an update operation.(package private) ModelTransaction.Operations
ModelTransaction.fetchOperations
(ImmutableNode target, int level) Obtains theOperations
object for manipulating the specified node.protected ImmutableNode
UnionCombiner.findCombineNode
(ImmutableNode node1, ImmutableNode node2, ImmutableNode child) Tries to find a child node of the second source node, with which a child of the first source node can be combined.AbstractImmutableNodeHandler.getAttributes
(ImmutableNode node) AbstractImmutableNodeHandler.getAttributeValue
(ImmutableNode node, String name) AbstractImmutableNodeHandler.getChild
(ImmutableNode node, int index) AbstractImmutableNodeHandler.getChildren
(ImmutableNode node) AbstractImmutableNodeHandler.getChildren
(ImmutableNode node, String name) Gets an unmodifiable list of all children of the specified node with the given name.int
AbstractImmutableNodeHandler.getChildrenCount
(ImmutableNode node, String name) private void
NodeSelector.getFilteredResults
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, String key, List<ImmutableNode> nodes) Executes a query for a given key and filters the results for nodes only.<C> List<ImmutableNode>
AbstractImmutableNodeHandler.getMatchingChildren
(ImmutableNode node, NodeMatcher<C> matcher, C criterion) Gets an unmodifiable list of all children of the specified node which are matched by the passed inNodeMatcher
against the provided criterion.<C> int
AbstractImmutableNodeHandler.getMatchingChildrenCount
(ImmutableNode node, NodeMatcher<C> matcher, C criterion) (package private) ImmutableNode
ModelTransaction.getParent
(ImmutableNode node) Gets the parent node of the given node.TrackedNodeHandler.getParent
(ImmutableNode node) Gets the parent of the specified node.TreeData.getParent
(ImmutableNode node) Gets the parent node of the specified node.ReferenceNodeHandler.getReference
(ImmutableNode node) Gets the reference object associated with the specified node.ReferenceTracker.getReference
(ImmutableNode node) Gets the reference object associated with the given node.TreeData.getReference
(ImmutableNode node) Gets the reference object associated with the specified node.AbstractImmutableNodeHandler.getValue
(ImmutableNode node) private void
ModelTransaction.Operations.handleAddedNodes
(ImmutableNode node) Checks whether new nodes have been added during operation execution.private static ImmutableNode
TreeData.handleReplacements
(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.boolean
AbstractImmutableNodeHandler.hasAttributes
(ImmutableNode node) int
AbstractImmutableNodeHandler.indexOfChild
(ImmutableNode parent, ImmutableNode child) private static ImmutableNode
InMemoryNodeModel.initialRootNode
(ImmutableNode providedRoot) Determines the initial root node of this model.boolean
AbstractImmutableNodeHandler.isDefined
(ImmutableNode node) Checks whether the specified node is defined.boolean
NodeCombiner.isListNode
(ImmutableNode node) Checks if a node is a list node.private int
ModelTransaction.level
(ImmutableNode node) Determines the level of the specified node in the current hierarchy.private static boolean
MergeCombiner.matchAttributes
(Map<String, Object> attrs1, ImmutableNode node) Checks whether the attributes of the passed in node are compatible.void
InMemoryNodeModel.mergeRoot
(ImmutableNode node, String rootName, Map<ImmutableNode, ?> references, Object rootRef, NodeKeyResolver<ImmutableNode> resolver) Merges the root node of this model with the specified node.AbstractImmutableNodeHandler.nodeName
(ImmutableNode node) private static void
TreeUtils.printTree
(PrintStream stream, String indent, ImmutableNode result) static void
TreeUtils.printTree
(PrintStream stream, ImmutableNode result) Print out the data in the configuration.private void
ModelTransaction.Operations.propagateChange
(ImmutableNode target, ImmutableNode node, int level) Propagates the changes on the target node to the next level above of the hierarchy.ImmutableNode.removeChild
(ImmutableNode child) Returns a newImmutableNode
instance which is a copy of this object, but with the given child node removed.private void
ModelTransaction.removeNodeFromReplacementMapping
(ImmutableNode node) Removes the specified node completely from the replacement mapping.private void
ModelTransaction.removeNodesFromParentAndReplacementMapping
(ImmutableNode root) Removes a node and its children (recursively) from the parent and the replacement mappings.private boolean
InMemoryNodeModel.replaceActiveTrackedNode
(TreeData currentData, NodeSelector selector, ImmutableNode newNode) Replaces an active tracked node.NodeTracker.replaceAndDetachTrackedNode
(NodeSelector selector, ImmutableNode newNode) Replaces a tracked node by another one.ImmutableNode.replaceChild
(ImmutableNode oldChild, ImmutableNode newChild) Returns a newImmutableNode
instance which is a copy of this object, but with the given child replaced by the new one.private boolean
InMemoryNodeModel.replaceDetachedTrackedNode
(TreeData currentData, NodeSelector selector, ImmutableNode newNode) Replaces a tracked node if it is already detached.void
InMemoryNodeModel.replaceRoot
(ImmutableNode newRoot, NodeKeyResolver<ImmutableNode> resolver) Replaces the root node of this model.void
InMemoryNodeModel.replaceTrackedNode
(NodeSelector selector, ImmutableNode newNode) Replaces a tracked node by another node.NodeSelector.select
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelector
on the specified root node.void
InMemoryNodeModel.setRootNode
(ImmutableNode newRoot) Sets a new root node for this model.void
TrackedNodeModel.setRootNode
(ImmutableNode newRoot) private static NodeTracker.TrackedNodeData
NodeTracker.trackDataForAddedObserver
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeData
object for a newly added observer for the specified node selector.NodeTracker.trackNode
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Adds a node to be tracked.NodeTracker.update
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Updates tracking information after the node structure has been changed.private static TreeData
InMemoryNodeModel.updateDataWithNewTrackedNode
(TreeData current, ImmutableNode node, NodeKeyResolver<ImmutableNode> resolver, org.apache.commons.lang3.mutable.MutableObject<NodeSelector> refSelector) Adds a tracked node that has already been resolved to the specified data object.NodeTracker.TrackedNodeData.updateNode
(ImmutableNode newNode) Updates the node reference.(package private) static void
InMemoryNodeModel.updateParentMapping
(Map<ImmutableNode, ImmutableNode> parents, ImmutableNode root) Updates the mapping from nodes to their parents for the passed in hierarchy of nodes.Method parameters in org.apache.commons.configuration2.tree with type arguments of type ImmutableNodeModifier and TypeMethodDescriptionvoid
ModelTransaction.addAddNodesOperation
(ImmutableNode parent, Collection<? extends ImmutableNode> newNodes) Adds an operation for adding a number of new children to a given parent node.private static void
InMemoryNodeModel.addAttributeProperty
(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Iterable<?> values) Handles an add property operation if the property to be added is an attribute.ImmutableNode.Builder.addChildren
(Collection<? extends ImmutableNode> children) Adds multiple child nodes to this builder.void
ModelTransaction.ChildrenUpdateOperation.addNewNodes
(Collection<? extends ImmutableNode> nodes) Adds a collection of nodes to be added to the target of the operation.void
ModelTransaction.addNewReferences
(Map<ImmutableNode, ?> refs) Adds a map with new reference objects.private static void
InMemoryNodeModel.addNodeProperty
(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Iterable<?> values) Handles an add property operation if the property to be added is a node.void
InMemoryNodeModel.addNodes
(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) void
InMemoryNodeModel.addNodes
(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) void
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.addNodes
(String key, NodeSelector selector, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) Adds new nodes using a tracked node as root node.void
TrackedNodeModel.addNodes
(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) void
TrackedNodeModel.addNodes
(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) private static void
InMemoryNodeModel.addNodesByAddData
(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Initializes a transaction to add a collection of nodes as described by aNodeAddData
object.private static void
InMemoryNodeModel.addNodesByAddData
(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Initializes a transaction to add a collection of nodes as described by aNodeAddData
object.void
InMemoryNodeModel.addProperty
(String key, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) void
InMemoryNodeModel.addProperty
(String key, NodeSelector selector, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) Adds new property values using a tracked node as root node.void
TrackedNodeModel.addProperty
(String key, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) ReferenceTracker.addReferences
(Map<ImmutableNode, ?> refs) Adds all references stored in the passed in map to the managed references.protected ImmutableNode
MergeCombiner.canCombine
(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.void
InMemoryNodeModel.clear
(NodeKeyResolver<ImmutableNode> resolver) Removes all data from this model.void
TrackedNodeModel.clear
(NodeKeyResolver<ImmutableNode> resolver) Removes all data from this model.void
InMemoryNodeModel.clearProperty
(String key, NodeKeyResolver<ImmutableNode> resolver) Clears the value of a property.void
InMemoryNodeModel.clearProperty
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a property using a tracked node as root node.void
TrackedNodeModel.clearProperty
(String key, NodeKeyResolver<ImmutableNode> resolver) InMemoryNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) Removes the sub trees defined by the given key from this model.InMemoryNodeModel.clearTree
(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a whole sub tree using a tracked node as root node.TrackedNodeModel.clearTree
(String key, NodeKeyResolver<ImmutableNode> resolver) private static TreeData
InMemoryNodeModel.createDataWithTrackedChildNode
(TreeData current, ImmutableNode parent, String childName, NodeKeyResolver<ImmutableNode> resolver, org.apache.commons.lang3.mutable.MutableObject<NodeSelector> refSelector) Creates a new data object with a tracked child node of the given parent node.private Map<ImmutableNode,
ImmutableNode> TreeData.createInverseMapping
(Map<ImmutableNode, ImmutableNode> replacements) Creates the inverse replacement mapping.private Map<ImmutableNode,
ImmutableNode> TreeData.createInverseMapping
(Map<ImmutableNode, ImmutableNode> replacements) Creates the inverse replacement mapping.private static ImmutableNode
InMemoryNodeModel.createNodeOnPath
(Iterator<String> it, Collection<ImmutableNode> newNodes) Recursive helper method for creating a path node for an add operation.private static ImmutableNode
InMemoryNodeModel.createNodeToAddWithPath
(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddData
instance and all new child nodes.private static ImmutableNode
InMemoryNodeModel.createNodeToAddWithPath
(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddData
instance and all new child nodes.private static TreeData
InMemoryNodeModel.createSelectorsForTrackedNodes
(org.apache.commons.lang3.mutable.Mutable<Collection<NodeSelector>> refSelectors, List<ImmutableNode> nodes, TreeData current, NodeKeyResolver<ImmutableNode> resolver) Creates tracked node entries for the specified nodes and creates the corresponding selectors.private static TreeData
InMemoryNodeModel.createSelectorsForTrackedNodes
(org.apache.commons.lang3.mutable.Mutable<Collection<NodeSelector>> refSelectors, List<ImmutableNode> nodes, TreeData current, NodeKeyResolver<ImmutableNode> resolver) Creates tracked node entries for the specified nodes and creates the corresponding selectors.private static NodeTracker.TrackedNodeData
NodeTracker.determineUpdatedTrackedNodeData
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeData
object for an update operation.private static NodeTracker.TrackedNodeData
NodeTracker.determineUpdatedTrackedNodeData
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeData
object for an update operation.private boolean
InMemoryNodeModel.executeTransactionOnCurrentStructure
(InMemoryNodeModel.TransactionInitializer txInit, NodeSelector selector, TreeData currentData, NodeKeyResolver<ImmutableNode> resolver) Executes a transaction on the current data of this model.private boolean
InMemoryNodeModel.executeTransactionOnDetachedTrackedNode
(InMemoryNodeModel.TransactionInitializer txInit, NodeSelector selector, TreeData currentData, NodeKeyResolver<ImmutableNode> resolver) Tries to execute a transaction on the model of a detached tracked node.private static Collection<? extends ImmutableNode>
ImmutableNode.Builder.filterNull
(Collection<? extends ImmutableNode> children) Filters null entries from the passed in collection with child nodes.private void
NodeSelector.getFilteredResults
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, String key, List<ImmutableNode> nodes) Executes a query for a given key and filters the results for nodes only.private void
NodeSelector.getFilteredResults
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, String key, List<ImmutableNode> nodes) Executes a query for a given key and filters the results for nodes only.private void
NodeSelector.getFilteredResults
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, String key, List<ImmutableNode> nodes) Executes a query for a given key and filters the results for nodes only.private static ImmutableNode
TreeData.handleReplacements
(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private static ImmutableNode
TreeData.handleReplacements
(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private void
InMemoryNodeModel.initializeAddTransaction
(ModelTransaction tx, String key, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) Initializes a transaction for an add operation.private static boolean
InMemoryNodeModel.initializeClearTransaction
(ModelTransaction tx, Collection<QueryResult<ImmutableNode>> results) Initializes a transaction to clear the values of a property based on the passed in collection of affected results.private static boolean
InMemoryNodeModel.initializeUpdateTransaction
(ModelTransaction tx, Map<QueryResult<ImmutableNode>, Object> changedValues) Initializes a transaction to change the values of some query results based on the passed in map.void
InMemoryNodeModel.mergeRoot
(ImmutableNode node, String rootName, Map<ImmutableNode, ?> references, Object rootRef, NodeKeyResolver<ImmutableNode> resolver) Merges the root node of this model with the specified node.void
InMemoryNodeModel.mergeRoot
(ImmutableNode node, String rootName, Map<ImmutableNode, ?> references, Object rootRef, NodeKeyResolver<ImmutableNode> resolver) Merges the root node of this model with the specified node.void
ModelTransaction.Operations.newNodesAdded
(Collection<ImmutableNode> newNodes) Notifies this object that new nodes have been added by a sub operation.ImmutableNode.replaceChildren
(Collection<ImmutableNode> newChildren) Returns a newImmutableNode
instance which is a copy of this object, but with the children replaced by the ones in the passed in collection.void
InMemoryNodeModel.replaceRoot
(ImmutableNode newRoot, NodeKeyResolver<ImmutableNode> resolver) Replaces the root node of this model.NodeSelector.select
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelector
on the specified root node.NodeSelector.select
(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelector
on the specified root node.InMemoryNodeModel.selectAndTrackNodes
(String key, NodeKeyResolver<ImmutableNode> resolver) Allows tracking all nodes selected by a key.void
InMemoryNodeModel.setProperty
(String key, Object value, NodeKeyResolver<ImmutableNode> resolver) 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
TrackedNodeModel.setProperty
(String key, Object value, NodeKeyResolver<ImmutableNode> resolver) InMemoryNodeModel.trackChildNodes
(String key, NodeKeyResolver<ImmutableNode> resolver) Tracks all nodes which are children of the node selected by the passed in key.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.private static NodeTracker.TrackedNodeData
NodeTracker.trackDataForAddedObserver
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeData
object for a newly added observer for the specified node selector.private static NodeTracker.TrackedNodeData
NodeTracker.trackDataForAddedObserver
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeData
object for a newly added observer for the specified node selector.void
InMemoryNodeModel.trackNode
(NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Adds a node to be tracked.NodeTracker.trackNode
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Adds a node to be tracked.NodeTracker.trackNode
(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Adds a node to be tracked.NodeTracker.update
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Updates tracking information after the node structure has been changed.NodeTracker.update
(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Updates tracking information after the node structure has been changed.private static TreeData
InMemoryNodeModel.updateDataWithNewTrackedNode
(TreeData current, ImmutableNode node, NodeKeyResolver<ImmutableNode> resolver, org.apache.commons.lang3.mutable.MutableObject<NodeSelector> refSelector) Adds a tracked node that has already been resolved to the specified data object.private void
InMemoryNodeModel.updateModel
(InMemoryNodeModel.TransactionInitializer txInit, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Performs a non-blocking, thread-safe update of this model based on a transaction initialized by the passed in initializer.(package private) static void
InMemoryNodeModel.updateParentMapping
(Map<ImmutableNode, ImmutableNode> parents, ImmutableNode root) Updates the mapping from nodes to their parents for the passed in hierarchy of nodes.(package private) static void
InMemoryNodeModel.updateParentMapping
(Map<ImmutableNode, ImmutableNode> parents, ImmutableNode root) Updates the mapping from nodes to their parents for the passed in hierarchy of nodes.ReferenceTracker.updateReferences
(Map<ImmutableNode, ImmutableNode> replacedNodes, Collection<ImmutableNode> removedNodes) Updates the references managed by this object at the end of a model transaction.ReferenceTracker.updateReferences
(Map<ImmutableNode, ImmutableNode> replacedNodes, Collection<ImmutableNode> removedNodes) Updates the references managed by this object at the end of a model transaction.ReferenceTracker.updateReferences
(Map<ImmutableNode, ImmutableNode> replacedNodes, Collection<ImmutableNode> removedNodes) Updates the references managed by this object at the end of a model transaction.Constructors in org.apache.commons.configuration2.tree with parameters of type ImmutableNodeModifierConstructorDescriptionCreates a new instance ofInMemoryNodeModel
and initializes it from the given root node.Creates a new instance ofTrackedNodeData
and initializes it with the current reference to the tracked node.private
TrackedNodeData
(ImmutableNode nd, int obsCount, InMemoryNodeModel detachedNodeModel) Creates a new instance ofTrackedNodeData
and initializes its properties.TrackedNodeHandler
(ImmutableNode root, NodeHandler<ImmutableNode> handler) Creates a new instance ofTrackedNodeHandler
and initializes it with all required information.TreeData
(ImmutableNode root, Map<ImmutableNode, ImmutableNode> parentMapping, Map<ImmutableNode, ImmutableNode> replacements, NodeTracker tracker, ReferenceTracker refTracker) Creates a new instance ofTreeData
and initializes it with all data to be stored.Constructor parameters in org.apache.commons.configuration2.tree with type arguments of type ImmutableNodeModifierConstructorDescriptionprivate
Creates a new instance ofBuilder
and initializes the children and attributes of the new node.ModelTransaction
(TreeData treeData, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Creates a new instance ofModelTransaction
for the current tree data.private
ReferenceTracker
(Map<ImmutableNode, Object> refs, List<Object> removedRefs) Creates a new instance ofReferenceTracker
and sets the data to be managed.TrackedNodeHandler
(ImmutableNode root, NodeHandler<ImmutableNode> handler) Creates a new instance ofTrackedNodeHandler
and initializes it with all required information.TreeData
(ImmutableNode root, Map<ImmutableNode, ImmutableNode> parentMapping, Map<ImmutableNode, ImmutableNode> replacements, NodeTracker tracker, ReferenceTracker refTracker) Creates a new instance ofTreeData
and initializes it with all data to be stored.TreeData
(ImmutableNode root, Map<ImmutableNode, ImmutableNode> parentMapping, Map<ImmutableNode, ImmutableNode> replacements, NodeTracker tracker, ReferenceTracker refTracker) Creates a new instance ofTreeData
and initializes it with all data to be stored.