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
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) Methods in org.apache.commons.configuration2 with parameters of type ImmutableNodeModifier and TypeMethodDescriptionAbstractYAMLBasedConfiguration.constructMap(ImmutableNode node) Constructs a YAML map, i.e.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 abstract voidBaseHierarchicalConfiguration.BuilderVisitor.update(ImmutableNode node, Object reference, ReferenceNodeHandler refHandler) Updates a node that already existed in the original hierarchy.voidBaseHierarchicalConfiguration.BuilderVisitor.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) voidBaseHierarchicalConfiguration.BuilderVisitor.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.Creates a new instance ofYAMLConfigurationas a copy of the specified configuration. -
Uses of ImmutableNode in org.apache.commons.configuration2.plist
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 with type parameters of type ImmutableNodeModifier and TypeFieldDescriptionprotected static final NodeHandler<ImmutableNode> NodeCombiner.HANDLERA default handler object for immutable nodes.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 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.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.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.InMemoryNodeModel.getRootNode()Gets the root node of this mode.InMemoryNodeModel.getTrackedNode(NodeSelector selector) Gets the currentImmutableNodeinstance associated with the givenNodeSelector.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) ImmutableNode.getChildren()Gets a list with the children of this node.ImmutableNode.getChildren(String name) Returns a list with the children of this node.InMemoryNodeModel.getNodeHandler()Gets aNodeHandlerfor dealing with the nodes managed by this model.TrackedNodeModel.getNodeHandler()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 TypeMethodDescriptionprotected 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.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.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.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.ReferenceNodeHandler.getReference(ImmutableNode node) Gets the reference object associated with the specified node.booleanNodeCombiner.isListNode(ImmutableNode node) Checks if a node is a list 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.static voidTreeUtils.printTree(PrintStream stream, ImmutableNode result) Print out the data in the configuration.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.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) Method parameters in org.apache.commons.configuration2.tree with type arguments of type ImmutableNodeModifier and TypeMethodDescriptionImmutableNode.Builder.addChildren(Collection<? extends ImmutableNode> children) Adds multiple child nodes to this builder.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) 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) 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) 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.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.voidInMemoryNodeModel.trackNode(NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver) Adds a node to be tracked.Constructors in org.apache.commons.configuration2.tree with parameters of type ImmutableNodeModifierConstructorDescriptionCreates a new instance ofInMemoryNodeModeland initializes it from the given root node.