Class ConfigurationNodePointerFactory.NodeWrapper<T>
- java.lang.Object
-
- org.apache.commons.configuration2.tree.xpath.ConfigurationNodePointerFactory.NodeWrapper<T>
-
- Type Parameters:
T
- the type of the nodes this class deals with
- Enclosing class:
- ConfigurationNodePointerFactory
static class ConfigurationNodePointerFactory.NodeWrapper<T> extends java.lang.Object
An internally used wrapper class that holds all information for processing a query for a specific node.
-
-
Field Summary
Fields Modifier and Type Field Description private T
node
Stores the node.private NodeHandler<T>
nodeHandler
Stores the corresponding node handler.
-
Constructor Summary
Constructors Constructor Description NodeWrapper(T nd, NodeHandler<T> handler)
Creates a new instance ofNodeWrapper
and initializes it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getNode()
Gets the wrapped node.NodeHandler<T>
getNodeHandler()
Gets the node handler for the wrapped node.
-
-
-
Field Detail
-
node
private final T node
Stores the node.
-
nodeHandler
private final NodeHandler<T> nodeHandler
Stores the corresponding node handler.
-
-
Constructor Detail
-
NodeWrapper
public NodeWrapper(T nd, NodeHandler<T> handler)
Creates a new instance ofNodeWrapper
and initializes it.- Parameters:
nd
- the nodehandler
- the node handler
-
-
Method Detail
-
getNode
public T getNode()
Gets the wrapped node.- Returns:
- the node
-
getNodeHandler
public NodeHandler<T> getNodeHandler()
Gets the node handler for the wrapped node.- Returns:
- the node handler
-
-