Class StrictLazyDynaBeanPointerFactory
java.lang.Object
org.apache.commons.jxpath.ri.model.dynabeans.StrictLazyDynaBeanPointerFactory
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNodePointer(NodePointer parent, QName qName, Object object) Create a NodePointer for the supplied child object.createNodePointer(QName qName, Object object, Locale locale) Create a NodePointer for the supplied object.intgetOrder()The factory order number determines its position between other factories.
-
Constructor Details
-
StrictLazyDynaBeanPointerFactory
public StrictLazyDynaBeanPointerFactory()Constructs a new instance.
-
-
Method Details
-
createNodePointer
Create a NodePointer for the supplied child object.- Specified by:
createNodePointerin interfaceNodePointerFactory- Parameters:
parent- parent nodeqName- node nameobject- child object- Returns:
- null if this factory does not recognize objects of the supplied type.
-
createNodePointer
Create a NodePointer for the supplied object. The node will represent the "root" object for a path.- Specified by:
createNodePointerin interfaceNodePointerFactory- Parameters:
qName- node nameobject- child objectlocale- Locale- Returns:
- null if this factory does not recognize objects of the supplied type.
-
getOrder
The factory order number determines its position between other factories.- Specified by:
getOrderin interfaceNodePointerFactory- Returns:
- int order
-