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 classNode value wrapper to trigger a VariablePointerFactory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFactory 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.intgetOrder()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:NodePointerFactoryCreate 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
Description copied from interface:NodePointerFactoryCreate 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
Description copied from interface:NodePointerFactoryThe factory order number determines its position between other factories.- Specified by:
getOrderin interfaceNodePointerFactory- Returns:
- int order
-