Class 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.
    • 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 interface org.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 interface org.apache.commons.jxpath.ri.model.NodePointerFactory
        Parameters:
        name - name of the new node
        object - value of the new node
        locale - 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 interface org.apache.commons.jxpath.ri.model.NodePointerFactory
        Parameters:
        parent - pointer to the surrounding node
        name - name of the new node
        object - value of the new node