Class VariablePointerFactory
java.lang.Object
org.apache.commons.jxpath.ri.model.VariablePointerFactory
- All Implemented Interfaces:
NodePointerFactory
NodePointerFactory to create
VariablePointers
.- Since:
- JXPath 1.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Node value wrapper to trigger a VariablePointerFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Factory order constant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontextWrapper
(JXPathContext context) VariableContextWrapper factory method.createNodePointer
(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.
-
Field Details
-
VARIABLE_POINTER_FACTORY_ORDER
Factory order constant- See Also:
-
-
Constructor Details
-
VariablePointerFactory
public VariablePointerFactory()Constructs a new instance.
-
-
Method Details
-
contextWrapper
VariableContextWrapper factory method.- Parameters:
context
- the JXPathContext to wrap.- Returns:
- VariableContextWrapper.
-
createNodePointer
Description copied from interface:NodePointerFactory
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
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 nameobject
- 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
-