Uses of Interface
org.apache.commons.configuration2.tree.NodeHandler
-
Packages that use NodeHandler Package Description org.apache.commons.configuration2 The Configuration main package.org.apache.commons.configuration2.beanutils In this package aConfiguration
implementation can be found that implements theDynaBean
interface.org.apache.commons.configuration2.plist Configuration classes supporting NeXT / OpenStep /GNUStep style configuration.org.apache.commons.configuration2.tree A package with helper and utility classes used by hierarchical configurations.org.apache.commons.configuration2.tree.xpath This package contains theXPathExpressionEngine
class which enables XPATH support for querying configuration properties. -
-
Uses of NodeHandler in org.apache.commons.configuration2
Methods in org.apache.commons.configuration2 that return NodeHandler Modifier and Type Method Description NodeHandler<ImmutableNode>
INIConfiguration.GlobalSectionNodeModel. getNodeHandler()
Methods in org.apache.commons.configuration2 with parameters of type NodeHandler Modifier and Type Method Description protected org.xml.sax.Attributes
HierarchicalConfigurationXMLReader.SAXVisitor. fetchAttributes(T node, NodeHandler<T> handler)
Returns an object with all attributes for the specified node.void
AbstractHierarchicalConfiguration.DefinedKeysVisitor. handleAttributeKeys(java.lang.String parentKey, T node, NodeHandler<T> handler)
Appends all attribute keys of the current node.private void
BaseHierarchicalConfiguration.InterpolatedVisitor. handleLeafNode(ImmutableNode node, NodeHandler<ImmutableNode> handler)
Handles interpolation for a node with no children.private java.util.Map<java.lang.String,java.lang.Object>
BaseHierarchicalConfiguration.InterpolatedVisitor. interpolateAttributes(ImmutableNode node, NodeHandler<ImmutableNode> handler)
Returns a map with interpolated attributes of the passed in node.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor. interpolateAttributes(ImmutableNode node, NodeHandler<ImmutableNode> handler, java.util.Map<java.lang.String,java.lang.Object> interpolatedAttributes)
Populates a map with interpolated attributes of the passed in node.private boolean
BaseHierarchicalConfiguration.InterpolatedVisitor. isLeafNode(ImmutableNode node, NodeHandler<ImmutableNode> handler)
Returns a flag whether the given node is a leaf.java.lang.String
AbstractHierarchicalConfiguration. nodeKey(T node, java.util.Map<T,java.lang.String> cache, NodeHandler<T> handler)
Generates a unique key for the specified node.private java.lang.String
HierarchicalConfigurationXMLReader.SAXVisitor. nodeName(T node, NodeHandler<T> handler)
Helper method for determining the name of a node.NodeAddData<T>
AbstractHierarchicalConfiguration. resolveAddKey(T root, java.lang.String key, NodeHandler<T> handler)
Resolves a key of an add operation.java.util.List<QueryResult<T>>
AbstractHierarchicalConfiguration. resolveKey(T root, java.lang.String key, NodeHandler<T> handler)
Performs a query for the specified key on the given root node.java.util.List<T>
AbstractHierarchicalConfiguration. resolveNodeKey(T root, java.lang.String key, NodeHandler<T> handler)
Performs a query for the specified key on the given root node returning only node results.NodeUpdateData<T>
AbstractHierarchicalConfiguration. resolveUpdateKey(T root, java.lang.String key, java.lang.Object newValue, NodeHandler<T> handler)
Resolves a key for an update operation.private java.lang.Object
AbstractHierarchicalConfiguration. valueFromResult(QueryResult<T> result, NodeHandler<T> handler)
Extracts the value from a query result.void
AbstractHierarchicalConfiguration.DefinedKeysVisitor. visitAfterChildren(T node, NodeHandler<T> handler)
Visits the specified node after after its children - if existing - have been processed.void
BaseHierarchicalConfiguration.InterpolatedVisitor. visitAfterChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler)
void
HierarchicalConfigurationXMLReader.SAXVisitor. visitAfterChildren(T node, NodeHandler<T> handler)
Visits the specified node after its children have been processed.void
AbstractHierarchicalConfiguration.DefinedKeysVisitor. visitBeforeChildren(T node, NodeHandler<T> handler)
Visits the specified node before the children of this node - if existing - are processed.void
AbstractHierarchicalConfiguration.DefinedVisitor. visitBeforeChildren(T node, NodeHandler<T> handler)
Visits the node.void
BaseHierarchicalConfiguration.BuilderVisitor. visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler)
void
BaseHierarchicalConfiguration.InterpolatedVisitor. visitBeforeChildren(ImmutableNode node, NodeHandler<ImmutableNode> handler)
void
FindNodeVisitor. visitBeforeChildren(T node, NodeHandler<T> handler)
void
HierarchicalConfigurationXMLReader.SAXVisitor. visitBeforeChildren(T node, NodeHandler<T> handler)
Visits the specified node. -
Uses of NodeHandler in org.apache.commons.configuration2.beanutils
Fields in org.apache.commons.configuration2.beanutils declared as NodeHandler Modifier and Type Field Description private NodeHandler<T>
XMLBeanDeclaration.NodeData. nodeHandler
The node handler for interacting with this node.Constructors in org.apache.commons.configuration2.beanutils with parameters of type NodeHandler Constructor Description NodeData(T node, NodeHandler<T> nodeHandler)
Constructs a new instance ofNodeData
. -
Uses of NodeHandler in org.apache.commons.configuration2.plist
Methods in org.apache.commons.configuration2.plist with parameters of type NodeHandler Modifier and Type Method Description private void
PropertyListConfiguration. printNode(java.io.PrintWriter out, int indentLevel, ImmutableNode node, NodeHandler<ImmutableNode> handler)
Append a node to the writer, indented according to a specific level. -
Uses of NodeHandler in org.apache.commons.configuration2.tree
Subinterfaces of NodeHandler in org.apache.commons.configuration2.tree Modifier and Type Interface Description interface
ReferenceNodeHandler
An extension of theNodeHandler
interface which allows access to so-called references stored for a node.Classes in org.apache.commons.configuration2.tree that implement NodeHandler Modifier and Type Class Description (package private) class
AbstractImmutableNodeHandler
An abstract base class for aNodeHandler
implementation forImmutableNode
objects.class
NodeHandlerDecorator<T>
An abstract base class for decorators of aNodeHandler
.(package private) class
TrackedNodeHandler
A specialNodeHandler
implementation for tracked nodes.(package private) class
TreeData
An internally used helper class for storing information about the managed node structure.Fields in org.apache.commons.configuration2.tree declared as NodeHandler Modifier and Type Field Description private static NodeHandler<ImmutableNode>
InMemoryNodeModel. DUMMY_HANDLER
A dummy node handler instance used in operations which require only a limited functionality.protected static NodeHandler<ImmutableNode>
NodeCombiner. HANDLER
A default handler object for immutable nodes.private NodeHandler<ImmutableNode>
TrackedNodeHandler. parentHandler
The handler for querying the parent mapping.Methods in org.apache.commons.configuration2.tree that return NodeHandler Modifier and Type Method Description 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.protected abstract NodeHandler<T>
NodeHandlerDecorator. getDecoratedNodeHandler()
Gets theNodeHandler
object that is decorated by this instance.NodeHandler<ImmutableNode>
InMemoryNodeModel. getNodeHandler()
Gets aNodeHandler
for dealing with the nodes managed by this model.NodeHandler<T>
NodeModel. getNodeHandler()
Gets aNodeHandler
for dealing with the nodes managed by this model.NodeHandler<ImmutableNode>
TrackedNodeModel. getNodeHandler()
NodeHandler<ImmutableNode>
TrackedNodeHandler. getParentHandler()
Gets the parent handler.NodeHandler<ImmutableNode>
InMemoryNodeModel. getTrackedNodeHandler(NodeSelector selector)
Gets aNodeHandler
for a tracked node.Methods in org.apache.commons.configuration2.tree with parameters of type NodeHandler Modifier and Type Method Description private static <T> void
NodeTreeWalker. bfs(T root, ConfigurationNodeVisitor<T> visitor, NodeHandler<T> handler)
Helper method for performing a BFS traversal.<T> java.lang.String
DefaultExpressionEngine. canonicalKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Determines a "canonical" key for the specified node in the expression language supported by this implementation.<T> java.lang.String
ExpressionEngine. canonicalKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Determines a "canonical" key for the specified node in the expression language supported by this implementation.private static <T> boolean
NodeTreeWalker. checkParameters(T root, ConfigurationNodeVisitor<T> visitor, NodeHandler<T> handler)
Helper method for checking the parameters for the walk() methods.private <T> int
DefaultExpressionEngine. determineIndex(T node, T parent, java.lang.String nodeName, NodeHandler<T> handler)
Determines the index of the given node based on its parent node.private static NodeTracker.TrackedNodeData
NodeTracker. determineUpdatedTrackedNodeData(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, java.util.Map.Entry<NodeSelector,NodeTracker.TrackedNodeData> e)
Returns aTrackedNodeData
object for an update operation.private static <T> void
NodeTreeWalker. dfs(T node, ConfigurationNodeVisitor<T> visitor, NodeHandler<T> handler)
Recursive helper method for performing a DFS traversal.private <T> java.util.List<T>
DefaultExpressionEngine. findChildNodesByName(NodeHandler<T> handler, T parent, java.lang.String nodeName)
Returns a list with all child nodes of the given parent node which match the specified node name.protected <T> T
DefaultExpressionEngine. findLastPathNode(DefaultConfigurationKey.KeyIterator keyIt, T node, NodeHandler<T> handler)
Finds the last existing node for an add operation.protected <T> void
DefaultExpressionEngine. findNodesForKey(DefaultConfigurationKey.KeyIterator keyPart, T node, java.util.Collection<QueryResult<T>> results, NodeHandler<T> handler)
Recursive helper method for evaluating a key.java.lang.Object
QueryResult. getAttributeValue(NodeHandler<T> handler)
Gets the attribute value if this is an attribute result.private void
NodeSelector. getFilteredResults(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, java.lang.String key, java.util.List<ImmutableNode> nodes)
Executes a query for a given key and filters the results for nodes only.<T> boolean
NodeMatcher. matches(T node, NodeHandler<T> handler, C criterion)
Tests whether the passed in node matches the given criterion.<T> java.lang.String
DefaultExpressionEngine. nodeKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Returns the key for the specified node in the expression language supported by an implementation.<T> java.lang.String
ExpressionEngine. nodeKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Returns the key for the specified node in the expression language supported by an implementation.java.lang.String
NodeKeyResolver. nodeKey(T node, java.util.Map<T,java.lang.String> cache, NodeHandler<T> handler)
Generates a unique key for the specified node.<T> NodeAddData<T>
DefaultExpressionEngine. prepareAdd(T root, java.lang.String key, NodeHandler<T> handler)
Prepares Adding the property with the specified key.<T> NodeAddData<T>
ExpressionEngine. prepareAdd(T root, java.lang.String key, NodeHandler<T> handler)
Returns information needed for an add operation.private <T> void
DefaultExpressionEngine. processSubNodes(DefaultConfigurationKey.KeyIterator keyPart, java.util.List<T> subNodes, java.util.Collection<QueryResult<T>> nodes, NodeHandler<T> handler)
Called byfindNodesForKey()
to process the sub nodes of the current node depending on the type of the current key part (children, attributes, or both).<T> java.util.List<QueryResult<T>>
DefaultExpressionEngine. query(T root, java.lang.String key, NodeHandler<T> handler)
Finds the nodes and/or attributes that are matched by the specified key.<T> java.util.List<QueryResult<T>>
ExpressionEngine. query(T root, java.lang.String key, NodeHandler<T> handler)
Finds the nodes and/or attributes that are matched by the specified key.NodeAddData<T>
NodeKeyResolver. resolveAddKey(T root, java.lang.String key, NodeHandler<T> handler)
Resolves a key of an add operation.java.util.List<QueryResult<T>>
NodeKeyResolver. resolveKey(T root, java.lang.String key, NodeHandler<T> handler)
Performs a query for the specified key on the given root node.java.util.List<T>
NodeKeyResolver. resolveNodeKey(T root, java.lang.String key, NodeHandler<T> handler)
Performs a query for the specified key on the given root node returning only node results.NodeUpdateData<T>
NodeKeyResolver. resolveUpdateKey(T root, java.lang.String key, java.lang.Object newValue, NodeHandler<T> handler)
Resolves a key for an update operation.ImmutableNode
NodeSelector. select(ImmutableNode root, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler)
Applies thisNodeSelector
on the specified root node.private static NodeTracker.TrackedNodeData
NodeTracker. trackDataForAddedObserver(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler, NodeTracker.TrackedNodeData trackData)
Creates aTrackedNodeData
object for a newly added observer for the specified node selector.NodeTracker
NodeTracker. trackNode(ImmutableNode root, NodeSelector selector, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler)
Adds a node to be tracked.NodeTracker
NodeTracker. update(ImmutableNode root, NodeSelector txTarget, NodeKeyResolver<ImmutableNode> resolver, NodeHandler<ImmutableNode> handler)
Updates tracking information after the node structure has been changed.void
ConfigurationNodeVisitor. visitAfterChildren(T node, NodeHandler<T> handler)
Visits the specified node after after its children - if existing - have been processed.void
ConfigurationNodeVisitorAdapter. visitAfterChildren(T node, NodeHandler<T> handler)
Visits the specified node after after its children - if existing - have been processed.void
ConfigurationNodeVisitor. visitBeforeChildren(T node, NodeHandler<T> handler)
Visits the specified node before the children of this node - if existing - are processed.void
ConfigurationNodeVisitorAdapter. visitBeforeChildren(T node, NodeHandler<T> handler)
Visits the specified node before the children of this node - if existing - are processed.<T> void
NodeTreeWalker. walkBFS(T root, ConfigurationNodeVisitor<T> visitor, NodeHandler<T> handler)
Visits all nodes in the hierarchy represented by the given root node in breadth first search manner.<T> void
NodeTreeWalker. walkDFS(T root, ConfigurationNodeVisitor<T> visitor, NodeHandler<T> handler)
Visits all nodes in the hierarchy represented by the given root node in depth first search manner.Constructors in org.apache.commons.configuration2.tree with parameters of type NodeHandler Constructor Description TrackedNodeHandler(ImmutableNode root, NodeHandler<ImmutableNode> handler)
Creates a new instance ofTrackedNodeHandler
and initializes it with all required information. -
Uses of NodeHandler in org.apache.commons.configuration2.tree.xpath
Fields in org.apache.commons.configuration2.tree.xpath declared as NodeHandler Modifier and Type Field Description private NodeHandler<T>
ConfigurationNodePointer. handler
The node handler.private NodeHandler<T>
ConfigurationNodePointerFactory.NodeWrapper. nodeHandler
Stores the corresponding node handler.Methods in org.apache.commons.configuration2.tree.xpath that return NodeHandler Modifier and Type Method Description protected NodeHandler<T>
AbstractConfigurationNodeIterator. getNodeHandler()
Gets the node handler for the managed nodes.private NodeHandler<T>
ConfigurationAttributePointer. getNodeHandler()
Returns a reference to the current node handler.NodeHandler<T>
ConfigurationNodePointer. getNodeHandler()
Gets theNodeHandler
used by this instance.NodeHandler<T>
ConfigurationNodePointerFactory.NodeWrapper. getNodeHandler()
Gets the node handler for the wrapped node.Methods in org.apache.commons.configuration2.tree.xpath with parameters of type NodeHandler Modifier and Type Method Description <T> java.lang.String
XPathExpressionEngine. canonicalKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Determines a "canonical" key for the specified node in the expression language supported by this implementation.<T> org.apache.commons.jxpath.JXPathContext
XPathContextFactory. createContext(T root, NodeHandler<T> handler)
Creates a newJXPathContext
based on the passed in arguments.private <T> org.apache.commons.jxpath.JXPathContext
XPathExpressionEngine. createContext(T root, NodeHandler<T> handler)
Creates theJXPathContext
to be used for executing a query.private static <T> int
XPathExpressionEngine. determineIndex(T parent, T child, NodeHandler<T> handler)
Determines the index of the given child node in the node list of its parent.private <T> java.lang.String
XPathExpressionEngine. generateKeyForAdd(T root, java.lang.String key, NodeHandler<T> handler)
Tries to generate a key for adding a property.<T> java.lang.String
XPathExpressionEngine. nodeKey(T node, java.lang.String parentKey, NodeHandler<T> handler)
Returns the key for the specified node in the expression language supported by an implementation.<T> NodeAddData<T>
XPathExpressionEngine. prepareAdd(T root, java.lang.String key, NodeHandler<T> handler)
Returns information needed for an add operation.<T> java.util.List<QueryResult<T>>
XPathExpressionEngine. query(T root, java.lang.String key, NodeHandler<T> handler)
Finds the nodes and/or attributes that are matched by the specified key.static <T> java.lang.Object
ConfigurationNodePointerFactory. wrapNode(T node, NodeHandler<T> handler)
Creates a node wrapper for the specified node and its handler.Constructors in org.apache.commons.configuration2.tree.xpath with parameters of type NodeHandler Constructor Description ConfigurationNodePointer(ConfigurationNodePointer<T> parent, T node, NodeHandler<T> handler)
Creates a new instance ofConfigurationNodePointer
and initializes it with its parent pointer.ConfigurationNodePointer(T node, java.util.Locale locale, NodeHandler<T> handler)
Creates a new instance ofConfigurationNodePointer
pointing to the specified node.NodeWrapper(T nd, NodeHandler<T> handler)
Creates a new instance ofNodeWrapper
and initializes it.
-