Class CollectionPointerFactory
java.lang.Object
org.apache.commons.jxpath.ri.model.beans.CollectionPointerFactory
- All Implemented Interfaces:
NodePointerFactory
Implements NodePointerFactory for stand-alone collections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Factory order constant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNodePointer
(NodePointer parent, QName qName, Object bean) Create a NodePointer for the supplied child object.createNodePointer
(QName qName, Object bean, Locale locale) Create a NodePointer for the supplied object.int
getOrder()
The factory order number determines its position between other factories.
-
Field Details
-
COLLECTION_POINTER_FACTORY_ORDER
Factory order constant- See Also:
-
-
Constructor Details
-
CollectionPointerFactory
public CollectionPointerFactory()Constructs a new instance.
-
-
Method Details
-
createNodePointer
Description copied from interface:NodePointerFactory
Create a NodePointer for the supplied child object.- Specified by:
createNodePointer
in interfaceNodePointerFactory
- Parameters:
parent
- parent nodeqName
- node namebean
- child object- Returns:
- null if this factory does not recognize objects of the supplied type.
-
createNodePointer
Description copied from interface:NodePointerFactory
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 namebean
- child objectlocale
- Locale- Returns:
- null if this factory does not recognize objects of the supplied type.
-
getOrder
Description copied from interface:NodePointerFactory
The factory order number determines its position between other factories.- Specified by:
getOrder
in interfaceNodePointerFactory
- Returns:
- int order
-