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 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.
-
Method Details
-
createNodePointer
Create a NodePointer for the supplied child object.- 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.- Parameters:
qName
- node nameobject
- child objectlocale
- 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
-