Class CGINPointerFactory
- java.lang.Object
-
- CGINPointerFactory
-
- All Implemented Interfaces:
org.apache.commons.jxpath.ri.model.NodePointerFactory
public class CGINPointerFactory extends Object implements org.apache.commons.jxpath.ri.model.NodePointerFactory
Creates NodePointers for CGIN data structures. This class has a singleton instance.
-
-
Field Summary
Fields Modifier and Type Field Description protected static CGINPointerFactory
INSTANCE
The factory for CGINPointers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CGINPointer
createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name, Object object)
Creates a NodePointer for the given CGIN data structure within a larger data structure.CGINPointer
createNodePointer(org.apache.commons.jxpath.ri.QName name, Object object, Locale locale)
Creates a NodePointer for the given CGIN data structure.int
getOrder()
Gets a number that determines whether this NodePointerFactory is called before or after another one.
-
-
-
Field Detail
-
INSTANCE
protected static CGINPointerFactory INSTANCE
The factory for CGINPointers.
-
-
Method Detail
-
getOrder
public int getOrder()
Gets a number that determines whether this NodePointerFactory is called before or after another one. This one needs to be called before CollectionPointerFactory, which would otherwise capture some CGIN data structures. CollectionPointerFactory.getOrder() returns 10, so this one returns something smaller.- Specified by:
getOrder
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Returns:
- 0
-
createNodePointer
public CGINPointer createNodePointer(org.apache.commons.jxpath.ri.QName name, Object object, Locale locale)
Creates a NodePointer for the given CGIN data structure.- Specified by:
createNodePointer
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Parameters:
name
- name of the new nodeobject
- value of the new nodelocale
- ignored, as CGIN doesn't need that
-
createNodePointer
public CGINPointer createNodePointer(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.ri.QName name, Object object)
Creates a NodePointer for the given CGIN data structure within a larger data structure.- Specified by:
createNodePointer
in interfaceorg.apache.commons.jxpath.ri.model.NodePointerFactory
- Parameters:
parent
- pointer to the surrounding nodename
- name of the new nodeobject
- value of the new node
-
-