Class VariablePointerFactory
- java.lang.Object
-
- org.apache.commons.jxpath.ri.model.VariablePointerFactory
-
- All Implemented Interfaces:
NodePointerFactory
public class VariablePointerFactory extends java.lang.Object implements NodePointerFactory
NodePointerFactory to createVariablePointers
.- Since:
- JXPath 1.3
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Matt Benson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VariablePointerFactory.VariableContextWrapper
Node value wrapper to trigger a VariablePointerFactory.
-
Field Summary
Fields Modifier and Type Field Description static int
VARIABLE_POINTER_FACTORY_ORDER
factory order constant
-
Constructor Summary
Constructors Constructor Description VariablePointerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariablePointerFactory.VariableContextWrapper
contextWrapper(JXPathContext context)
VariableContextWrapper factory method.NodePointer
createNodePointer(NodePointer parent, QName name, java.lang.Object object)
Create a NodePointer for the supplied child object.NodePointer
createNodePointer(QName name, java.lang.Object object, java.util.Locale locale)
Create a NodePointer for the supplied object.int
getOrder()
The factory order number determines its position between other factories.
-
-
-
Field Detail
-
VARIABLE_POINTER_FACTORY_ORDER
public static final int VARIABLE_POINTER_FACTORY_ORDER
factory order constant- See Also:
- Constant Field Values
-
-
Method Detail
-
contextWrapper
public static VariablePointerFactory.VariableContextWrapper contextWrapper(JXPathContext context)
VariableContextWrapper factory method.- Parameters:
context
- the JXPathContext to wrap.- Returns:
- VariableContextWrapper.
-
createNodePointer
public NodePointer createNodePointer(QName name, java.lang.Object object, java.util.Locale locale)
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:
name
- String node nameobject
- child objectlocale
- Locale- Returns:
- null if this factory does not recognize objects of the supplied type.
-
createNodePointer
public NodePointer createNodePointer(NodePointer parent, QName name, java.lang.Object object)
Description copied from interface:NodePointerFactory
Create a NodePointer for the supplied child object.- Specified by:
createNodePointer
in interfaceNodePointerFactory
- Parameters:
parent
- parent nodename
- String node nameobject
- child object- Returns:
- null if this factory does not recognize objects of the supplied type.
-
getOrder
public int getOrder()
Description copied from interface:NodePointerFactory
The factory order number determines its position between other factories.- Specified by:
getOrder
in interfaceNodePointerFactory
- Returns:
- int order
-
-