Package org.apache.commons.jxpath.ri.model

# Interface NodePointerFactory

All Known Implementing Classes:
  `BeanPointerFactory`, `CollectionPointerFactory`, `ContainerPointerFactory`, `DOMPointerFactory`, `DynaBeanPointerFactory`, `DynamicPointerFactory`, `JDOMPointerFactory`, `StrictLazyDynaBeanPointerFactory`, `VariablePointerFactory`

public interface NodePointerFactory
Creates NodePointers for objects of a certain type. NodePointerFactories are ordered according to the values returned by the "getOrder" method and always queried in that order.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `NodePointer`
  `createNodePointer(NodePointer parent, QName qName, Object object)`
  Create a NodePointer for the supplied child object.
  `NodePointer`
  `createNodePointer(QName qName, Object object, Locale locale)`
  Create a NodePointer for the supplied object.
  `int`
  `getOrder()`
  The factory order number determines its position between other factories.

- ## Method Details

  - ### createNodePointer

    NodePointer createNodePointer(NodePointer parent, QName qName, Object object)
    Create a NodePointer for the supplied child object.
    Parameters:
      `parent` - parent node
      `qName` - node name
      `object` - child object
    Returns:
      null if this factory does not recognize objects of the supplied type.

  - ### createNodePointer

    NodePointer createNodePointer(QName qName, Object object, Locale locale)
    Create a NodePointer for the supplied object. The node will represent the "root" object for a path.
    Parameters:
      `qName` - node name
      `object` - child object
      `locale` - Locale
    Returns:
      null if this factory does not recognize objects of the supplied type.

  - ### getOrder

    int getOrder()
    The factory order number determines its position between other factories.
    Returns:
      int order