Uses of Interface
org.apache.commons.configuration.tree.ConfigurationNode
-
-
Uses of ConfigurationNode in org.apache.commons.configuration
Classes in org.apache.commons.configuration that implement ConfigurationNode Modifier and Type Class Description static class
HierarchicalConfiguration.Node
A data class for storing (hierarchical) property information.Methods in org.apache.commons.configuration that return ConfigurationNode Modifier and Type Method Description ConfigurationNode
CombinedConfiguration. getRootNode()
Returns the configuration root node of this combined configuration.ConfigurationNode
DynamicCombinedConfiguration. getRootNode()
Returns the configuration root node of this combined configuration.ConfigurationNode
HierarchicalConfiguration. getRootNode()
Returns the root node of this hierarchical configuration.ConfigurationNode
MultiFileHierarchicalConfiguration. getRootNode()
ConfigurationNode
PatternSubtreeConfigurationWrapper. getRootNode()
ConfigurationNode
SubnodeConfiguration. getRootNode()
Returns the root node for this configuration.Methods in org.apache.commons.configuration that return types with arguments of type ConfigurationNode Modifier and Type Method Description protected java.util.List<ConfigurationNode>
AbstractHierarchicalFileConfiguration. fetchNodeList(java.lang.String key)
Fetches a list of nodes, which are selected by the specified key.protected java.util.List<ConfigurationNode>
CombinedConfiguration. fetchNodeList(java.lang.String key)
Evaluates the passed in property key and returns a list with the matching configuration nodes.protected java.util.List<ConfigurationNode>
HierarchicalConfiguration. fetchNodeList(java.lang.String key)
Helper method for fetching a list of all nodes that are addressed by the specified key.Methods in org.apache.commons.configuration with parameters of type ConfigurationNode Modifier and Type Method Description protected void
HierarchicalConfiguration. clearNode(ConfigurationNode node)
Clears the value of the specified node.protected static void
HierarchicalConfiguration. clearReferences(ConfigurationNode node)
Clears all reference fields in a node structure.protected SubnodeConfiguration
HierarchicalConfiguration. createSubnodeConfiguration(ConfigurationNode node)
Creates a subnode configuration for the specified node.protected SubnodeConfiguration
HierarchicalConfiguration. createSubnodeConfiguration(ConfigurationNode node, java.lang.String subnodeKey)
Creates a new subnode configuration for the specified node and sets its construction key.protected SubnodeConfiguration
SubnodeConfiguration. createSubnodeConfiguration(ConfigurationNode node)
Returns a hierarchical configuration object for the given sub node.protected SubnodeConfiguration
SubnodeConfiguration. createSubnodeConfiguration(ConfigurationNode node, java.lang.String subnodeKey)
Returns a hierarchical configuration object for the given sub node that is aware of structural changes of its parent.protected boolean
DefaultConfigurationBuilder.ConfigurationDeclaration. isReservedNode(ConfigurationNode nd)
Checks whether the given node is reserved.protected boolean
HierarchicalConfiguration. nodeDefined(ConfigurationNode node)
Checks if the specified node is defined.protected void
HierarchicalConfiguration. removeNode(ConfigurationNode node)
Removes the specified node from this configuration.void
DynamicCombinedConfiguration. setRootNode(ConfigurationNode rootNode)
void
HierarchicalConfiguration. setRootNode(ConfigurationNode rootNode)
Sets the root node of this hierarchical configuration.void
MultiFileHierarchicalConfiguration. setRootNode(ConfigurationNode rootNode)
void
PatternSubtreeConfigurationWrapper. setRootNode(ConfigurationNode rootNode)
Method parameters in org.apache.commons.configuration with type arguments of type ConfigurationNode Modifier and Type Method Description void
AbstractHierarchicalFileConfiguration. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
Directly adds sub nodes to this configuration.void
DynamicCombinedConfiguration. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
void
HierarchicalConfiguration. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
Adds a collection of nodes at the specified position of the configuration tree.void
MultiFileHierarchicalConfiguration. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
void
PatternSubtreeConfigurationWrapper. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
void
XMLConfiguration. addNodes(java.lang.String key, java.util.Collection<? extends ConfigurationNode> nodes)
Adds a collection of nodes directly to this configuration.protected void
HierarchicalConfiguration. findPropertyNodes(ConfigurationKey.KeyIterator keyPart, HierarchicalConfiguration.Node node, java.util.Collection<ConfigurationNode> nodes)
Deprecated.Property keys are now evaluated by the expression engine associated with the configuration; this method will no longer be called.Constructors in org.apache.commons.configuration with parameters of type ConfigurationNode Constructor Description Node(ConfigurationNode src)
Creates a new instance ofNode
based on the given source node.SubnodeConfiguration(HierarchicalConfiguration parent, ConfigurationNode root)
Creates a new instance ofSubnodeConfiguration
and initializes it with the parent configuration and the new root node. -
Uses of ConfigurationNode in org.apache.commons.configuration.beanutils
Methods in org.apache.commons.configuration.beanutils that return ConfigurationNode Modifier and Type Method Description ConfigurationNode
XMLBeanDeclaration. getNode()
Returns the node that contains the bean declaration.Methods in org.apache.commons.configuration.beanutils with parameters of type ConfigurationNode Modifier and Type Method Description protected BeanDeclaration
XMLBeanDeclaration. createBeanDeclaration(ConfigurationNode node)
Creates a newBeanDeclaration
for a child node of the current configuration node.protected boolean
XMLBeanDeclaration. isReservedNode(ConfigurationNode nd)
Checks if the specified node is reserved and thus should be ignored.Constructors in org.apache.commons.configuration.beanutils with parameters of type ConfigurationNode Constructor Description XMLBeanDeclaration(SubnodeConfiguration config, ConfigurationNode node)
Creates a new instance ofXMLBeanDeclaration
and initializes it with the configuration node that contains the bean declaration. -
Uses of ConfigurationNode in org.apache.commons.configuration.plist
Classes in org.apache.commons.configuration.plist that implement ConfigurationNode Modifier and Type Class Description static class
XMLPropertyListConfiguration.ArrayNode
Container for array elements.static class
XMLPropertyListConfiguration.PListNode
Node extension with addXXX methods to parse the typed data passed by the SAX handler. -
Uses of ConfigurationNode in org.apache.commons.configuration.tree
Classes in org.apache.commons.configuration.tree that implement ConfigurationNode Modifier and Type Class Description class
DefaultConfigurationNode
A default implementation of theConfigurationNode
interface.class
ViewNode
A specialized node implementation to be used in view configurations.Methods in org.apache.commons.configuration.tree that return ConfigurationNode Modifier and Type Method Description protected ConfigurationNode
MergeCombiner. canCombine(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children2)
Tests if the first node can be combined with the second node.protected ConfigurationNode
OverrideCombiner. canCombine(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child)
Tests if a child node of the second node can be combined with the given child node of the first node.ConfigurationNode
MergeCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the given nodes to a new union node.abstract ConfigurationNode
NodeCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the hierarchies represented by the given root nodes.ConfigurationNode
OverrideCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Constructs an override combination for the passed in node structures.ConfigurationNode
UnionCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the given nodes to a new union node.protected ConfigurationNode
UnionCombiner. findCombineNode(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children)
Tries to find a child node of the second source node, with which a child of the first source node can be combined.protected ConfigurationNode
DefaultExpressionEngine. findLastPathNode(DefaultConfigurationKey.KeyIterator keyIt, ConfigurationNode node)
Finds the last existing node for an add operation.ConfigurationNode
ConfigurationNode. getAttribute(int index)
Returns the attribute node with the given index.ConfigurationNode
DefaultConfigurationNode. getAttribute(int index)
Returns the attribute with the given index.ConfigurationNode
ConfigurationNode. getChild(int index)
Returns the child node with the given index.ConfigurationNode
DefaultConfigurationNode. getChild(int index)
Returns the child node with the given index.ConfigurationNode
DefaultConfigurationNode.SubNodes. getNode(int index)
Returns the node with the given index.ConfigurationNode
NodeAddData. getParent()
Returns the parent node.ConfigurationNode
ConfigurationNode. getParentNode()
Returns this node's parent.ConfigurationNode
DefaultConfigurationNode. getParentNode()
Returns a reference to this node's parent.Methods in org.apache.commons.configuration.tree that return types with arguments of type ConfigurationNode Modifier and Type Method Description java.util.List<ConfigurationNode>
ConfigurationNode. getAttributes()
Returns a list with this node's attributes.java.util.List<ConfigurationNode>
ConfigurationNode. getAttributes(java.lang.String name)
Returns a list with the attribute nodes with the given name.java.util.List<ConfigurationNode>
DefaultConfigurationNode. getAttributes()
Returns a list with the attributes of this node.java.util.List<ConfigurationNode>
DefaultConfigurationNode. getAttributes(java.lang.String name)
Returns a list with all attributes of this node with the given name.java.util.List<ConfigurationNode>
ConfigurationNode. getChildren()
Returns a list with the child nodes of this node.java.util.List<ConfigurationNode>
ConfigurationNode. getChildren(java.lang.String name)
Returns a list with all children of this node with the given name.java.util.List<ConfigurationNode>
DefaultConfigurationNode. getChildren()
Returns a list with all children of this node.java.util.List<ConfigurationNode>
DefaultConfigurationNode. getChildren(java.lang.String name)
Returns a list of all children with the given name.java.util.List<ConfigurationNode>
DefaultConfigurationNode.SubNodes. getSubNodes()
Returns a list with all stored sub nodes.java.util.List<ConfigurationNode>
DefaultConfigurationNode.SubNodes. getSubNodes(java.lang.String name)
Returns a list of the sub nodes with the given name.java.util.List<ConfigurationNode>
DefaultExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Evaluates the given key and returns all matching nodes.java.util.List<ConfigurationNode>
ExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Finds the node(s) that is (are) matched by the specified key.Methods in org.apache.commons.configuration.tree with parameters of type ConfigurationNode Modifier and Type Method Description void
ConfigurationNode. addAttribute(ConfigurationNode attr)
Adds the specified attribute to this nodevoid
DefaultConfigurationNode. addAttribute(ConfigurationNode attr)
Adds the specified attribute to this node.void
ViewNode. addAttribute(ConfigurationNode attr)
Adds an attribute to this view node.protected void
MergeCombiner. addAttributes(ViewNode result, ConfigurationNode node1, ConfigurationNode node2)
Handles the attributes during a combination process.protected void
OverrideCombiner. addAttributes(ViewNode result, ConfigurationNode node1, ConfigurationNode node2)
Handles the attributes during a combination process.void
ConfigurationNode. addChild(ConfigurationNode node)
Adds a child to this node.void
DefaultConfigurationNode. addChild(ConfigurationNode child)
Adds a new child to this node.void
ViewNode. addChild(ConfigurationNode child)
Adds a child node to this view node.void
DefaultConfigurationNode.SubNodes. addNode(ConfigurationNode node)
Adds a new sub node.void
ViewNode. appendAttributes(ConfigurationNode source)
Adds all attribute nodes of the given source node to this view node.void
ViewNode. appendChildren(ConfigurationNode source)
Adds all child nodes of the given source node to this view node.protected ConfigurationNode
MergeCombiner. canCombine(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children2)
Tests if the first node can be combined with the second node.protected ConfigurationNode
OverrideCombiner. canCombine(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child)
Tests if a child node of the second node can be combined with the given child node of the first node.ConfigurationNode
MergeCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the given nodes to a new union node.abstract ConfigurationNode
NodeCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the hierarchies represented by the given root nodes.ConfigurationNode
OverrideCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Constructs an override combination for the passed in node structures.ConfigurationNode
UnionCombiner. combine(ConfigurationNode node1, ConfigurationNode node2)
Combines the given nodes to a new union node.protected void
DefaultConfigurationNode.SubNodes. detachNode(ConfigurationNode subNode)
This method is called whenever a sub node is removed from this object.protected ConfigurationNode
UnionCombiner. findCombineNode(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children)
Tries to find a child node of the second source node, with which a child of the first source node can be combined.protected ConfigurationNode
DefaultExpressionEngine. findLastPathNode(DefaultConfigurationKey.KeyIterator keyIt, ConfigurationNode node)
Finds the last existing node for an add operation.protected void
DefaultExpressionEngine. findNodesForKey(DefaultConfigurationKey.KeyIterator keyPart, ConfigurationNode node, java.util.Collection<ConfigurationNode> nodes)
Recursive helper method for evaluating a key.boolean
NodeCombiner. isListNode(ConfigurationNode node)
Checks if a node is a list node.java.lang.String
DefaultExpressionEngine. nodeKey(ConfigurationNode node, java.lang.String parentKey)
Determines the key of the passed in node.java.lang.String
ExpressionEngine. nodeKey(ConfigurationNode node, java.lang.String parentKey)
Returns the key for the specified node in the expression language supported by an implementation.NodeAddData
DefaultExpressionEngine. prepareAdd(ConfigurationNode root, java.lang.String key)
Prepares Adding the property with the specified key.NodeAddData
ExpressionEngine. prepareAdd(ConfigurationNode root, java.lang.String key)
Returns information needed for an add operation.static void
TreeUtils. printTree(java.io.PrintStream stream, ConfigurationNode result)
Print out the data in the configuration.java.util.List<ConfigurationNode>
DefaultExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Evaluates the given key and returns all matching nodes.java.util.List<ConfigurationNode>
ExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Finds the node(s) that is (are) matched by the specified key.boolean
ConfigurationNode. removeAttribute(ConfigurationNode node)
Removes the specified attribute from this node.boolean
DefaultConfigurationNode. removeAttribute(ConfigurationNode node)
Removes the specified attribute.boolean
ConfigurationNode. removeChild(ConfigurationNode child)
Removes the given node from this node's children.boolean
DefaultConfigurationNode. removeChild(ConfigurationNode child)
Removes the specified child node from this node.boolean
DefaultConfigurationNode.SubNodes. removeNode(ConfigurationNode node)
Removes a sub node.void
NodeAddData. setParent(ConfigurationNode parent)
Sets the parent node.void
ConfigurationNode. setParentNode(ConfigurationNode parent)
Sets the parent of this node.void
DefaultConfigurationNode. setParentNode(ConfigurationNode parent)
Sets the parent of this node.void
ConfigurationNodeVisitor. visitAfterChildren(ConfigurationNode node)
Visits the specified node.void
ConfigurationNodeVisitorAdapter. visitAfterChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.void
ConfigurationNodeVisitor. visitBeforeChildren(ConfigurationNode node)
Visits the specified node.void
ConfigurationNodeVisitorAdapter. visitBeforeChildren(ConfigurationNode node)
Empty dummy implementation of this interface method.Method parameters in org.apache.commons.configuration.tree with type arguments of type ConfigurationNode Modifier and Type Method Description protected ConfigurationNode
MergeCombiner. canCombine(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children2)
Tests if the first node can be combined with the second node.protected void
DefaultConfigurationNode.SubNodes. detachNodes(java.util.Collection<? extends ConfigurationNode> subNodes)
Detaches a list of sub nodes.protected ConfigurationNode
UnionCombiner. findCombineNode(ConfigurationNode node1, ConfigurationNode node2, ConfigurationNode child, java.util.List<ConfigurationNode> children)
Tries to find a child node of the second source node, with which a child of the first source node can be combined.protected void
DefaultExpressionEngine. findNodesForKey(DefaultConfigurationKey.KeyIterator keyPart, ConfigurationNode node, java.util.Collection<ConfigurationNode> nodes)
Recursive helper method for evaluating a key.Constructors in org.apache.commons.configuration.tree with parameters of type ConfigurationNode Constructor Description NodeAddData(ConfigurationNode parent, java.lang.String nodeName)
Creates a new instance ofNodeAddData
and sets the most important data fields. -
Uses of ConfigurationNode in org.apache.commons.configuration.tree.xpath
Methods in org.apache.commons.configuration.tree.xpath that return types with arguments of type ConfigurationNode Modifier and Type Method Description java.util.List<ConfigurationNode>
XPathExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Executes a query.Methods in org.apache.commons.configuration.tree.xpath with parameters of type ConfigurationNode Modifier and Type Method Description protected org.apache.commons.jxpath.JXPathContext
XPathExpressionEngine. createContext(ConfigurationNode root, java.lang.String key)
Creates theJXPathContext
used for executing a query.java.lang.String
XPathExpressionEngine. nodeKey(ConfigurationNode node, java.lang.String parentKey)
Returns a (canonical) key for the given node based on the parent's key.NodeAddData
XPathExpressionEngine. prepareAdd(ConfigurationNode root, java.lang.String key)
Prepares an add operation for a configuration property.java.util.List<ConfigurationNode>
XPathExpressionEngine. query(ConfigurationNode root, java.lang.String key)
Executes a query.
-