org.apache.commons.jxpath.ri.model.beans

Class BeanPointerFactory

Implemented Interfaces:
NodePointerFactory

public class BeanPointerFactory
extends java.lang.Object
implements NodePointerFactory

Implements NodePointerFactory for JavaBeans.
Version:
$Revision: 1.7 $ $Date: 2004/02/29 14:17:41 $
Author:
Dmitri Plotnikov

Field Summary

static int
BEAN_POINTER_FACTORY_ORDER

Method Summary

NodePointer
createNodePointer(QName name, Object bean, Locale locale)
Create a NodePointer for the supplied object.
NodePointer
createNodePointer(NodePointer parent, QName name, Object bean)
Create a NodePointer for the supplied child object.
int
getOrder()
The factory order number determines its position between other factories.

Field Details

BEAN_POINTER_FACTORY_ORDER

public static final int BEAN_POINTER_FACTORY_ORDER
Field Value:
900

Method Details

createNodePointer

public NodePointer createNodePointer(QName name,
                                     Object bean,
                                     Locale locale)
Create a NodePointer for the supplied object. The node will represent the "root" object for a path.
Specified by:
createNodePointer in interface NodePointerFactory
Returns:
null if this factory does not recognize objects of the supplied type.

createNodePointer

public NodePointer createNodePointer(NodePointer parent,
                                     QName name,
                                     Object bean)
Create a NodePointer for the supplied child object.

Specified by:
createNodePointer in interface NodePointerFactory
Returns:
null if this factory does not recognize objects of the supplied type.

getOrder

public int getOrder()
The factory order number determines its position between other factories.
Specified by:
getOrder in interface NodePointerFactory