Class ConfigurationNodePointerFactory
- java.lang.Object
-
- org.apache.commons.configuration.tree.xpath.ConfigurationNodePointerFactory
-
- All Implemented Interfaces:
org.apache.commons.jxpath.ri.model.NodePointerFactory
public class ConfigurationNodePointerFactory extends java.lang.Object implements org.apache.commons.jxpath.ri.model.NodePointerFactory
Implementation of theNodePointerFactory
interface for configuration nodes.- Since:
- 1.3
- Version:
- $Id: ConfigurationNodePointerFactory.java 1206498 2011-11-26 17:01:58Z oheger $
- Author:
- Commons Configuration team
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONFIGURATION_NODE_POINTER_FACTORY_ORDER
Constant for the order of this factory.
-
Constructor Summary
Constructors Constructor Description ConfigurationNodePointerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.jxpath.ri.model.NodePointer
createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name, java.lang.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, java.lang.Object bean, java.util.Locale locale)
Creates a node pointer for the specified bean.int
getOrder()
Returns the order of this factory between other factories.
-
-
-
Field Detail
-
CONFIGURATION_NODE_POINTER_FACTORY_ORDER
public static final int CONFIGURATION_NODE_POINTER_FACTORY_ORDER
Constant for the order of this factory.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigurationNodePointerFactory
public ConfigurationNodePointerFactory()
-
-
Method Detail
-
getOrder
public int getOrder()
Returns the order of this factory between other factories.- Specified by:
getOrder
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Returns:
- this order's factory
-
createNodePointer
public org.apache.commons.jxpath.ri.model.NodePointer createNodePointer(org.apache.commons.jxpath.ri.QName name, java.lang.Object bean, java.util.Locale locale)
Creates a node pointer for the specified bean. If the bean is a configuration node, a corresponding pointer is returned.- Specified by:
createNodePointer
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Parameters:
name
- the name of the nodebean
- the beanlocale
- the locale- Returns:
- a pointer for a configuration node if the bean is such a node
-
createNodePointer
public org.apache.commons.jxpath.ri.model.NodePointer createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name, java.lang.Object bean)
Creates a node pointer for the specified bean. If the bean is a configuration node, a corresponding pointer is returned.- Specified by:
createNodePointer
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Parameters:
parent
- the parent nodename
- the namebean
- the bean- Returns:
- a pointer for a configuration node if the bean is such a node
-
-