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
LazyDynaBean
s. The PropertyPointer
s 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.int
getOrder()
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:
createNodePointer
in 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:
createNodePointer
in 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:
getOrder
in interfaceNodePointerFactory
- Returns:
- int order
-