public class ConfigurationNodePointerFactory extends Object implements org.apache.commons.jxpath.ri.model.NodePointerFactory
 Implementation of the NodePointerFactory interface for configuration
 nodes.
 
 This class is able to create NodePointers for the nodes of
 hierarchical configurations. Because there is no common base class for
 configuration nodes (any specific configuration implementation can use its
 own node class) a trick is needed for activating this factory for a concrete
 JXPath query: The wrapNode() method has to be called with the node
 object and its corresponding NodeHandler. This creates a wrapper
 object containing all information required by the factory for processing a
 query. Then this wrapper object has to be passed to the query methods of the
 JXPath context.
 
| Modifier and Type | Field and Description | 
|---|---|
static int | 
CONFIGURATION_NODE_POINTER_FACTORY_ORDER
Constant for the order of this factory. 
 | 
| Constructor and Description | 
|---|
ConfigurationNodePointerFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.commons.jxpath.ri.model.NodePointer | 
createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
                 org.apache.commons.jxpath.ri.QName name,
                 Object bean)
Creates a node pointer for the specified bean. 
 | 
org.apache.commons.jxpath.ri.model.NodePointer | 
createNodePointer(org.apache.commons.jxpath.ri.QName name,
                 Object bean,
                 Locale locale)
Creates a node pointer for the specified bean. 
 | 
int | 
getOrder()
Returns the order of this factory between other factories. 
 | 
static <T> Object | 
wrapNode(T node,
        NodeHandler<T> handler)
Creates a node wrapper for the specified node and its handler. 
 | 
public static final int CONFIGURATION_NODE_POINTER_FACTORY_ORDER
public int getOrder()
getOrder in interface org.apache.commons.jxpath.ri.model.NodePointerFactorypublic org.apache.commons.jxpath.ri.model.NodePointer createNodePointer(org.apache.commons.jxpath.ri.QName name,
                                                                        Object bean,
                                                                        Locale locale)
createNodePointer in interface org.apache.commons.jxpath.ri.model.NodePointerFactoryname - the name of the nodebean - the beanlocale - the localepublic org.apache.commons.jxpath.ri.model.NodePointer createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
                                                                        org.apache.commons.jxpath.ri.QName name,
                                                                        Object bean)
createNodePointer in interface org.apache.commons.jxpath.ri.model.NodePointerFactoryparent - the parent nodename - the namebean - the beanpublic static <T> Object wrapNode(T node, NodeHandler<T> handler)
T - the type of the nodenode - the nodehandler - the corresponding node handlerCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.