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 ImmutableNodeCombinedConfiguration.EMPTY_ROOTConstant for a root node for an empty configuration.private ImmutableNodeBaseHierarchicalConfiguration.InterpolatedVisitor.interpolatedRootThe resulting root node.private ImmutableNodeCombinedConfiguration.ConfigData.rootNodeStores 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.configThe wrapped configurationprivate final Map<ImmutableNode, Element> XMLConfiguration.XMLBuilderVisitor.newElementsA mapping for the references for new nodes.Methods in org.apache.commons.configuration2 that return ImmutableNodeModifier and TypeMethodDescriptionprivate ImmutableNodeCombinedConfiguration.constructCombinedNode()Creates the root node of this combined configuration.private ImmutableNodeXMLConfiguration.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 ImmutableNodeINIConfiguration.createNewRootNode(ImmutableNode.Builder rootBuilder, Map<String, ImmutableNode.Builder> sectionBuilders) Creates a new root node from the builders constructed while reading the configuration file.private ImmutableNodeBaseHierarchicalConfiguration.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 ImmutableNodeCombinedConfiguration.ConfigData.getRootNodeOfConfiguration()Obtains the root node of the wrapped configuration.CombinedConfiguration.ConfigData.getTransformedRoot()Gets the transformed root node of the stored configuration.private static ImmutableNodeBaseHierarchicalConfiguration.obtainRootNode(HierarchicalConfiguration<ImmutableNode> c) Obtains the root node from a configuration whose data is to be copied.private ImmutableNodeCombinedConfiguration.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 thesupportUpdatesflag.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 thesupportUpdatesflag.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 theNodeModelfor 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 voidXMLListReference.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 BaseHierarchicalConfigurationBaseHierarchicalConfiguration.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 ElementXMLConfiguration.XMLBuilderVisitor.getElement(ImmutableNode node, ReferenceNodeHandler refHandler) Helper method for accessing the element of the specified node.private voidBaseHierarchicalConfiguration.InterpolatedVisitor.handleLeafNode(ImmutableNode node, NodeHandler<ImmutableNode> handler) Handles interpolation for a node with no children.private static booleanXMLListReference.hasListReference(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified node has an associated list reference.protected abstract voidBaseHierarchicalConfiguration.BuilderVisitor.insert(ImmutableNode newNode, ImmutableNode parent, ImmutableNode sibling1, ImmutableNode sibling2, ReferenceNodeHandler refHandler) Inserts a new node into the structure constructed by this builder.protected voidXMLConfiguration.XMLBuilderVisitor.insert(ImmutableNode newNode, ImmutableNode parent, ImmutableNode sibling1, ImmutableNode sibling2, ReferenceNodeHandler refHandler) Inserts a new node into the structure constructed by this builder.private voidBaseHierarchicalConfiguration.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 booleanBaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes(ImmutableNode node, NodeHandler<ImmutableNode> handler, Map<String, Object> interpolatedAttributes) Populates a map with interpolated attributes of the passed in node.static booleanXMLListReference.isFirstListItem(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified node is the first node of a list.private booleanBaseHierarchicalConfiguration.InterpolatedVisitor.isLeafNode(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a flag whether the given node is a leaf.static booleanXMLListReference.isListNode(ImmutableNode node, ReferenceNodeHandler handler) Checks whether the specified configuration node has to be taken into account for list handling.private static booleanINIConfiguration.isSectionNode(ImmutableNode node) Checks whether the specified configuration node represents a section.static StringXMLListReference.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 booleanXMLListReference.nameEquals(ImmutableNode n1, ImmutableNode n2) Helper method for comparing the names of two nodes.private ImmutableNodeCombinedConfiguration.ConfigData.prependAtPath(ImmutableNode node) Prepends the at path to the given node.private voidCombinedConfiguration.ConfigData.prependAtPathComponent(ImmutableNode.Builder builder, String currentComponent, Iterator<String> components, ImmutableNode orgRoot) Handles a single component of the at path.private voidBaseHierarchicalConfiguration.InterpolatedVisitor.storeInterpolatedNode(ImmutableNode node) Stores a processed node.protected abstract voidBaseHierarchicalConfiguration.BuilderVisitor.update(ImmutableNode node, Object reference, ReferenceNodeHandler refHandler) Updates a node that already existed in the original hierarchy.protected voidXMLConfiguration.XMLBuilderVisitor.update(ImmutableNode node, Object reference, ReferenceNodeHandler refHandler) Updates a node that already existed in the original hierarchy.private static voidXMLConfiguration.XMLBuilderVisitor.updateAttributes(ImmutableNode node, Element elem) Helper method for updating the values of all attributes of the specified node.private voidXMLConfiguration.XMLBuilderVisitor.updateElement(ImmutableNode node, ReferenceNodeHandler refHandler, Object value) private voidBaseHierarchicalConfiguration.BuilderVisitor.updateNode(ImmutableNode node, ReferenceNodeHandler refHandler) Updates the value of a node.voidBaseHierarchicalConfiguration.InterpolatedVisitor.visitAfterChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) voidBaseHierarchicalConfiguration.BuilderVisitor.visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) voidBaseHierarchicalConfiguration.InterpolatedVisitor.visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) Method parameters in org.apache.commons.configuration2 with type arguments of type ImmutableNodeModifier and TypeMethodDescriptionprotected voidDynamicCombinedConfiguration.addNodesInternal(String key, Collection<? extends ImmutableNode> nodes) protected voidPatternSubtreeConfigurationWrapper.addNodesInternal(String key, Collection<? extends ImmutableNode> nodes) static voidXMLListReference.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 theNodeModelfor this configuration based on a passed in source configuration.private ImmutableNodeBaseHierarchicalConfiguration.createSubsetRootNode(Collection<QueryResult<ImmutableNode>> results) Creates a root node for a subset configuration based on the passed in query results.private voidBaseHierarchicalConfiguration.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 booleanBaseHierarchicalConfiguration.InterpolatedVisitor.interpolateAttributes(ImmutableNode node, NodeHandler<ImmutableNode> handler, Map<String, Object> interpolatedAttributes) Populates a map with interpolated attributes of the passed in node.private booleanBaseHierarchicalConfiguration.InterpolatedVisitor.isLeafNode(ImmutableNode node, NodeHandler<ImmutableNode> handler) Returns a flag whether the given node is a leaf.private static ImmutableNodeBaseHierarchicalConfiguration.obtainRootNode(HierarchicalConfiguration<ImmutableNode> c) Obtains the root node from a configuration whose data is to be copied.voidBaseHierarchicalConfiguration.InterpolatedVisitor.visitAfterChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) voidBaseHierarchicalConfiguration.BuilderVisitor.visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) voidBaseHierarchicalConfiguration.InterpolatedVisitor.visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler) Constructor parameters in org.apache.commons.configuration2 with type arguments of type ImmutableNodeModifierConstructorDescriptionprotectedCreates a new instance ofAbstractYAMLBasedConfigurationas a copy of the specified configuration.Creates a new instance ofBaseHierarchicalConfigurationand copies all data contained in the specified configuration into the new one.protectedCreates a new instance ofBaseHierarchicalConfigurationand initializes it with the givenNodeModel.Creates a new instance ofINIConfigurationwith the content of the specifiedHierarchicalConfiguration.Creates a new instance ofJSONConfigurationas a copy of the specified configuration.ConstructorCreates a new instance ofXMLConfigurationand copies the content of the passed in configuration into this object. -
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 ImmutableNodePropertyListParser.Property()Methods in org.apache.commons.configuration2.plist with parameters of type ImmutableNodeModifier and TypeMethodDescriptionprivate voidPropertyListConfiguration.printNode(PrintWriter out, int indentLevel, ImmutableNode node, NodeHandler<ImmutableNode> handler) Append a node to the writer, indented according to a specific level.private voidXMLPropertyListConfiguration.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 voidPropertyListConfiguration.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 ofPropertyListConfigurationwith the given root node.(package private)Creates a new instance ofXMLPropertyConfigurationwith the given root node.Constructor parameters in org.apache.commons.configuration2.plist with type arguments of type ImmutableNodeModifierConstructorDescriptionCreates a new instance ofPropertyListConfigurationand copies the content of the specified configuration into this object.XMLPropertyListConfiguration(HierarchicalConfiguration<ImmutableNode> configuration) Creates a new instance ofXMLPropertyListConfigurationand 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 ImmutableNodeModelTransaction.newRootThe new root node.private final ImmutableNodeNodeTracker.TrackedNodeData.nodeThe current instance of the tracked node.private final ImmutableNodeModelTransaction.queryRootThe root node for query operations.private final ImmutableNodeTreeData.rootThe root node of the tree.private final ImmutableNodeTrackedNodeHandler.rootNodeThe root node.Fields in org.apache.commons.configuration2.tree with type parameters of type ImmutableNodeModifier and TypeFieldDescriptionprivate final Collection<ImmutableNode> ModelTransaction.addedNodesA collection with nodes which have been added.private Collection<ImmutableNode> ModelTransaction.Operations.addedNodesInOperationA collection with nodes added by an operation.private final Collection<ImmutableNode> ModelTransaction.allRemovedNodesStores all nodes which have been removed in this transaction (not only the root nodes of removed trees).private List<ImmutableNode> ImmutableNode.Builder.childrenA list for the children of the new node.private final List<ImmutableNode> ImmutableNode.childrenA collection with the child nodes of this node.private final List<ImmutableNode> ImmutableNode.Builder.directChildrenThe direct list of children of the new node.private static final NodeHandler<ImmutableNode> InMemoryNodeModel.DUMMY_HANDLERA dummy node handler instance used in operations which require only a limited functionality.protected static final NodeHandler<ImmutableNode> NodeCombiner.HANDLERA default handler object for immutable nodes.private final Map<ImmutableNode, ImmutableNode> TreeData.inverseReplacementMappingAn inverse replacement mapping.private final Map<ImmutableNode, ImmutableNode> TreeData.inverseReplacementMappingAn inverse replacement mapping.private Collection<ImmutableNode> ModelTransaction.ChildrenUpdateOperation.newNodesA collection with new nodes to be added.private Map<ImmutableNode, Object> ModelTransaction.newReferencesA map with reference objects to be added during this transaction.private Set<ImmutableNode> ModelTransaction.ChildrenUpdateOperation.nodesToRemoveA collection with nodes to be removed.private Map<ImmutableNode, ImmutableNode> ModelTransaction.ChildrenUpdateOperation.nodesToReplaceA map with nodes to be replaced by others.private Map<ImmutableNode, ImmutableNode> ModelTransaction.ChildrenUpdateOperation.nodesToReplaceA map with nodes to be replaced by others.private final SortedMap<Integer, Map<ImmutableNode, ModelTransaction.Operations>> ModelTransaction.operationsStores the operations to be executed during this transaction.private final NodeHandler<ImmutableNode> TrackedNodeHandler.parentHandlerThe handler for querying the parent mapping.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.parentMappingA new parent mapping.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.parentMappingA new parent mapping.private final Map<ImmutableNode, ImmutableNode> TreeData.parentMappingA map that associates the parent node to each node.private final Map<ImmutableNode, ImmutableNode> TreeData.parentMappingA map that associates the parent node to each node.private final Map<ImmutableNode, Object> ReferenceTracker.referencesA map with reference data.private final Collection<ImmutableNode> ModelTransaction.removedNodesA collection with nodes which have been removed.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.replacedNodesThe nodes replaced in this transaction.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.replacedNodesThe nodes replaced in this transaction.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.replacementMappingA new replacement mapping.private final Map<ImmutableNode, ImmutableNode> ModelTransaction.replacementMappingA new replacement mapping.private final Map<ImmutableNode, ImmutableNode> TreeData.replacementMappingStores information about nodes which have been replaced by manipulations of the structure.private final Map<ImmutableNode, ImmutableNode> TreeData.replacementMappingStores information about nodes which have been replaced by manipulations of the structure.private final NodeKeyResolver<ImmutableNode> ModelTransaction.resolverTheNodeKeyResolverto be used for this transaction.Methods in org.apache.commons.configuration2.tree that return ImmutableNodeModifier and TypeMethodDescriptionImmutableNode.addChild(ImmutableNode child) Creates a newImmutableNodeinstance which is a copy of this object, but has the given child node added.protected ImmutableNodeModelTransaction.AddAttributeOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.AddAttributesOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChangeNodeNameOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChangeNodeValueOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChildrenUpdateOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected abstract ImmutableNodeModelTransaction.Operation.apply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected ImmutableNodeModelTransaction.RemoveAttributeOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeMergeCombiner.canCombine(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.protected ImmutableNodeOverrideCombiner.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 ImmutableNodeNodeCombiner.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 newImmutableNodeinstance based on the properties set for this builder.private static ImmutableNodeNodeTracker.createEmptyTrackedNode(NodeTracker.TrackedNodeData data) Creates an empty node derived from the passed inTrackedNodeDataobject.private static ImmutableNodeInMemoryNodeModel.createNodeOnPath(Iterator<String> it, Collection<ImmutableNode> newNodes) Recursive helper method for creating a path node for an add operation.private static ImmutableNodeInMemoryNodeModel.createNodeToAddWithPath(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddDatainstance and all new child nodes.private ImmutableNodeImmutableNode.createWithBasicProperties(ImmutableNode.Builder builder) Initializes the given builder with basic properties (node name and value) and returns the newly created node.private ImmutableNodeImmutableNode.createWithNewAttributes(Map<String, Object> newAttrs) Creates a newImmutableNodeinstance with the same properties as this object, but with the given new attributes.protected ImmutableNodeUnionCombiner.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 ofImmutableNodeobjects.NodeModel.getInMemoryRepresentation()Gets a representation of the data stored in this model in form of a nodes hierarchy ofImmutableNodeobjects.TrackedNodeModel.getInMemoryRepresentation()Gets a representation of the data stored in this model in form of a nodes hierarchy ofImmutableNodeobjects.NodeTracker.TrackedNodeData.getNode()Gets the tracked node.(package private) ImmutableNodeModelTransaction.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 currentImmutableNodeinstance associated with the givenNodeSelector.NodeTracker.getTrackedNode(NodeSelector selector) Gets the currentImmutableNodeinstance associated with the given selector.private static ImmutableNodeTreeData.handleReplacements(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private static ImmutableNodeInMemoryNodeModel.initialRootNode(ImmutableNode providedRoot) Determines the initial root node of this model.private ImmutableNodeModelTransaction.initQueryRoot(TreeData treeData, NodeSelector selector) Initializes the root node to be used within queries.ImmutableNode.removeAttribute(String name) Returns a newImmutableNodeinstance which is a copy of this object, but with the specified attribute removed.ImmutableNode.removeChild(ImmutableNode child) Returns a newImmutableNodeinstance which is a copy of this object, but with the given child node removed.ImmutableNode.replaceChild(ImmutableNode oldChild, ImmutableNode newChild) Returns a newImmutableNodeinstance which is a copy of this object, but with the given child replaced by the new one.ImmutableNode.replaceChildren(Collection<ImmutableNode> newChildren) Returns a newImmutableNodeinstance 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 thisNodeSelectoron the specified root node.ImmutableNode.setAttribute(String name, Object value) Returns a newImmutableNodeinstance which is a copy of this object, but with the specified attribute set to the given value.ImmutableNode.setAttributes(Map<String, ?> newAttributes) Returns a newImmutableNodeinstance which is a copy of this object, but with all attributes added defined by the given map.Creates a newImmutableNodeinstance which is a copy of this object with the name changed to the passed in value.Creates a newImmutableNodeinstance 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 inNodeMatcheragainst the provided criterion.InMemoryNodeModel.getNodeHandler()Gets aNodeHandlerfor dealing with the nodes managed by this model.TrackedNodeModel.getNodeHandler()TrackedNodeHandler.getParentHandler()Gets the parent handler.ModelTransaction.getResolver()Gets theNodeKeyResolverused by this transaction.InMemoryNodeModel.getTrackedNodeHandler(NodeSelector selector) Gets aNodeHandlerfor a tracked node.ImmutableNode.iterator()ImmutableNode.stream()Returns a sequentialStreamwith this node as its source.Methods in org.apache.commons.configuration2.tree with parameters of type ImmutableNodeModifier and TypeMethodDescriptionvoidModelTransaction.addAddNodeOperation(ImmutableNode parent, ImmutableNode newChild) Adds an operation for adding a new child to a given parent node.voidModelTransaction.addAddNodesOperation(ImmutableNode parent, Collection<? extends ImmutableNode> newNodes) Adds an operation for adding a number of new children to a given parent node.voidModelTransaction.addAttributeOperation(ImmutableNode target, String name, Object value) Adds an operation for adding an attribute to a target node.protected voidMergeCombiner.addAttributes(ImmutableNode.Builder result, ImmutableNode node1, ImmutableNode node2) Handles the attributes during a combination process.protected voidOverrideCombiner.addAttributes(ImmutableNode.Builder result, ImmutableNode node1, ImmutableNode node2) Handles the attributes during a combination process.voidModelTransaction.addAttributesOperation(ImmutableNode target, Map<String, Object> attributes) Adds an operation for adding multiple attributes to a target node.voidModelTransaction.addChangeNodeNameOperation(ImmutableNode target, String newName) Adds an operation for changing the name of a target node.voidModelTransaction.addChangeNodeValueOperation(ImmutableNode target, Object newValue) Adds an operation for changing the value of a target node.ImmutableNode.addChild(ImmutableNode child) Creates a newImmutableNodeinstance 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.voidModelTransaction.addClearNodeValueOperation(ImmutableNode target) Adds an operation for clearing the value of a target node.voidModelTransaction.ChildrenUpdateOperation.addNewNode(ImmutableNode node) Adds a node to be added to the target of the operation.voidModelTransaction.addNewReference(ImmutableNode node, Object ref) Adds a new reference object for the given node.voidModelTransaction.ChildrenUpdateOperation.addNodeToRemove(ImmutableNode node) Adds a node for a remove operation.voidModelTransaction.ChildrenUpdateOperation.addNodeToReplace(ImmutableNode org, ImmutableNode replacement) Adds a node for a replacement operation.voidModelTransaction.addRemoveAttributeOperation(ImmutableNode target, String name) Adds an operation for removing an attribute from a target node.voidModelTransaction.addRemoveNodeOperation(ImmutableNode parent, ImmutableNode node) Adds an operation for removing a child node of a given node.protected ImmutableNodeModelTransaction.AddAttributeOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.AddAttributesOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChangeNodeNameOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChangeNodeValueOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeModelTransaction.ChildrenUpdateOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.protected abstract ImmutableNodeModelTransaction.Operation.apply(ImmutableNode target, ModelTransaction.Operations operations) Executes this operation on the provided target node returning the result.voidModelTransaction.Operations.apply(ImmutableNode target, int level) Executes all operations stored in this object on the given target node.protected ImmutableNodeModelTransaction.RemoveAttributeOperation.apply(ImmutableNode target, ModelTransaction.Operations operations) protected ImmutableNodeMergeCombiner.canCombine(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.protected ImmutableNodeOverrideCombiner.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 voidImmutableNode.checkChildNode(ImmutableNode child) Checks whether the given child node is not null.(package private) static booleanAbstractImmutableNodeHandler.checkIfNodeDefined(ImmutableNode node) Checks if the passed in node is defined.(package private) static booleanInMemoryNodeModel.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 ImmutableNodeNodeCombiner.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 TreeDataInMemoryNodeModel.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 TreeDataInMemoryNodeModel.createTreeData(ImmutableNode root, TreeData current) Creates aTreeDataobject for the specified root node.private TreeDataInMemoryNodeModel.createTreeDataForRootAndTracker(ImmutableNode root, NodeTracker newTracker) Creates aTreeDataobject for the specified root node andNodeTracker.NodeTracker.TrackedNodeData.detach(ImmutableNode newNode) Returns an instance with the detached flag set to true.private static StringInMemoryNodeModel.determineRootName(ImmutableNode rootNode, ImmutableNode node, String rootName) Determines the name of the root node for a merge operation.private static NodeTracker.TrackedNodeDataNodeTracker.determineUpdatedTrackedNodeData(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeDataobject for an update operation.(package private) ModelTransaction.OperationsModelTransaction.fetchOperations(ImmutableNode target, int level) Obtains theOperationsobject for manipulating the specified node.protected ImmutableNodeUnionCombiner.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.intAbstractImmutableNodeHandler.getChildrenCount(ImmutableNode node, String name) private voidNodeSelector.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 inNodeMatcheragainst the provided criterion.<C> intAbstractImmutableNodeHandler.getMatchingChildrenCount(ImmutableNode node, NodeMatcher<C> matcher, C criterion) (package private) ImmutableNodeModelTransaction.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 voidModelTransaction.Operations.handleAddedNodes(ImmutableNode node) Checks whether new nodes have been added during operation execution.private static ImmutableNodeTreeData.handleReplacements(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.booleanAbstractImmutableNodeHandler.hasAttributes(ImmutableNode node) intAbstractImmutableNodeHandler.indexOfChild(ImmutableNode parent, ImmutableNode child) private static ImmutableNodeInMemoryNodeModel.initialRootNode(ImmutableNode providedRoot) Determines the initial root node of this model.booleanAbstractImmutableNodeHandler.isDefined(ImmutableNode node) Checks whether the specified node is defined.booleanNodeCombiner.isListNode(ImmutableNode node) Checks if a node is a list node.private intModelTransaction.level(ImmutableNode node) Determines the level of the specified node in the current hierarchy.private static booleanMergeCombiner.matchAttributes(Map<String, Object> attrs1, ImmutableNode node) Checks whether the attributes of the passed in node are compatible.voidInMemoryNodeModel.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 voidTreeUtils.printTree(PrintStream stream, String indent, ImmutableNode result) static voidTreeUtils.printTree(PrintStream stream, ImmutableNode result) Print out the data in the configuration.private voidModelTransaction.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 newImmutableNodeinstance which is a copy of this object, but with the given child node removed.private voidModelTransaction.removeNodeFromReplacementMapping(ImmutableNode node) Removes the specified node completely from the replacement mapping.private voidModelTransaction.removeNodesFromParentAndReplacementMapping(ImmutableNode root) Removes a node and its children (recursively) from the parent and the replacement mappings.private booleanInMemoryNodeModel.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 newImmutableNodeinstance which is a copy of this object, but with the given child replaced by the new one.private booleanInMemoryNodeModel.replaceDetachedTrackedNode(TreeData currentData, NodeSelector selector, ImmutableNode newNode) Replaces a tracked node if it is already detached.voidInMemoryNodeModel.replaceRoot(ImmutableNode newRoot, NodeKeyResolver<ImmutableNode> resolver) Replaces the root node of this model.voidInMemoryNodeModel.replaceTrackedNode(NodeSelector selector, ImmutableNode newNode) Replaces a tracked node by another node.NodeSelector.select(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelectoron the specified root node.voidInMemoryNodeModel.setRootNode(ImmutableNode newRoot) Sets a new root node for this model.voidTrackedNodeModel.setRootNode(ImmutableNode newRoot) private static NodeTracker.TrackedNodeDataNodeTracker.trackDataForAddedObserver(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeDataobject 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 TreeDataInMemoryNodeModel.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 voidInMemoryNodeModel.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 TypeMethodDescriptionvoidModelTransaction.addAddNodesOperation(ImmutableNode parent, Collection<? extends ImmutableNode> newNodes) Adds an operation for adding a number of new children to a given parent node.private static voidInMemoryNodeModel.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.voidModelTransaction.ChildrenUpdateOperation.addNewNodes(Collection<? extends ImmutableNode> nodes) Adds a collection of nodes to be added to the target of the operation.voidModelTransaction.addNewReferences(Map<ImmutableNode, ?> refs) Adds a map with new reference objects.private static voidInMemoryNodeModel.addNodeProperty(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Iterable<?> values) Handles an add property operation if the property to be added is a node.voidInMemoryNodeModel.addNodes(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) voidInMemoryNodeModel.addNodes(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) voidInMemoryNodeModel.addNodes(String key, NodeSelector selector, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) Adds new nodes using a tracked node as root node.voidInMemoryNodeModel.addNodes(String key, NodeSelector selector, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) Adds new nodes using a tracked node as root node.voidTrackedNodeModel.addNodes(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) voidTrackedNodeModel.addNodes(String key, Collection<? extends ImmutableNode> nodes, NodeKeyResolver<ImmutableNode> resolver) private static voidInMemoryNodeModel.addNodesByAddData(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Initializes a transaction to add a collection of nodes as described by aNodeAddDataobject.private static voidInMemoryNodeModel.addNodesByAddData(ModelTransaction tx, NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Initializes a transaction to add a collection of nodes as described by aNodeAddDataobject.voidInMemoryNodeModel.addProperty(String key, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) voidInMemoryNodeModel.addProperty(String key, NodeSelector selector, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) Adds new property values using a tracked node as root node.voidTrackedNodeModel.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 ImmutableNodeMergeCombiner.canCombine(ImmutableNode node2, ImmutableNode child, List<ImmutableNode> children2) Tests if the first node can be combined with the second node.voidInMemoryNodeModel.clear(NodeKeyResolver<ImmutableNode> resolver) Removes all data from this model.voidTrackedNodeModel.clear(NodeKeyResolver<ImmutableNode> resolver) Removes all data from this model.voidInMemoryNodeModel.clearProperty(String key, NodeKeyResolver<ImmutableNode> resolver) Clears the value of a property.voidInMemoryNodeModel.clearProperty(String key, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Clears a property using a tracked node as root node.voidTrackedNodeModel.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 TreeDataInMemoryNodeModel.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 ImmutableNodeInMemoryNodeModel.createNodeOnPath(Iterator<String> it, Collection<ImmutableNode> newNodes) Recursive helper method for creating a path node for an add operation.private static ImmutableNodeInMemoryNodeModel.createNodeToAddWithPath(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddDatainstance and all new child nodes.private static ImmutableNodeInMemoryNodeModel.createNodeToAddWithPath(NodeAddData<ImmutableNode> addData, Collection<ImmutableNode> newNodes) Creates a node structure consisting of the path nodes defined by the passed inNodeAddDatainstance and all new child nodes.private static TreeDataInMemoryNodeModel.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 TreeDataInMemoryNodeModel.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.TrackedNodeDataNodeTracker.determineUpdatedTrackedNodeData(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeDataobject for an update operation.private static NodeTracker.TrackedNodeDataNodeTracker.determineUpdatedTrackedNodeData(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, Map.Entry<NodeSelector, NodeTracker.TrackedNodeData> e) Returns aTrackedNodeDataobject for an update operation.private booleanInMemoryNodeModel.executeTransactionOnCurrentStructure(InMemoryNodeModel.TransactionInitializer txInit, NodeSelector selector, TreeData currentData, NodeKeyResolver<ImmutableNode> resolver) Executes a transaction on the current data of this model.private booleanInMemoryNodeModel.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 voidNodeSelector.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 voidNodeSelector.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 voidNodeSelector.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 ImmutableNodeTreeData.handleReplacements(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private static ImmutableNodeTreeData.handleReplacements(ImmutableNode replace, Map<ImmutableNode, ImmutableNode> mapping) Checks whether the passed in node is subject of a replacement by another one.private voidInMemoryNodeModel.initializeAddTransaction(ModelTransaction tx, String key, Iterable<?> values, NodeKeyResolver<ImmutableNode> resolver) Initializes a transaction for an add operation.private static booleanInMemoryNodeModel.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 booleanInMemoryNodeModel.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.voidInMemoryNodeModel.mergeRoot(ImmutableNode node, String rootName, Map<ImmutableNode, ?> references, Object rootRef, NodeKeyResolver<ImmutableNode> resolver) Merges the root node of this model with the specified node.voidInMemoryNodeModel.mergeRoot(ImmutableNode node, String rootName, Map<ImmutableNode, ?> references, Object rootRef, NodeKeyResolver<ImmutableNode> resolver) Merges the root node of this model with the specified node.voidModelTransaction.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 newImmutableNodeinstance which is a copy of this object, but with the children replaced by the ones in the passed in collection.voidInMemoryNodeModel.replaceRoot(ImmutableNode newRoot, NodeKeyResolver<ImmutableNode> resolver) Replaces the root node of this model.NodeSelector.select(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelectoron the specified root node.NodeSelector.select(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler) Applies thisNodeSelectoron the specified root node.InMemoryNodeModel.selectAndTrackNodes(String key, NodeKeyResolver<ImmutableNode> resolver) Allows tracking all nodes selected by a key.voidInMemoryNodeModel.setProperty(String key, Object value, NodeKeyResolver<ImmutableNode> resolver) voidInMemoryNodeModel.setProperty(String key, NodeSelector selector, Object value, NodeKeyResolver<ImmutableNode> resolver) Sets the value of a property using a tracked node as root node.voidTrackedNodeModel.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.TrackedNodeDataNodeTracker.trackDataForAddedObserver(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeDataobject for a newly added observer for the specified node selector.private static NodeTracker.TrackedNodeDataNodeTracker.trackDataForAddedObserver(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData) Creates aTrackedNodeDataobject for a newly added observer for the specified node selector.voidInMemoryNodeModel.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 TreeDataInMemoryNodeModel.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 voidInMemoryNodeModel.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 voidInMemoryNodeModel.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 voidInMemoryNodeModel.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 ofInMemoryNodeModeland initializes it from the given root node.Creates a new instance ofTrackedNodeDataand initializes it with the current reference to the tracked node.privateTrackedNodeData(ImmutableNode nd, int obsCount, InMemoryNodeModel detachedNodeModel) Creates a new instance ofTrackedNodeDataand initializes its properties.TrackedNodeHandler(ImmutableNode root, NodeHandler<ImmutableNode> handler) Creates a new instance ofTrackedNodeHandlerand 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 ofTreeDataand initializes it with all data to be stored.Constructor parameters in org.apache.commons.configuration2.tree with type arguments of type ImmutableNodeModifierConstructorDescriptionprivateCreates a new instance ofBuilderand initializes the children and attributes of the new node.ModelTransaction(TreeData treeData, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Creates a new instance ofModelTransactionfor the current tree data.privateReferenceTracker(Map<ImmutableNode, Object> refs, List<Object> removedRefs) Creates a new instance ofReferenceTrackerand sets the data to be managed.TrackedNodeHandler(ImmutableNode root, NodeHandler<ImmutableNode> handler) Creates a new instance ofTrackedNodeHandlerand 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 ofTreeDataand 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 ofTreeDataand initializes it with all data to be stored.