org.apache.commons.configuration.tree.xpath

Class ConfigurationNodePointerFactory

public class ConfigurationNodePointerFactory extends Object implements NodePointerFactory

Implementation of the NodePointerFactory interface for configuration nodes.

Since: 1.3

Version: $Id: ConfigurationNodePointerFactory.java 439648 2006-09-02 20:42:10Z oheger $

Author: Oliver Heger

Field Summary
static intCONFIGURATION_NODE_POINTER_FACTORY_ORDER
Constant for the order of this factory.
Method Summary
NodePointercreateNodePointer(QName name, Object bean, Locale locale)
Creates a node pointer for the specified bean.
NodePointercreateNodePointer(NodePointer parent, QName name, Object bean)
Creates a node pointer for the specified bean.
intgetOrder()
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.

Method Detail

createNodePointer

public NodePointer createNodePointer(QName name, Object bean, Locale locale)
Creates a node pointer for the specified bean. If the bean is a configuration node, a corresponding pointer is returned.

Parameters: name the name of the node bean the bean locale the locale

Returns: a pointer for a configuration node if the bean is such a node

createNodePointer

public NodePointer createNodePointer(NodePointer parent, QName name, Object bean)
Creates a node pointer for the specified bean. If the bean is a configuration node, a corresponding pointer is returned.

Parameters: parent the parent node name the name bean the bean

Returns: a pointer for a configuration node if the bean is such a node

getOrder

public int getOrder()
Returns the order of this factory between other factories.

Returns: this order's factory