Class StrictLazyDynaBeanPointerFactory

java.lang.Object
org.apache.commons.jxpath.ri.model.dynabeans.StrictLazyDynaBeanPointerFactory
All Implemented Interfaces:
NodePointerFactory

public class StrictLazyDynaBeanPointerFactory extends Object implements NodePointerFactory
Implemented in response to [JXPATH-144]. Optionally pluggable NodePointerFactory that returns a special type of NodePointer for LazyDynaBeans. The PropertyPointers returned by these will respect LazyDynaClass.isDynaProperty(String) when determining PropertyPointer.isActual().
Since:
1.4.0
  • Constructor Details

    • StrictLazyDynaBeanPointerFactory

      public StrictLazyDynaBeanPointerFactory()
      Constructs a new instance.
  • Method Details

    • createNodePointer

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

      public 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.
      Specified by:
      createNodePointer in interface NodePointerFactory
      Parameters:
      qName - node name
      object - child object
      locale - Locale
      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
      Returns:
      int order