org.apache.commons.jxpath.ri.model.dynamic
Class DynamicPointerFactory

java.lang.Object
  extended by org.apache.commons.jxpath.ri.model.dynamic.DynamicPointerFactory
All Implemented Interfaces:
NodePointerFactory

public class DynamicPointerFactory
extends Object
implements NodePointerFactory

Implements NodePointerFactory for Dynamic classes like Map.

Version:
$Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
Author:
Dmitri Plotnikov

Field Summary
static int DYNAMIC_POINTER_FACTORY_ORDER
          Factory order constant.
 
Constructor Summary
DynamicPointerFactory()
           
 
Method Summary
 NodePointer createNodePointer(NodePointer parent, QName name, Object bean)
          Create a NodePointer for the supplied child object.
 NodePointer createNodePointer(QName name, Object bean, Locale locale)
          Create a NodePointer for the supplied object.
 int getOrder()
          The factory order number determines its position between other factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DYNAMIC_POINTER_FACTORY_ORDER

public static final int DYNAMIC_POINTER_FACTORY_ORDER
Factory order constant.

See Also:
Constant Field Values
Constructor Detail

DynamicPointerFactory

public DynamicPointerFactory()
Method Detail

getOrder

public int getOrder()
Description copied from interface: NodePointerFactory
The factory order number determines its position between other factories.

Specified by:
getOrder in interface NodePointerFactory
Returns:
int order

createNodePointer

public NodePointer createNodePointer(QName name,
                                     Object bean,
                                     Locale locale)
Description copied from interface: NodePointerFactory
Create a NodePointer for the supplied object. The node will represent the "root" object for a path.

Specified by:
createNodePointer in interface NodePointerFactory
Parameters:
name - String node name
bean - child object
locale - Locale
Returns:
null if this factory does not recognize objects of the supplied type.

createNodePointer

public NodePointer createNodePointer(NodePointer parent,
                                     QName name,
                                     Object bean)
Description copied from interface: NodePointerFactory
Create a NodePointer for the supplied child object.

Specified by:
createNodePointer in interface NodePointerFactory
Parameters:
parent - parent node
name - String node name
bean - child object
Returns:
null if this factory does not recognize objects of the supplied type.


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.